Skip to content

0.7.0

Compare
Choose a tag to compare
@mhthies mhthies released this 02 Nov 21:14
· 191 commits to main since this release
1309570

New Features

  • The Slider web widget now can be supplemented with two buttons to the left and right via the new constructor parameters left_button and right_button.
    • Including a ready-to-use variant MinMaxButtonSlider with buttons that move the slider to the minimum/maximum value have
  • Added the UpdateExchange class: A stateless alternative to shc.Variable, allowing to connect multiple connectable objects through a single point and to split up tuple values by subscribing to individual fields.
  • Added the FilePersistenceStore for persisting values over SHC restarts in a JSON file

Breaking Changes

None

Improvements

  • The @shc.handler and @shc.blocking_handler decorators now support decorating functions with less than two parameters: origin and value of the value update are only passed to the handler function if the parameters is present.
  • Added a logo for Smart Home Connect. The logo is also used as favicon and app icon for the web interface
  • Updated SemanticUI framework with many fixes for the web UI (esp. touch event handling of Sliders and the menu)
  • Updated all NPM packages to mitigate bugs and security flaws

Fixes

  • Fixed possible value update loops, caused by concurrent updates via multiple objects, resulting in inconsistent states in the end. Fixed by delaying re-published value updates (with resetted origin) randomly.
  • SHCWebClient: Fixed broken decoding of complex values in reflected value updates (during concurrent updates)
  • mypy_variable_plugin: Fixed support for newer MyPy versions

Documentation

  • New example of special configuration tricks for KNX connection
  • New example of using astropy for sun position calculation and OpenWeatherMap for weather forecast