Habapp

Latest version: v24.11.1

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 11

0.31.0

- added self.get_items to easily search for items in a rule
- added full support for tags and groups on OpenhabItem
- Application should now properly shut down when there is a PermissionError
- Added DatetimeItem to docs
- Label in commandOption is optional
- Added message when file is removed
- Examples in the docs get checked with a newly created sphinx extension
- Reworked the openhab tests

0.30.3

- add support for custom ca cert for MQTT
- Scheduler runs only when the rule file has been loaded properly
- Sync openhab calls raise an error when called from an async context
- Replaced thread check for asyncio with a contextvar

0.30.2

- Item and Thing loading from openHAB is more robust and disconnects now properly if openHAB is only partly ready
- Renamed command line argument "-s" to "-wos" or "--wait_os_uptime"
Now waits until the system uptime is at least the specified value before starting HABApp
- Renamed HABApp.openhab.exceptions to HABApp.openhab.errors
- Updated dependencies

0.30.1

- latitude is now set correctly for sunrise/sunset calculation (closes 217)
- Added missing " for tags in textual thing configuration
- Updated scheduler which fixes an overflow error(216)
- States of openHAB groups are now unpacked correctly

0.30.0_Rel
Attention:
- No more support for python 3.6!
- Migration of rules is needed!

Changelog
- Switched to Apache2.0 License
- Fix DateTime string parsing for OH 3.1 (214)
- State of Groupitem gets set correctly
- About ~50% performance increase for async calls in rules
- Significantly less CPU usage when no functions are running
- Completely reworked the file handling (loading and dependency resolution)
- Completely reworked the Scheduler!
- Has now subsecond accuracity (finally!)
- Has a new .coundown() job which can simplify many rules.
It is made for functions that do something after a certain period of time (e.g. switch a light off after movement)
- Added hsb_to_rgb, rgb_to_hsb functions which can be used in rules
- Better error message if configured foldes overlap with HABApp folders
- Renamed HABAppError to HABAppException
- Some Doc improvements

Migration of rules:
- Search for ``self.run_`` and replace with ``self.run.``
- Search for ``self.run.in`` and replace with ``self.run.at``
- Search for ``.get_next_call()`` and replace with ``.get_next_run()`` (But make sure it's a scheduled job)
- Search for ``HABAppError`` and replace with ``HABAppException``

0.20.2

- Added HABApp.util.functions with min/max
- Reworked small parts of the file watcher
- Doc improvements
- Dependency updates

0.20.1

- Optimized AggregationItem
- HABApp logs are now included by default in Frontail on openhabian
- Fixed a bug where HABApp and logging config was not reloaded

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.