Z-Wave Schlage - Config VIA items

zwave
Tags: #<Tag:0x00007f51f2f445e8>

(stephen lombard) #1

I have my Schlage setup and the alarm feature is a pain in the butt. I was hoping I could use OpenHab2 to set the alarm at a certain hour. I know the binding send in the config data butI’d like to do it from the UI.

If I update the XML via a Script/CMD will that trigger an update?

Thanks in Advance.


(John Schmitz) #2

See this post where you can set a Z-Wave parameter from a rule. Is that what you want? You’d have to find the exact parameter and setting to turn your Schlage alarm off or on as desired.


(stephen lombard) #3

The issue is the configuration attributes are not a channel on the schlage like other things so I can’t set


(Scott Rushworth) #4

All it would take is to add a Channel to the device database. Specifically, which configuration parameters would you like Items for? And which device?


(John Schmitz) #5

Yep, that’s why you want to look at that post. It does not use channels at all. It’s using the REST interface where you can update the parameters. And it gives an example of using it in a rule.

It’s also possible to get the database updated with a new channel for this. I know that Chris has done that for some parameters on devices.


(Mark) #6

Both approaches described above will work perfectly fine. Adding the config parameter as a channel is a more desirable approach IMO, since other users will be able to benefit from the channel.

Here’s an example of a parameter I added for the Dome Siren, which I can use to set the notification sound from within a rule.
https://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/589


(Chris Jackson) #7

I agree - it is a more usable, and reusable, solution than using the REST interface.


(stephen lombard) #8

Thanks all this was very helpful!!!

Below is where I landed but I really wanted to create the Channel but I couldn’t get it to work. Does this require me to add the channel to the DB locally? Additionally, will they get updated so they stay in synch?

rule “Update Config Alarm”

when
Item door_alarm_setting changed
then
sendHttpPutRequest(“http://127.0.0.1:8080/rest/things/zwave:device:1c194xdf:node14/config”, “application/json”, “{‘config_7_1’:”+door_alarm_setting.state+"}")
end