Skip to content

Releases: plugwise/python-plugwise

Smile optimize

25 Feb 18:19
37683e0
Compare
Choose a tag to compare
  • Functions not called by the plugwise(-beta) code have been moved to helper.py in which they are part of the subclass SmileHelper
  • All for-loops are now executed only once, the results are stored in self-parameters.
  • Added fw, model and vendor information into the output of get_device_data(), for future use in the HA Core Plugwise(-beta) Integration
  • Split off HEATER_CENTRAL_MEASUREMENTS from DEVICE_MEASUREMENTS so they can be blocked when there is no Auxiliary device present
  • Collect only the data from the Smile that is needed: full_update_device() for initialization, update-device() for updating of live data
  • Adapt test_smile.py to the new code, increase test-coverage further

Add DHW Comfort Mode switch

13 Feb 18:57
Compare
Choose a tag to compare

API change for stick

23 Jan 20:22
e5ad7e0
Compare
Choose a tag to compare
  • 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 key
      • joined_nodes (integer) - Total number of registered nodes at Plugwise Circle+
      • mac (string) - The MAC address of the USB-Stick
      • network_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 device
      • battery_powered (boolean) - Indicates if device is battery powered
      • features (tuple) - List of supported attribute IDs
      • firmware_version (string) - Firmware version device is running
      • hardware_model (string) - Hardware model name
      • hardware_version (string) - Hardware version of device
      • last_update (datetime) - Date/time stamp of last received update from device
      • mac (string) - MAC address of device
      • measures_power (boolean) - Indicates if device supports power measurement
      • name (string) - Name of device based om hardware model and MAC address
      • ping (integer) - Network roundtrip time in milliseconds
      • rssi_in (integer) - Inbound RSSI level in DBm
      • rssi_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 second
      • current_power_usage_8_sec (float) - Current power usage (Watts) during the last 8 seconds
      • power_consumption_current_hour (float) - Total power consumption (kWh) this running hour
      • power_consumption_previous_hour (float) - Total power consumption (kWh) during the previous hour
      • power_consumption_today (float) - Total power consumption (kWh) of today
      • power_consumption_yesterday (float) - Total power consumption (kWh) during yesterday
      • power_production_current_hour (float) - Total power production (kWh) this hour
      • relay_state (boolean) - State of the output power relay. Setting this property will operate the relay
    • Switch devices
      • switch (boolean) - Last reported state of switch

Code quality improvements for stick

23 Jan 20:04
b0bb0be
Compare
Choose a tag to compare
  • 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:
    1. Connection (connection/*.py)
    2. Data parsing (parser.py)
    3. Data encoding/decoding of message (messages/*.py)
    4. Message handling - Initialization & transportation (controller.py)
    5. Message processing - Do the required stuff (stick.py & nodes/*.py)
  • Improvement: Resolves all flake8 comments

Fix sensor scaling

07 Jan 17:29
62e8d92
Compare
Choose a tag to compare
  • Fix for via HA Core issue #44349
  • Remove aiohttp-workaround - issue solved in aiohttp 3.7.1

Keep backwards compatibility

28 Nov 12:37
6e340ce
Compare
Choose a tag to compare
Merge pull request #47 from plugwise/passwdfix

Update changelog

Bug-fix, add model-info to output, code and test improvements

15 Nov 18:42
739edd8
Compare
Choose a tag to compare
  • Switch Smile to defusedxml from lxml (improving security)
  • Lint and flake recommendations fixed
  • Project CI changes
  • Bug-fix: fix use of major due to change of using semver.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

25 Oct 09:34
b2382fe
Compare
Choose a tag to compare
Merge pull request #22 from plugwise/release-0.8.1

Bump to v0.8.1

Merging Plugwise-Smile and python-plugwise

24 Oct 07:31
ddaa692
Compare
Choose a tag to compare

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.