notabene00 / HomeyCONZ

deCONZ app for Athom Homey smart home controller
GNU General Public License v3.0
18 stars 11 forks source link

Xiaomi motion sensor reset after 5 seconds #19

Closed Vissertje1980 closed 4 years ago

Vissertje1980 commented 4 years ago

Hello,

I have modified all my xiaomi motion (with and without light metering) sensors to get a motion alarm of 5 seconds. Is it possible to implement the possibility to turning the motion alarm off after 5 seconds?

Best regards Jan Willem

notabene00 commented 4 years ago

Hi

Yes, it is possible, but it has no deal with this app

You can:

curl -H 'Content-Type: application/json' -X PUT -d '{"duration": 5}' http://phoscon_ip_here:80/api/api_key_here/sensors/motion_sensor_id_here/config

for each of your sensors

Then they will "report" no motion in 5 seconds and my app will react accordingly - start no motion timer after 5 seconds Actually they're not reporting it, the other side (deCONZ itself) just saying "no motion for X seconds", so turn motion off That X we set in the put request above

Vissertje1980 commented 4 years ago

Thank you very much for you replay. Gonna look at it :-)