Bermuda with some small tweaks (per-room distance limits, temporal stability filtering, and unified device sensor) #564
Replies: 1 comment 2 replies
-
Great stuff, @andreamag00 ! This is exactly how to take the existing sensors and "bend them to your will" :-) Bermuda tries to give data that is the "most reponsive, even if inaccurate", the idea being that you can always apply filters to calm it down, but you can never "restore" that responsiveness after it's filtered out. I do plan to move a number of settings to be able to be "per device" or "per proxy" by using disabled-by-default sensors, which will hopefully simplify some of these tasks, but what you've done is in my opinion exactly the right way to approach these sorts of customisation, and thanks for sharing your solutions with everyone! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I switched from ESPresense to Bermuda.
I find Bermuda exceptional, and I’d like to sincerely thank @agittins and share with you some of my customizations.
1) Maximum distance per room
It would be great to set a maximum distance from the Bluetooth proxy within which a detected device is considered to be in a room.
In my experience, this would be useful in several situations (e.g., a device in the garden being detected in the living room, a device on the lower floor being detected upstairs, homes where Bluetooth proxies are only present in certain rooms, etc.).
To implement this feature:
2) Tuning stability
So, I decided to add a time-based threshold to the existing Bermuda options: the Bermuda values (home, away, room change) are only confirmed if they remain stable for x seconds.
To implement this:
3) A single sensor
Bermuda provides two very useful sensors:
I thought it would be very useful to merge these into a single sensor.
So, I created a template sensor that returns:
Conclusion
By combining the ideas from sections 1, 2, and 3, I created a final template sensor (reached through two intermediate sensors, which I exclude from the database to avoid generating unnecessary data) that returns:
UI
Code
Beta Was this translation helpful? Give feedback.
All reactions