Habapp

Latest version: v24.2.0

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

Scan your dependencies

Page 10 of 11

0.12.0

- Added ``boundary_func`` to the scheduled item. If set it will be called with the next datetime and can be used to easily add custom timing function (e.g. on weekdays run on 8, on weekends run on 9)
- Removed ``ValueNoChangeEvent`` & ``ValueNoUpdateEvent``
- Added ``ItemNoChangeEvent`` & ``ItemNoUpdateEvent``
- Items have a watch_change and watch_update function

- Added ``GroupItem``, ``StringItem``, ``DatetimeItem``, ``LocationItem``, ``PlayerItem``, ``Thing`` to ``HABAp.openhab.items``
- All items from Openhab inherit from ``OpenhabItem``
- All events from Openhab inherit from ``OpenhabEvent ``

0.11.0

- Updated documentation
- Added _last_change and _last_update to item and created property which returns timezone naive obj
- Item value get properly set if they return a unit
- Added support for ThingStatus events
- Added fixes and tests for QuantityType
- Added mapping of QuantityType (fixes 94)
- Scheduler fixes
- Added scheduler for Sunrise/Sunset/etc (closes 93)
- Internal Timestamps are all utc now
- Added location config

0.10.1

- Serialized rule (un-) loading (fixes 80)
- Added documentation for set_file_validator
- added func get_path for FileEvents
- Gracefully shutdown aiohttp on shutdown of HABApp
- Openhab Tests log to own file
- MyPy fixes

0.10.0

- Configured logfiles get rotated on startup instead of deleted
- added parameter "wait_for_openhab". If true HABApp will wait until items
from openhab have been loaded before loading the rules
- Param & Rule file loading is now event based:
Reloading of both file types can be observed and triggered from within rules
- Deprecated some functions and added deprecation warnings to the log
- Error Processing is now event based, too. Removed WrappedFunction._ERROR_CALLBACK.
Added an example how to process rule error messages in documentation
- Prepared parameter file validation
- Added some more documentation

0.9.2

- ComplexEventValue works now for all Events
- Ping works again as intended (fixes 83)
- Fixed bug when item from openHAB changed type and change was not reflected in HABApp
- Fixed wrong type hint for run_xxx

0.9.0

- Renamed functions and variables for item (added deprecation warning for old item.state property)
- item.state -> item.value
- item.set_state -> item.set_value
- item.post_state -> item.post_value
- item.get_state -> item.get_value
- Moved configuration to EasyCo
- MQTT configuration has listen_only switch, too
- Added NumberItem to openhab.items
- Updated lots documentation
- Added functions with corresponding commands for OpenhabItems
- Added command processing for OpenhabItems
- Prepared for Openhab 2.5
- Use relative names in testing configuration
- Counter is thread safe
- renamed ColorItem.value to ColorItem.brightness
- MultiModeValue has function calculate_lower_priority_value which returns the low prio value

Page 10 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.