This creates a sensor that represents the current media_player zone that is under control.
e.g. You have a reciever with 3 zones. When brought into Home Assistant, you get 3 separate Zones. You'd like to turn the volume up for all the zones that are on, or optionally just turn on one.
- The created sensors current state will represent which zones are on. e.g.
All Zones
,Zone 1
,Zone 2
,Zone 1
,Zone 1,2
,off
. - The sensor will contain a list of available media_players (All players that are currently on).
- The sensor will contain a list of active media_players (All players that will be affected by the events).
- Install using HACS, or copy the contents of
custom_components/multizone_controller/
to<config>/custom_components/multizone_controller/
- Restart Home Assistant
sensor:
- platform: multizone_controller
zones:
- source: media_player.yamaha_receiver
- source: media_player.yamaha_receiver_zone_2
sensor:
- platform: multizone_controller
zones:
- source: media_player.yamaha_receiver
- source: media_player.yamaha_receiver_zone_2
snap_volume: true
volume_increment: 0.05
volume_max: 1.0
volume_min: 0.2
List of media_player entity_ids, the order of the zones is determined by the order of this list.
Friendly name of the Sensor.
A maximum volume that the controller can go to.
A minimum volume that the controller can go to.
The amount of volume that moves up and down when a volume_up/down service is used.
When this is active, the volume will snap to the volume increment. Meaning if you have an increment of 0.5, the volume will only increase to all numerical values that are devisible by 0.05. I.e. 0.0, 0.05, 0.10, 0.15, etc.
Cycle through available media_player zones.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Target a specific mutlizone controller sensor. |
Turn a zone volume up.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Target a specific mutlizone controller sensor. |
Turn a zone volume down.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Target a specific mutlizone controller sensor. |
Toggle to mute/unmute a zone's volume.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Target a specific mutlizone controller sensor. |
Toggle to mute/unmute a zone's volume.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Target a specific mutlizone controller sensor. |
is_volume_muted |
no | True/false for mute/unmute |
Set a zone's volume level.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Target a specific mutlizone controller sensor. |
is_volume_muted |
no | Float for volume level. Range 0..1 |