@mehstg wrote:
Hi all
I have an Ikea Tradfri switch in one of my that I am in the process of setting up as a volume up/down controller for the Sonos ceiling speaker in that room. I have the following automation which works:
# Automation to handle Sonos Control by Bathroom Switch - id: '1237' alias: 'Bathroom Switch Volume Up' initial_state: 'on' trigger: platform: event event_type: deconz_event event_data: id: bathroom_switch event: 1002 action: - service: media_player.volume_up entity_id: media_player.bathroom - id: '1238' alias: 'Bathroom Switch Volume Down' initial_state: 'on' trigger: platform: event event_type: deconz_event event_data: id: bathroom_switch event: 2002 action: - service: media_player.volume_down entity_id: media_player.bathroom
Unfortunately, it takes a million button presses to make any meaninful difference to the volume level. The media_player volume_up/down methods do not seem to have any configuration for sensitivity. I was wondering what the best way of achieving this would be. Putting it in a script seems a bit messy and I would rather keep it in the YAML. Am I able to loop the action maybe so one button press triggers 5-10 volume up commands?
Any help much appreciated.
Posts: 2
Participants: 2