Zway HA Integration - sending command classes

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
mango
Posts: 37
Joined: 06 Feb 2021 00:11

Zway HA Integration - sending command classes

Post by mango »

So been using the ZWay/HA integration for a while and its been rock solid.

Im trying to set up a siren for multiple purposes (using different chimes), but that would require zwave command classes to be sent from HA. Does anybody have any guidance or experience with this? (all i see is an off/on switch) - but this variable for on/off doesnt even work in HA

Siren is Neo Coolcam NAS-AB01Z http://manuals-backend.z-wave.info/make ... 0-17025443

Using Razberry 7 Pro 4.02 Firmware
(i dont think Z-way has properly recognised the device, even though its 100% interviewed)
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Zway HA Integration - sending command classes

Post by PoltoS »

You can make a virtual HTTP device and send Z-Wave API commands via HTTP. For this go in Expert UI > Configuration > Expert Commands to test your command and copy the desired HTTP URL. Paste it in the HTTP-based device in HA together with the API token.

Here is a great guide: https://help.z-wave.me/en/knowledge_bas ... rough-curl
mango
Posts: 37
Joined: 06 Feb 2021 00:11

Re: Zway HA Integration - sending command classes

Post by mango »

PoltoS wrote:
11 Jan 2023 05:59
You can make a virtual HTTP device and send Z-Wave API commands via HTTP. For this go in Expert UI > Configuration > Expert Commands to test your command and copy the desired HTTP URL. Paste it in the HTTP-based device in HA together with the API token.

Here is a great guide: https://help.z-wave.me/en/knowledge_bas ... rough-curl
Great! I managed to get this going by creating a user and generating a token, however its strange.

For on/off, it works, and i get an output of {"data":null,"code":200,"message":"200 OK","error":null}

However, for changing Zwave Configuration e.g. http://1.2.3.4:8083/ZWave.zway/Run/devi ... Set(7,1,0)

I get 'Permission Denied', for the same device. (full command: curl -g -H "Authorization: Bearer /70c06714-4f09-6cf0-91e2-123123123" "http://x.x.x.x:8083/ZWave.zway/Run/devi ... Set(7,1,0)"

Any idea why? (do you need admin priv to run command classes?) Edit: Worked it out. Requires Admin Role.
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Zway HA Integration - sending command classes

Post by PoltoS »

The Z-Wave API is available only to admin. If you don't want to give admin access, you can create a Code Device in Z-Way and export it to HA as a normal device.

Here is another article for you: https://help.z-wave.me/en/knowledge_bas ... rt-home-ui
Amelia Bailey
Posts: 2
Joined: 04 Oct 2023 12:05

Re: Zway HA Integration - sending command classes

Post by Amelia Bailey »

mango wrote:
10 Jan 2023 07:21
So been using the ZWay/HA integration for a while and its been rock solid.

Im trying to set up a siren for multiple purposes (using different chimes), but that would require zwave command classes to be sent from HA. Does anybody have any guidance or experience with this? (all i see is an off/on switch) - but this variable for on/off doesnt even work in HA

Siren is Neo Coolcam NAS-AB01Z http://manuals-backend.z-wave.info/make ... 0-17025443

Using Razberry 7 Pro 4.02 Firmware
(i dont think Z-way has properly recognised the device, even though its 100% interviewed)
To start, make sure your siren device is properly added and recognized in Home Assistant. Once that's done, you can proceed with configuring the siren and its associated chimes.
Post Reply