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
Configure Z-wave device
Moderator: leecollings
- 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
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...
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...
-
- Posts: 24
- Joined: Monday 23 January 2017 7:05
- Target OS: Linux
- Domoticz version: 4.10717
- Contact:
Re: Configure Z-wave device
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
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
- 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
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.
-
- Posts: 24
- Joined: Monday 23 January 2017 7:05
- Target OS: Linux
- Domoticz version: 4.10717
- Contact:
Re: Configure Z-wave device
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
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
Who is online
Users browsing this forum: No registered users and 1 guest