This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
Releases: bdraco/aiosenseme
Releases · bdraco/aiosenseme
v0.6.1
v0.6.0
What's Changed
- Add basic CI by @bdraco in #15
- Bunch of typing improvements and fixes by @frenck in #14
- Get mypy passing (with a few ignores to fix later) by @bdraco in #16
- feat: support smartmode params by @barlock in #11
- Drop python 3.6 by @bdraco in #17
- Add bump2version support by @bdraco in #18
New Contributors
Full Changelog: v0.5.5...v0.6.0
v0.5.5
- Improve startup time when initially connecting to device.
Release v0.5.4
- Fix error caused by adding timeout in v0.5.3.
Release v0.5.3
- Added timeout in listener task to better detect when fans are offline.
Release v0.5.2
- Fix partial status message from device causing listener task to exit from an unhandled exception. Once this happened the device would be deaf to status updates.
Release v0.5.1
- Determine a callback type (coroutine or function) only when adding the callback. The reduces overhead in callbacks.
- Callbacks are stopped when the device is waiting for the first update and can only occur when a parameter has changed. Callback frequency has been significantly reduced.
- Thanks go to bdraco for help in making these changes.
Release v0.5.0
- Devices can now be added with an IP address instead of being discovered. Some network configurations will not allow UDP Discovery packets through but a direct TCP connection will work.
- Add support for locating a fan by IP address in the command line.
- Added additional error checking on Discovery listener sockets.
- Changed the reconnect logic slightly. SensemeDevice will now force an update of all parameters when reconnected.
- API breaking changes.
- In the SensemeDevice constructor the 'id' parameter changed to 'mac, 'ip' is now 'address', and 'model' is now 'base_model'.
- SensemeFan.fan_whoosh property is now SensemeFan.fan_whoosh_mode.
- SensemeDevice.id property has been removed. Use SensemeDevice.mac property instead.
- SensemeDevice.motion_sensor property changed to SensemeDevice.motion_detected.
- API additions
- SensemeDevice.get_device_info property returns a dictionary with key SenseME device information.
- SensemeDevice constructor now has an 'info' parameter. You can use the dict obtained from SensemeDevice.get_device_info property.
- SensemeDevice.available property indicates when the device is connected and the first parameter update is complete.
- SensemeDevice.mac property gets the MAC address of the device.
- SensemeDevice.uuid property gets the Network Token (UUID) obtained from the device.
- SensemeDevice.base_model property gets the model of the device as returned by the device. SensemeDevice.model property gets the prettier formatted model name.
- SensemeDiscovery.add_by_device_info(info) allows you to add a device by info dict obtained by SensemeDevice.get_device_info. It will be added to the discovery device list just like it was discovered. This works for both fans and lights.
- SensemeDiscovery.add_by_ip_address(address) allows you to add a device by IP address. It will be added to the discovery device list just like it was discovered. This works for both fans and lights.
- aiosenseme.async_get_device_by_device_info(info) connects to and returns a device using and info dict obtained by SensemeDevice.get_device_info. This method returns an appropriate SensemeFan or SensemeLight object.
- aiosenseme.async_get_device_by_ip_address(address) connects to a device via the specified IP address, determines key information and returns an appropriate SensemeFan or SensemeLight object.
- SensemeFan.sleep_mode property sets/gets the current sleep mode in the device.
- SensemeFan.fan_speed_limits property. Gets a Tuple of both fan speed minimum and fan speed maximum.
- Command line changes
- Added -i/--ip option to connect to fans directly without using discovery.
- Added -j/--json option to output fan information and state as json.
- -n/--name no longer matches on room name also.
Release v0.4.5
- Fix error when cancelling the listener task of a device when stop() is called. Thanks to briantho for bringing this to my attention.
Release v0.4.4
- Fix protocol error on Windows and Python 3.7.8 and above. This error prevented discovery of any SenseME devices.