Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hue Motion Sensor return to previous state #2202

Closed
traffiqq opened this issue Dec 13, 2019 · 5 comments
Closed

Hue Motion Sensor return to previous state #2202

traffiqq opened this issue Dec 13, 2019 · 5 comments
Labels

Comments

@traffiqq
Copy link

Hi,

after migrating to deconz from my hue bridge i am trying to get my hue motion sensor running.

I already paired it and setup rules in phoscon. Now what i don't know is the following:
In the Hue App i could tell the sensor to return to the previous state instead of switching the lights off, is this possible with deconz too ?

Regards Christian

@ebaauw
Copy link
Collaborator

ebaauw commented Dec 13, 2019

In theory: yes, Phoscon would need to create similar rules on the deCONZ gateway to what the Hue app creates on the Hue bridge. These rules probably create a temporary scene to hold the current state on detecting motion, then change the light to the new state. When no longer detecting motion, they recall the temporary scene.

Phoscon is not open source, and I doubt this will be high on their priority list. As a workaround, you would need to check the rules the Hue app creates on the Hue bridge, and create similar rules on the deCONZ gateway yourself, using the API. Unfortunately, the Hue and deCONZ APIs handle scenes differently, so the Hue app cannot be used with deCONZ.

@traffiqq
Copy link
Author

traffiqq commented Dec 13, 2019

Thanks Erik,
i guess i will try to do that in node red then.

@ebaauw
Copy link
Collaborator

ebaauw commented Dec 13, 2019

Not sure if node red supports creating a deCONZ scene. It would need a deCONZ connector/plugin (whatever it's called) instead of a Hue connector to deal with the different API.

@traffiqq
Copy link
Author

No it does not support that but here is my plan:

  1. listen for presence in node red
  2. save light state in node red
  3. trigger the lights
  4. start a timer
  5. restore old state after timer runs out

I guess that should do the trick.

@stale
Copy link

stale bot commented Apr 11, 2020

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.

@stale stale bot added the stale label Apr 11, 2020
@stale stale bot closed this as completed Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants