-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from agittins/agittins-dev
Docs, Sensor Churn fixes, Unit conversions, Max_Velocity via ConfigFlow - chore: Documentation updates for new features - updated strings in en.json - Big readme update - new screenshots for deviceinfo and sensor-info - Fixed spelling of Shelly and clarified it's the Shelly Plus devices that offer bluetooth proxy. - documented new settings, and clarified how some options work. - included `recorder` glob filtering tip from @jaymunro - feat: Reduce sensor churn with update_interval state caching and others - Config setting for update_interval now controls how long we can cache or "sit on" an increasing distance sensor before updating the state machine. The backend still updates every second, and uses the most up-to-date values for calcs, but we rate-limit what we send to the UI to lessen database and browser memory impacts. Decreasing measurements are still sent immediately, so only "fading" distances are rate-limited. - fixed BermudaSensorEntity not being sub-classed from SensorEntity. This explains why I was having to implement the `state` property. Downside (perhaps) is that now we suffer the sensor class' history dialog which does 5-minute min/max/mean instead of actual data, but this might be better anyway for mobile and tablet clients as it reduces the browser memory footprint, I believe. We still get proper, granular data from the history tool, so no biggie. - cleaned up some dead code comments in sensor.py - replaced all `state` property implementations with `native_value` instead. - fix: user-specified units now work, so those using the king's freedom units can feel at home :-) - feat: Added MAX_VELOCITY to config flow - MAX_VELOCITY sets an upper bound on how fast a device can be seen as "travelling away" from a scanner. Readings that imply movement faster than this are ignored, as they are almost certainly noisy. The default of 3m/s (approx 10km/h or 6mph) is a sensible default, but can be tweaked if desired. - Added fallback for name in CONF_DEVICES select list to use mac address, in case it's causing items to not show for some users.
- Loading branch information
Showing
9 changed files
with
177 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.