github adanowitz/HASSL v0.6.1
HASSL v0.6.1

26 minutes ago

HASSL v0.6.1

Highlights

  • Sync propagation now uses latest-value behavior and context-safe device writes, preventing queued intermediate states and feedback loops.
  • Shared light syncs track the active color mode so RGB/HS and color-temperature updates do not fight each other.
  • Missing aliases, templates, and template arguments now fail compilation with actionable source and package diagnostics.
  • Whole-home builds keep aliases isolated between packages instead of allowing common names such as light and motion to leak across rooms.

Synchronization safety

  • Writer scripts now use restart mode and perform both context stamping and the device service call in the same script context.
  • Downstream and recovery automations use restart mode so stale queued values cannot replay later.
  • On/off writers accept an explicit target state and preserve inverted-member behavior.
  • Recovery from unavailable restores the proxy state without accepting the recovering device's stale state as a new upstream command.
  • Light color-temperature synchronization now uses Home Assistant's color_temp_kelvin attribute and service field.
  • Shared color syncs record whether color temperature or HS/RGB is active and restore only that mode.
  • Generated compiler-owned YAML replaces stale content instead of retaining removed helpers, scripts, or members.

Rules and light actions

  • Adjacent light on, brightness, and Kelvin assignments compile into one atomic light.turn_on call.
  • Adjacent brightness and Kelvin assignments also combine when no explicit on assignment is present.
  • Timed waits handle conditions that are already true when the wait begins and restart their timer if the condition becomes false.
  • not_by this, not_by any_hassl, and not_by rule(...) retain their distinct meanings during parsing.

Compiler diagnostics

  • Missing template uses no longer disappear silently.
  • Bare unresolved aliases in conditions, actions, waits, and sync members stop compilation.
  • Template calls reject missing, unknown, duplicate, and excessive arguments.
  • CLI semantic failures identify the source path and package without an internal traceback.
  • Missing imported modules continue to produce warnings; using an unresolved symbol then fails compilation.
  • Holiday declarations preserve country and province and warn about their required Home Assistant Workday entity.

Package correctness

  • Removed cross-package alias contamination during combined whole-home builds.
  • Preserved valid raw event names such as vendor-specific button gestures during strict alias checking.
  • Added regression coverage for sync feedback protection, active color modes, robust waits, template diagnostics, and room alias isolation.
  • The complete test suite passes with 57 tests.

Compatibility

  • Package version is now 0.6.1.
  • Python 3.11 or newer remains required.
  • Existing fully qualified entity IDs, imports, templates, and single-file compilation remain supported.

Don't miss a new HASSL release

NewReleases is sending notifications on new releases.