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

Occupancy for everything? #71

Open
wkearney99 opened this issue Nov 21, 2021 · 2 comments
Open

Occupancy for everything? #71

wkearney99 opened this issue Nov 21, 2021 · 2 comments

Comments

@wkearney99
Copy link

In Ra2 there's occupancy for areas that have their sensors, and then there's also a 'rollback' timer. It's possible to have a room set with a rollback timer, and a value that executes a vacancy scene when the timer expires. This is a handy way to allow manually turning on a light that's part of a rollback group and have it (and anything else in the rollback group) automatically set to a scene once the timer expires. Note I mentioned 'set to a scene' not just 'turned off' as you could have one area time out and perhaps change values in another. Like turning off a bathroom, and then setting an adjacent hallway light to a low dimmed level like for a nightlight.

Anyway, I noticed in HA occupancy entities were being picked up for EVERY room, not just ones with a motion sensor or a rollback. I'm not sure that's correct. I can, of course, just disable the entities where there's not actually a sensor/rollback but this gets tedious when you have dozens of them.

Should the importing routine be creating binary_sensor._occupancy for every room? Or only just ones with an actual sensor or rollback?

@JonGilmore
Copy link
Collaborator

Hm, you're absolutely correct - I never noticed this issue because I have quite a few lutron motions. I'll see if I can take a look at this at some point here, thanks for reporting it

@JonGilmore
Copy link
Collaborator

I've got a PR up @wkearney99 to fix this, would love it if you could give some feedback and test it out. I did some basic testing on my system and things look OK, but 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants