dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 498 forks source link

VPIR instantly turns back on (true) after turning off (false) #2719

Open vandalon opened 4 years ago

vandalon commented 4 years ago

When using a vpir sensor, consistent of 2 motion sensors in deconz the api returns a true right after a false when both motion sensors go to false.

< {"e":"changed","id":"107","r":"sensors","state":{"lastupdated":"2020-04-25T11:22:43","presence":false},"t":"event","uniqueid":"vpir-1587812818604"}
< {"e":"changed","id":"107","r":"sensors","state":{"lastupdated":"2020-04-25T11:22:43","presence":true},"t":"event","uniqueid":"vpir-1587812818604"}
< {"e":"changed","id":"74","r":"sensors","state":{"lastupdated":"2020-04-25T11:22:45","presence":false},"t":"event","uniqueid":"00:15:8d:00:03:02:fc:9f-01-0406"}

74 was the sensor turning from true to false, the other one was not triggered.

The sensors used are one philips hue motion sensor (not triggered) and one xiamomi motion sensor. (74)

Mimiix commented 4 years ago

Is this fixed?

vandalon commented 4 years ago

Is this fixed?

Not to my knowledge :)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

vandalon commented 4 years ago

Would be nice to see this addressed :)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

vandalon commented 4 years ago

Bumb

Mimiix commented 4 years ago

added backlog so the bot leaves you alone ;)

ebaauw commented 4 years ago

Where did you create this vpir sensor? Is it a CLIPPresence sensor with rules to update it? Looks like an issue with the app that created the vpir sensor, not with the REST API.

vandalon commented 4 years ago

Hi Eric,

I've created them within the phoscon app via sensor control, adding 2 sensors for 1 automation that does nothing, but it does expose a vpir which i then use in node-red.

ebaauw commented 4 years ago

What rules did Phoscon create to update the vpir?

vandalon commented 4 years ago

what do you mean exactly with rules?

ebaauw commented 4 years ago

http://dresden-elektronik.github.io/deconz-rest-doc/rules/