Skip to content

Send pvol metadata on mute - #1902

Merged
mikebrady merged 3 commits into
mikebrady:developmentfrom
mill1000:feature/mqtt_on_mute
Oct 10, 2024
Merged

mikebrady merged 3 commits into
mikebrady:developmentfrom
mill1000:feature/mqtt_on_mute

Conversation

@mill1000

Copy link
Copy Markdown

We discussed the possibility of sending mute state via MQTT a while ago here #1646

It seems the path of least resistance is to emit the same volume messages with the special muted volume value of -144.0.

This is in order to support implementing mute support in a Home Assistant custom integration: parautenbach/hass-shairport-sync#14

Leaving as a draft as I have yet to fully test.

@mikebrady

Copy link
Copy Markdown
Owner

Thanks for this, and it looks like a good idea.

One little thing is that we have managed to avoid using bool so far — we use 0 for false and 1 for true.

unfortunately, I am away from machines until around October 8, so can’t test extensively until then.

But certainly, IMHO the concept is good.

@mill1000
mill1000 marked this pull request as ready for review October 10, 2024 03:18
@mill1000

Copy link
Copy Markdown
Author

Gave this a quick test and it seems to work as expected.

@mikebrady
mikebrady merged commit 79fb0f3 into mikebrady:development Oct 10, 2024
@mikebrady

Copy link
Copy Markdown
Owner

Many thanks -- let's give it a try.

@mill1000
mill1000 deleted the feature/mqtt_on_mute branch October 10, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants