-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support Floor sensor entity based on currently detected Area. #431
Comments
HI, |
Yes, one can certainly solve this using helpers like template sensors, it just gets a bit cumbersome if you have a lot of devices you want to track (creating a helper for each device). Blueprints can make that a little easier to maintain, I guess - but it's hard to beat the convenience of having something built-in. |
for sure true. But code has to be maintained, and if it is a rarer problem, it might be worth not implementing it :-) I know I raised the issue, but if I am the only one, ... I have many other addons installed, and pressing the "update HA" button makes my pray more and more every time :-) Now I have an update, that works on my test HA machine and not on the real HA instance :-( anyway. It just dropped to my mind, that "less might be more". thanks |
That should definitely be possible. Typically the approach is to not call async_add_entities for that entity if you don't want it and just do the check if floors exist to then call async_add_entities for it |
Now that HA has floors, Bermuda can/should support exposing a sensor for the current
floor
of a device.In simple terms, this would simply look up the Floor for the current Area, and expose that. Some points to consider, though:
The text was updated successfully, but these errors were encountered: