Since HA has a very nice integration with various devices in our new office i’m using it as a bridge between the KNX / Homeserver for some fun stuff.
For example i wanted a simple mute for the Sonos if the doorbel rings.
(Sadly Gira with X1 and HS both work on IP basis instead of ID…)
With expose i get the status but are unable to write back?
- type: binary
entity_id: media_player.keuken
attribute: is_volume_muted
address: "0/3/1"
For that i have to use an automation.
alias: Kantoor Mute
description: ''
trigger:
- platform: state
entity_id: switch.kantoor_mute
id: mute aan
to: 'on'
- platform: state
entity_id: switch.kantoor_mute
id: mute uit
to: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: mute aan
sequence:
- service: media_player.volume_mute
data:
is_volume_muted: true
target:
device_id: id
- conditions:
- condition: trigger
id: mute uit
sequence:
- service: media_player.volume_mute
data:
is_volume_muted: false
target:
device_id: id
default: []
mode: single
Is there a cleaner way? or will expose in the future work both ways? (prob would have a address and status_address)