Export heating control buttons to HA

Discussions about Z-Way software and Z-Wave technology in general
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Re: Export heating control buttons to HA

Post by PoltoS »

If you look in the network debug console, you can see commands like this:

Code: Select all

/ZAutomation/api/v1/devices/Heating_39/command/schedule?room=null
/ZAutomation/api/v1/devices/Heating_39/command/energySave?room=null
/ZAutomation/api/v1/devices/Heating_39/command/frostProtection?room=null
/ZAutomation/api/v1/devices/Heating_39/command/comfort?room=null
Or for a specific room Id:

Code: Select all

/ZAutomation/api/v1/devices/Heating_39/command/comfort?room=3
So here is the JS code:

Code: Select all

controller.devices.get("Heating_39").performCommand("comfort", {"room":3})
markchang
Posts: 47
Joined: 21 Oct 2019 01:50

Re: Export heating control buttons to HA

Post by markchang »

Ok, thank you!

After some tests, I can change state and thermostat temperature using this kind of command in JS virtual device

controller.devices.get("Heating_13").performCommand("energySave", {"room":1}); controller.devices.get("Heating_13").performCommand("energySave", {"room":2}); controller.devices.get("Heating_13").performCommand("energySave", {"room":3}); controller.devices.get("Heating_13").performCommand("energySave", {"room":4}); controller.devices.get("Heating_13").performCommand("energySave", {"room":8}); controller.devices.get("Heating_13").performCommand("energySave", {"room":10}); controller.devices.get("Heating_13").performCommand("energySave", {"room":null})


I use "toggle button"

One line for each Heating control room and finally "null" option to change widget icon.

It exports well to Home assistant and works fine.
With home bridge it exports as a button without configuration, so it doesn't really work. You need to reinfect as a button via home assistant.

I will test some weeks and I will update.

Thank you Poltos for your help!
Post Reply