Skip to content

Window open does not turn off heater in simple configuration #161

@janegilv

Description

@janegilv

I am setting up this blueprint with just a heater and a window sensor:

  1. Add heater to AHC
  2. Add window sensor to AHC
  3. Set timers for window sensors to 0 seconds for easier troubleshooting

In normal mode the blueprint does not turn off the heater when the window is opened. When the window is closed the heater state is restored as expected.
Legacy mode works as expected.

I have tested various commits, and this seems to break in 0cc38ff

Following the traces it seems to that the following if condition does not follow the same path as before

value_template: "{{ has_changes and allow_changes }}"

As a workaround I have done the following replacement which solves my issue, but I don't know whether this breaks any other logic.

minimal_config_bypass: >
    {{
-     (is_legacy_restore and is_window_trigger) or
+     (is_window_trigger) or
      (is_liming_trigger)
    }}

Attached are traces from the commits right before this was broken, and where it was broken.
nonworking-trace automation.advanced_heating_control_v5 2026-02-28T17_34_22.557114+00_00_commit-0cc38ff858294aeecbdedd3106ba2081d60a782a.json
working-trace automation.advanced_heating_control_v5 2026-02-28T17_31_56.208090+00_00_commit-df5a17ecbb2ceaf396ca8108fc269a467fb86ded.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions