Configure Z-wave device

Moderator: leecollings

Post Reply
SVdHeyden
Posts: 24
Joined: Monday 23 January 2017 7:05
Target OS: Linux
Domoticz version: 4.10717
Contact:

Configure Z-wave device

Post by SVdHeyden »

Hi,

I've a problem with a battery powered z-wave Multi sensor containing a movement, humidity, light (lux),.. sensors.
As the device is battery powered the device will become aware every 2 hours.
The movement sensor is working fine, from the moment movement is detected the sensor reports the status. For the humidity sensor the report should be sent when there is a step noticed of 1%. Problem now is that the sensor is not sending humidity reports.
What I want to do is that once movement is detected I want to modify the device configuration in that way that the sensor reports every 30 sec for example the humidity instead of using the threshold.

Question: can this be done via LUA script (JSON)?

Can someone give some advice, code examples?

Thanks a lot
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Configure Z-wave device

Post by Egregius »

I've done this before in php so it must be possible in lua.
I would suggest: use the developer console of your browser to see what json command is sent when you update the setting in hardware/zwave page.
Copy the 2 urls, 1 for the 30 seconds, 1 for the 2 hours.
In your lua script curl those url's.
But...
As your device only wakes every 2 hours it can take 2 hours before the settings are applied...
SVdHeyden
Posts: 24
Joined: Monday 23 January 2017 7:05
Target OS: Linux
Domoticz version: 4.10717
Contact:

Re: Configure Z-wave device

Post by SVdHeyden »

Thanks,

Concerning the wakeup time I was assuming that the device was listening to commands from the controller when he sends the movement sensor status. By then the periodic measurements are active and then when movement sensor is giving no movements detected for a while the periodic measurements can be disabled. Also here because of the periodical measurements I assume the device is listening to the controller for possible commands...
Is this a correct assumption.
Else my setup will not work...

Thanks
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Configure Z-wave device

Post by Egregius »

I did it for Danfoss valves, don't know how a motion sensor will react. Easy to test. Set a very short wake up, make a motion and watch ozwcp to see if the device wakes.
SVdHeyden
Posts: 24
Joined: Monday 23 January 2017 7:05
Target OS: Linux
Domoticz version: 4.10717
Contact:

Re: Configure Z-wave device

Post by SVdHeyden »

Hi all,

I will try this out. When I have som results I will put it here

If there is other advice feel free to share
Thank
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest