Skip to content

"Remaining Time" and "Next State Change" Sensors

Compare
Choose a tag to compare
@dalinicus dalinicus released this 03 Nov 21:04
· 1 commit to main since this release
a411801

What's Changed

💥 Breaking Changes

  • Removed "Surplus" sensor
    • Replaced by "Remaining Time" sensor
    • This value represented the remaining time until the controller would toggle power in timer and schedule based modes, and was pulled from the control payload as it was thought it was the only place it was made available. The correct value was discovered in the sensor payload, so this control is no longer needed.

🚀 Features

  • Add "Remaining Time" sensor for port devices.
    • Represents the number of seconds until the next state change when using timer or schedule based modes.
    • Replaces the "Surplus" sensor.
  • Add "Next State Change" sensor for port devices.
    • Represents he timestamp of the next state change when using timer or schedule based modes, calculated based on the controller's configured time zone
    • Required for Timer Bar Card support

🪲 Bug Fixes

  • Fix issue with select based controls where the data returned by the AC Infinity API may have None values in fields that represent enum values, resulting in an index lookup error. Defaults values were added to all select controls to protect against this scenario.

🔨 Refactoring

  • Switch to python 3 built in ZoneInfo to handle timezone calculations
  • Fixed miscellaneous typos

Full Changelog: 1.7.0...1.8.0