Releases: plugwise/python-plugwise
Releases · plugwise/python-plugwise
API change for stick
- Improvement: Debounce relay state
- Improvement: Prioritize request so requests like switching a relay get send out before power measurement requests.
- Improvement: Dynamically change the refresh interval based on the actual discovered nodes with power measurement capabilities
- Added: New property attributes for USB-stick.
The old methods are still available but will give a deprecate warning- Stick
devices(dict) - All discovered and supported plugwise devices with the MAC address as their keyjoined_nodes(integer) - Total number of registered nodes at Plugwise Circle+mac(string) - The MAC address of the USB-Sticknetwork_state(boolean) - The state (on-line/off-line) of the Plugwise network.network_id(integer) - The ID of the Plugwise network.port(string) - The port connection string
- All plugwise devices
available(boolean) - The current network availability state of the devicebattery_powered(boolean) - Indicates if device is battery poweredfeatures(tuple) - List of supported attribute IDsfirmware_version(string) - Firmware version device is runninghardware_model(string) - Hardware model namehardware_version(string) - Hardware version of devicelast_update(datetime) - Date/time stamp of last received update from devicemac(string) - MAC address of devicemeasures_power(boolean) - Indicates if device supports power measurementname(string) - Name of device based om hardware model and MAC addressping(integer) - Network roundtrip time in millisecondsrssi_in(integer) - Inbound RSSI level in DBmrssi_out(integer) - Outbound RSSI level based on the received inbound RSSI level of the neighbor node in DBm
- Scan devices
motion(boolean) - Current detection state of motion.
- Sense devices
humidity(integer) - Last reported humidity value.temperature(integer) - Last reported temperature value.
- Circle/Circle+/Stealth devices
current_power_usage(float) - Current power usage (Watts) during the last secondcurrent_power_usage_8_sec(float) - Current power usage (Watts) during the last 8 secondspower_consumption_current_hour(float) - Total power consumption (kWh) this running hourpower_consumption_previous_hour(float) - Total power consumption (kWh) during the previous hourpower_consumption_today(float) - Total power consumption (kWh) of todaypower_consumption_yesterday(float) - Total power consumption (kWh) during yesterdaypower_production_current_hour(float) - Total power production (kWh) this hourrelay_state(boolean) - State of the output power relay. Setting this property will operate the relay
- Switch devices
switch(boolean) - Last reported state of switch
- Stick
Code quality improvements for stick
- Bug-fix: Power history was not reported (0 value) during last week of the month
- Improvement: Validate message checksums
- Improvement: Do a single ping request to validate if node is on-line
- Improvement: Guard Scan sensitivity setting to medium
- Improvement: Move general module code of messages, nodes, connection to the init.py files.
- Improvement: Do proper timeout handling while sequence counter resets (once every 65532 messages)
- Improvement: Better code separation. All logic is in their designated files:
- Connection (connection/*.py)
- Data parsing (parser.py)
- Data encoding/decoding of message (messages/*.py)
- Message handling - Initialization & transportation (controller.py)
- Message processing - Do the required stuff (stick.py & nodes/*.py)
- Improvement: Resolves all flake8 comments
Fix sensor scaling
- Fix for via HA Core issue #44349
- Remove aiohttp-workaround - issue solved in aiohttp 3.7.1
Keep backwards compatibility
Merge pull request #47 from plugwise/passwdfix Update changelog
Bug-fix, add model-info to output, code and test improvements
- Switch Smile to defusedxml from lxml (improving security)
- Lint and flake recommendations fixed
- Project CI changes
- Bug-fix: fix use of
majordue to change of usingsemver.VersionInfo. - Add model-info: to be used in Core to provide a more correct model-name for each device.
- Code improvements and increase in test-coverage.
Standardize logging for stick
Merge pull request #22 from plugwise/release-0.8.1 Bump to v0.8.1
Merging Plugwise-Smile and python-plugwise
Plugwise-Smile (by @CoMPaTech and @bouwew) and python-plugwise (by @brefra) have been merged into plugwise, picking up and continuing the work done by @cyberjunky and other predecessors.