Schedule issue

I have an issue around a schedule which sued to work but now does not

Despite the schedule being off, the below automation always runs, even thought it has a check in it.

Can anyone spot an obvious mistake I have made?

I have an issue around a schedule which used to work but now does not

Despite the schedule being off, the below automation always runs, even though it has a check in it.

Can anyone spot an obvious mistake I have made?

alias: Night Temperature
description: ""
mode: single
triggers:
  - trigger: state
    entity_id:
      - schedule.night_schedule
conditions:
  - condition: state
    entity_id: schedule.night_schedule
    state: "on"
actions:
  - action: climate.set_temperature
    metadata: {}
    data:
      temperature: 16
    target:
      entity_id:
        - climate.master_bedroom_radiator
        - climate.office_radiator
        - climate.living_room_radiator
        - climate.kitchen_radiator
        - climate.dining_room_radiator
  - action: climate.set_temperature
    metadata: {}
    data:
      temperature: 26
    target:
      entity_id:
        - climate.bathroom_radiator
        - climate.hallway_radiator

The way the trigger is configured it should fire on every change of the state or any attribute. If that’s not what you want, please describe how you want it to work so we can give suggestions.

Is it actually executing the actions when the condition fails? Please download and share the debug trace so we can see what is actually happening.

I want it to only successfully run when the night schedule is on, but I use it alongside other schedule to check when I come back home which is the current schedule that is on, and for it to turn the right heaters onto the right temperatures.

I have just been running the automation by itself when the schedule is off, but it still completes the automation and changes the temptress, when it should not

{
  "trace": {
    "last_step": "action/1",
    "run_id": "3478759ae9af60511d80d45fa125e860",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2025-10-09T19:13:40.536168+00:00",
      "finish": "2025-10-09T19:13:40.615778+00:00"
    },
    "domain": "automation",
    "item_id": "211",
    "trigger": null,
    "trace": {
      "trigger": [
        {
          "path": "trigger",
          "timestamp": "2025-10-09T19:13:40.536372+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.night_temperature",
              "state": "on",
              "attributes": {
                "id": "211",
                "last_triggered": "2025-10-09T18:22:05.881021+00:00",
                "mode": "single",
                "current": 0,
                "friendly_name": "Night Temperature"
              },
              "last_changed": "2025-10-09T15:56:50.165290+00:00",
              "last_reported": "2025-10-09T18:22:05.945638+00:00",
              "last_updated": "2025-10-09T18:22:05.945638+00:00",
              "context": {
                "id": "01K753AY1RB2036CRQQ2SNM137",
                "parent_id": "01K753AY1G8Y3H93115G2P50Q4",
                "user_id": null
              }
            },
            "trigger": {
              "platform": null
            }
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2025-10-09T19:13:40.537742+00:00",
          "child_id": {
            "domain": "automation",
            "item_id": "207",
            "run_id": "f292577c7bd60017fe11c5816d12c1e3"
          },
          "changed_variables": {
            "context": {
              "id": "01K7569C5RZFHAEQ7WD0TBHV2F",
              "parent_id": "01K7569C5QTAK6CRJXA324F6NP",
              "user_id": null
            }
          },
          "result": {
            "params": {
              "domain": "climate",
              "service": "set_temperature",
              "service_data": {
                "temperature": 16,
                "entity_id": [
                  "climate.master_bedroom_radiator",
                  "climate.office_radiator",
                  "climate.living_room_radiator",
                  "climate.kitchen_radiator",
                  "climate.dining_room_radiator"
                ]
              },
              "target": {
                "entity_id": [
                  "climate.master_bedroom_radiator",
                  "climate.office_radiator",
                  "climate.living_room_radiator",
                  "climate.kitchen_radiator",
                  "climate.dining_room_radiator"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/1": [
        {
          "path": "action/1",
          "timestamp": "2025-10-09T19:13:40.609447+00:00",
          "result": {
            "params": {
              "domain": "climate",
              "service": "set_temperature",
              "service_data": {
                "temperature": 26,
                "entity_id": [
                  "climate.bathroom_radiator",
                  "climate.hallway_radiator"
                ]
              },
              "target": {
                "entity_id": [
                  "climate.bathroom_radiator",
                  "climate.hallway_radiator"
                ]
              }
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "id": "211",
      "alias": "Night Temperature",
      "description": "",
      "mode": "single",
      "triggers": [
        {
          "trigger": "state",
          "entity_id": [
            "schedule.night_schedule"
          ]
        }
      ],
      "conditions": [
        {
          "condition": "state",
          "entity_id": "schedule.night_schedule",
          "state": "on"
        }
      ],
      "actions": [
        {
          "action": "climate.set_temperature",
          "metadata": {},
          "data": {
            "temperature": 16
          },
          "target": {
            "entity_id": [
              "climate.master_bedroom_radiator",
              "climate.office_radiator",
              "climate.living_room_radiator",
              "climate.kitchen_radiator",
              "climate.dining_room_radiator"
            ]
          }
        },
        {
          "action": "climate.set_temperature",
          "metadata": {},
          "data": {
            "temperature": 26
          },
          "target": {
            "entity_id": [
              "climate.bathroom_radiator",
              "climate.hallway_radiator"
            ]
          }
        }
      ]
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01K7569C5RZFHAEQ7WD0TBHV2F",
      "parent_id": "01K7569C5QTAK6CRJXA324F6NP",
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "Night Temperature",
      "message": "triggered",
      "source": null,
      "entity_id": "automation.night_temperature",
      "context_id": "01K7569C5RZFHAEQ7WD0TBHV2F",
      "domain": "automation",
      "when": 1760037220.5365932
    }
  ]
}

I see but I have the following which combines all my temeprtru checks, but for some reason it does not work as it used to.

The idea is that this checks if we are away, or using a boost mode. If not, then it should run through all the different temperature schedules (all built like the ninth time one) and then it should run the one which passes, as the other should not pass due to the schedule not being active.

I have made sure my schedules are not clashing and only one is on at a time.

- id: "216" #Away Temperature
  alias: Away Temperature
  description: ""
  mode: single
  triggers:
    - trigger: state
      entity_id:
        - person.a
        - person.b
      from: home
      to: not_home
    - trigger: state
      entity_id:
        - person.a
        - person.b
      from: not_home
      to: home
  conditions: []
  actions:
    - choose:
        - conditions:
            - condition: and
              conditions:
                - condition: and
                  conditions:
                    - condition: state
                      entity_id: person.a
                      state: not_home
                    - condition: state
                      entity_id: person.b
                      state: not_home
                - condition: state
                  entity_id: input_boolean.heating_boost_mode
                  state: "off"
          sequence:
            - action: climate.set_temperature
              metadata: {}
              data:
                temperature: 10
              target:
                entity_id:
                  - climate.master_bedroom_radiator
                  - climate.office_radiator
                  - climate.living_room_radiator
                  - climate.kitchen_radiator
                  - climate.dining_room_radiator
                  - climate.bathroom_radiator
                  - climate.hallway_radiator
        - conditions:
            - condition: and
              conditions:
                - condition: or
                  conditions:
                    - condition: state
                      entity_id: person.a
                      state: home
                    - condition: state
                      entity_id: person.b
                      state: home
                - condition: state
                  entity_id: input_boolean.heating_boost_mode
                  state: "off"
          sequence:
            - sequence:
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: true
                  target:
                    entity_id: automation.night_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: true
                  target:
                    entity_id: automation.morning_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: true
                  target:
                    entity_id: automation.day_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: true
                  target:
                    entity_id: automation.evening_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: true
                  target:
                    entity_id: automation.bedtime_temperature

All your actions are set to skip the conditions in the automations they are triggering, like the “Night Temperature” automation. So, based on the provided examples, everything is working as it has been configured to work.

If you want…

conditions:
  - condition: state
    entity_id: schedule.night_schedule
    state: "on"

… to be respected when called by the “Away Temperature” automation, then you need to set all the skip_condition option to false.

FWIW, none of the And conditions in the “Away Temperature” automation are doing anything except making it harder to read. The only time when an And condition is needed is inside an Or or Not condition.

could you show me an example for Night Temperature so I can fully understand what you mean.

I wouldn’t say the issue is with “Night Temperature”, it’s with “Away Temperature”…

Away Temperature
- id: "216" #Away Temperature
  alias: Away Temperature
  description: ""
  mode: single
  triggers:
    - trigger: state
      entity_id:
        - person.a
        - person.b
      from: 
        - home
        - not_home
      to: 
        - not_home
        - home
  conditions: []
  actions:
    - choose:
        - conditions:
            - not:
                - condition: state
                  entity_id: 
                    - person.a
                    - person.b
                  state: home
            - condition: state
              entity_id: input_boolean.heating_boost_mode
              state: "off"
          sequence:
            - action: climate.set_temperature
              metadata: {}
              data:
                temperature: 10
              target:
                entity_id:
                  - climate.master_bedroom_radiator
                  - climate.office_radiator
                  - climate.living_room_radiator
                  - climate.kitchen_radiator
                  - climate.dining_room_radiator
                  - climate.bathroom_radiator
                  - climate.hallway_radiator
        - conditions:
            - alias: Check if either Person A or Person B are home
              condition: state
              entity_id: 
                - person.a
                - person.b
              state: home
              match: any
            - condition: state
              entity_id: input_boolean.heating_boost_mode
              state: "off"
          sequence:
            - sequence:
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: false
                  target:
                    entity_id: automation.night_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: false
                  target:
                    entity_id: automation.morning_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: false
                  target:
                    entity_id: automation.day_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: false
                  target:
                    entity_id: automation.evening_temperature
                - action: automation.trigger
                  metadata: {}
                  data:
                    skip_condition: false
                  target:
                    entity_id: automation.bedtime_temperature

But I guess you could also avoid this problem by changing “Night Temperature” as follows:

alias: Night Temperature
description: ""
mode: single
triggers:
  - trigger: state
    entity_id:
      - schedule.night_schedule
conditions: []
actions:
  - condition: state
    entity_id: schedule.night_schedule
    state: "on"
  - action: climate.set_temperature
    metadata: {}
    data:
      temperature: 16
    target:
      entity_id:
        - climate.master_bedroom_radiator
        - climate.office_radiator
        - climate.living_room_radiator
        - climate.kitchen_radiator
        - climate.dining_room_radiator
  - action: climate.set_temperature
    metadata: {}
    data:
      temperature: 26
    target:
      entity_id:
        - climate.bathroom_radiator
        - climate.hallway_radiator

By moving the condition from the Conditions block to the Actions block, it is no longer affected by the skip_condition option in the calling action automation.trigger.

Thank you for showing me the simple, yet annoying mistake made by me .