Setting Aeotec Siren 6 volume and duration not working
-
Having trouble setting the Aeotec Siren 6 volume and the duration for a specific siren (alarm).
Reactor version: latest-23010-7dd2c9e9
Setting the tone value works fine. On the other end, what ever value I put under volume_level and duration has no effect.
As usual, I am doing something wrong but can't figure out what.
Thanks in advance.
-
Have a look at reactor logs to see if HA is responding with any errors. Post the logs here if you’re still stuck.
-
Thanks for the suggestion. Not sure where to set this delay though.
For the volume, I can always set it up using this attribute.
But I cannot find an attribute for the duration.
In Aeotec's term, the duration is set via an EndPoint which can only have a value between 2-9. I'll see if I can use the Home Assistant Call Service.
-
And here's what the log says.
[latest-23010]2023-01-11T20:10:08.905Z Engine:INFO Enqueueing "Notification: Home Security - Alarm Pending<RESET>" (rule-lbl3aq8r:R)
[latest-23010]2023-01-11T20:10:08.907Z Engine:NOTICE Starting reaction Notification: Home Security - Alarm Pending<RESET> (rule-lbl3aq8r:R)
[latest-23010]2023-01-11T20:10:09.009Z HassController:INFO HassController#hass action x_hass_siren.turn_off([Object]{ }) on Entity#hass>siren_siren_5 succeeded
[latest-23010]2023-01-11T20:10:09.010Z Engine:INFO Resuming reaction Notification: Home Security - Alarm Pending<RESET> (rule-lbl3aq8r:R) from step 1
[latest-23010]2023-01-11T20:10:09.010Z Engine:INFO Notification: Home Security - Alarm Pending<RESET> all actions completed. -
toggledbitswrote on Jan 12, 2023, 12:39 AM last edited by toggledbits Jan 11, 2023, 7:50 PM
Hass may not support volume and duration for that device. You'd have to test it on the Hass side in the Developer Tools area under Services. The MSR action is a pass through to the Hass service, so I'm betting that's it. Just because the Hass service makes it visible doesn't mean it works.
Edit. Yup, that's confirmed here, volume and duration have no effect: https://community.home-assistant.io/t/aeotec-siren-6-turn-on-alarm-on-entity-level/369325/12
-
-
For those that were awaiting to hear back from me, setting the volume_level and duration through Reactor's UI or Home Assistant Automation has no effect. Folks were right. As usual since they are the best of the crop.
Saying this, after my discussion with Aeotec, you can set those values through the Z-Wave-JS-UI or via Home Assistant Device Configuration. I have done it and it works. Would it work using a Call Service in Reactor? I have not tried it.
Example via zwave JS UI using the Siren (7) Security endpoints parameters:
Siren (7) Default volume set to 60% and Default tone set to 30
Siren (7) Tone duration set to 1 sec
In Home Assistant, simply use the Z-Wave Device Configuration.
-
toggledbitswrote on Jan 20, 2023, 1:18 PM last edited by toggledbits Jan 20, 2023, 8:24 AM
You would use
zwave_device.set_config
. You need to know the number of the configuration parameter and its size (1, 2, or 4 bytes). This information is usually found in the device documentation or on the manufacturer's support page for the device.See page 20 of: https://aeotec.freshdesk.com/helpdesk/attachments/6086177008
-
@Snowman Thanks Patrick. I believe, and correct me if I am wrong, the service name is zwave_js.set_config_parameter.
FYI, both the zwave_js.set_config_parameter and zwave_js.set_value services do not present all endpoints/parameters for the Siren 6 using Home Assistant Automation.
For example, Tone Duration and Play Count are not available.
-
toggledbitswrote on Jan 21, 2023, 1:03 PM last edited by toggledbits Jan 21, 2023, 8:07 AM
zwave_device.set_config
is a Reactor action you can use directly. It will set any parameter the device has. You do not need to use the lower-levelx_hass.call_service
action.Also, if you are using ZWaveJSController, you can get even more granular access to the Z-Wave devices because Reactor is speaking to ZWaveJS UI directly (Hass doesn't care).
-
Had some time this morning to enable the ZWaveJSController so that I can try the
%(#ff2600)[zwave_device.set_config]But before I did, I went to the log and noticed the following. I may need some guidance as to what to do next since I am not too fluent with this controller.
[latest-23028]2023-02-10T18:27:23.819Z Structure:INFO Starting controller ZWaveJSController#zwavejs
[latest-23028]2023-02-10T18:27:23.821Z ZWaveJSController:WARN zwavejs_capabilities defines x_zwave_device_cfg, which is not consistent with the recommended naming
[latest-23028]2023-02-10T18:27:23.822Z ZWaveJSController:WARN zwavejs_capabilities defines x_zwave_mfg_spec, which is not consistent with the recommended naming
[latest-23028]2023-02-10T18:27:23.822Z ZWaveJSController:WARN zwavejs_capabilities defines x_zwave_device_ver, which is not consistent with the recommended naming
[latest-23028]2023-02-10T18:27:23.822Z ZWaveJSController:WARN zwavejs_capabilities defines x_zwave_values, which is not consistent with the recommended naming
[latest-23028]2023-02-10T18:27:23.823Z Controller:INFO ZWaveJSController#zwavejs loaded zwavejs capabilities ver 22315 rev 1 format 1
[latest-23028]2023-02-10T18:27:23.858Z Controller:INFO ZWaveJSController#zwavejs loaded implementation data ver 22314 rev 1 format 1
[latest-23028]2023-02-10T18:27:23.871Z HassController:INFO HassController#hass device mapping data loaded; checking...
[latest-23028]2023-02-10T18:27:23.877Z HassController:NOTICE HassController#hass connecting to ws://192.168.0.13:8123/api/websocket
[latest-23028]2023-02-10T18:27:23.887Z ZWaveJSController:INFO ZWaveJSController#zwavejs connecting to ws://192.168.0.13:3000...
[latest-23028]2023-02-10T18:27:25.728Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-1 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.729Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-1 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.729Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-1 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.730Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-1 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.730Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-2 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.730Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-2 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.735Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-2 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.735Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-2 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.736Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-3 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.736Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-3 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.736Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-3 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.737Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-3 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.737Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-4 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.737Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-4 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.737Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-4 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.738Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-4 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.738Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-5 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.738Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-5 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.738Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-5 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.739Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-5 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.739Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-6 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.739Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-6 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.739Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-6 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.740Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-6 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.740Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-7 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.740Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-7 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.740Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-7 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.741Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-7 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.741Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-8 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.741Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-8 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.742Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-8 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.742Z ZWaveJSController:WARN ZWaveJSController#zwavejs node 25-8 has commandClass 121 not defined in zwavejs_devices.yaml
[latest-23028]2023-02-10T18:27:25.747Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.748Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.750Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.755Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.757Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.759Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.760Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored
[latest-23028]2023-02-10T18:27:25.762Z ZWaveJSController:WARN ZWaveJSController#zwavejs no command class mapping for 0x"79"; ignored...
Many of these errors
ReferenceError: Unknown node
at ZWaveJSController._set_value (/var/reactor/ext/ZWaveJSController/ZWaveJSController.js:1523:36)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[latest-23028]2023-02-10T18:27:25.910Z app:ERR Please refer to the console log for trace -
toggledbitswrote on Feb 11, 2023, 3:53 PM last edited by toggledbits Feb 11, 2023, 10:54 AM
The warnings can be ignored. The unknown node errors were, I believe, fixed two releases ago in ZwaveJSController. Are you on that version? Should be 23010 or higher. It's logged in Reactor's startup messages.
-
I did not have the latest version 23011. Updated the controller.
Unknown nodes are no longer showing up.
FYI - The %(#77bb41)[WARN]ings for node 25-x came from the Aeotec Siren 6. I unpaired it and repaired it and there are still showing in the log. in case that helps you.
Thanks