Hey Jon,
I just looked at the comments I put in my automation (why I still use YAML) which said the following:
# Notes on Volume. 121-Default Volume = 112-Volume. Siren.turn_on sounds at LAST volume set by either of these.
Itâs been a while, but IIRC, the capability to set volume on the fly with the siren entity was not functional, either that or was device dependent and the Ecolink wasnât. Either way, I never could get setting the volume on the fly to work (and seem to remember being told that it wasnât possible).
Having said that, there is a workaround. There is a way to change the Configuration of a device with an automation, which you could use to change it âon the flyâ (I know, PITA), but if you need the capability, it is possible. Perhaps over the last two years since Iâve looked into this it has been fixed and it is just an indention problem in your YAML or something. Maybe someone from the ZWave dev team can chime in.
My use case was as a chime only, so I set the volume to max and leave it there. If you want to change it on the fly, youâll have to change either one of two parameters. Either will work.
In the ZWave panel in HA, under the Configuration heading for the Ecolink Chime device, youâll find a parameter labeled [xx-112-0-4] Volume (where the xx is the node number). Similarly, under the Sound Switch heading, youâll find a parameter labeled [xx-121-0-defaultVolume] Default Volume. I found that whichever of these two was set LAST is the one the Ecolink will use (that may have changed in newer versions, but still works for me). I have them both set to 100% and donât try to change it on the fly. I just turn on the siren and it plays whichever sound file I choose (which I CAN set on-the-fly), in my case 31. My full automation is as follows:
# Activate Door Chime Whenever Garage or Entry Door Opened
- id: activate_door_chime_atm
alias: Activate Door Chime (ATM)
description: Activate Door Chime on Entry Door Open
trigger:
platform: state
entity_id:
- binary_sensor.ecolink_tilt_sensor_garage # Garage Door
- binary_sensor.ecolink_door_sensor_garage # Entry Door from Garage
- binary_sensor.ecolink_door_sensor_front # Front Door
- binary_sensor.zooz_zse41_xs_door_sensor_sidelight # Front Door Sidelight
to: 'on'
condition:
- condition: state
entity_id: input_boolean.arm_alarm_siren_ib
state: 'off'
- condition: state
entity_id: input_boolean.disable_chime_for_set_time_ib
state: 'off'
action:
# Notes on Volume. 121-Default Volume = 112-Volume. Siren.turn_on sounds at LAST volume set by either of these.
service: siren.turn_on
entity_id: siren.ecolink_chime_siren
data:
tone: '31'
Sorry, but my YAML is âold schoolâ, i.e., not what the UI generates or the new docs suggest, so it looks a bit different than yours. Also, regarding what you have now, my initial impulse would be to use 80 instead of .80. Since the value you enter in the Configuration is 1-100, not sure .80 would be understood unless it is converted. You might try that to see if it works first?
Good luck.
Cheers.