-
Env: Home Assistant ZWave JS Integration for Websocket connection to zwavejs2mqtt Add On for Control Panel only. I have the subject device, which presents in HA as a binary switch for the Siren (works perfectly) and a NOTHING for the Chime. Both Siren and Sound Switch are implemented in the device and are independent. The SS section in the zwavejs2mqtt Control Panel provides the following four parameters: Default Volume, Default Tone ID, Play Tone (a list of sounds in the device at 5 seconds only), and Volume (Volume only provides two options: Default and Custom - but you can't enter a number - this could be a CP issue.) Using the CP, I can select a sound in the Play Tone parameter and sound that Chime, at the volume I set in the Default Volume parameter. I have two issues: (1) After setting a Default Volume (which it does play at) and a Default Tone ID, whenever I have to refresh the page (or after some time, I don't know which), these values reset to 100% and 1, respectively. Should they not be static and reflect what is stored in the device? It appears the device reverts as well. What could be going on here?
I realize some of this may not be the result of the library, but I'm just trying to get my head around what's going on and how best to make this work. Any advice would be appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
This is an issue in zwavejs2mqtt. @ccValueMetadata({
...ValueMetadata.UInt8,
min: 0,
max: 100,
unit: "%",
label: "Volume",
states: {
0: "default",
},
})
public volume?: number; and zwavejs2mqtt seems to think that only the
Not sure. Will need to see a driver log (level "debug") of when that happens. Maybe the device sends an update for these.
You should be able to using the properties |
Beta Was this translation helpful? Give feedback.
-
If he writes the value in the input and press the send button it will send the value, it just shows a list of the defined states |
Beta Was this translation helpful? Give feedback.
-
The HA - service: zwave_js.set_value
data:
command_class: '121'
endpoint: '0'
property: toneId
value: 34
options:
volume: 50
target:
entity_id: sensor.zooz_zse19_siren_node_status With the 2021.8 release, HA supports Sound Switch CC-based sirens natively, so there's no need to know about these specific API details. You can play tones and set volume using platform services. The ability to set default volume and default tone is still a work in progress, so for now you'll need to still use |
Beta Was this translation helpful? Give feedback.
The HA
zwave_js.set_value
service call is basically a pass-through to the node-zwave-jssetValue
API. If you want to set the volume when you play a tone, you need to pass in the volume as an option, just as you would with the node-zwave-js API. I believe this should set the volume to 50% (notice the addedoptions
map):With the 2021.8 release, HA supports Sound Switch CC-based sirens natively, so there's no need to know about t…