#Broken automations or what am I doing wrong?

1 messages · Page 1 of 1 (latest)

soft leaf
#

Hello.
I update to Core 2025.3.4 and OS 15 and today experienced problems that my automations did not work as they used to during last 6 months.

So, all this morning I'm trying to create an automation with conditions to run only during specified period of time between 23:00 (or 11 pm) and 07:00 (7am).
The problem is that conditions either do not work or falsely evaluate to TRUE when I execute the automation with "Run actions" menu outside of defined time period (23:00 - 07:00), let's say at 10am.

I expect this automation not to execute if time is not after 23:00 and before 07:00. Why it executes with "Run actions" command from UI menu?

alias: Turn ON Device only at Night time
description: Turn Device on during Night tariff
triggers:
  - trigger: time
    at: "23:02:00"
conditions:
  - condition: template
    value_template: >-
      {{ now().time() >= today_at('23:00:00').time() or now().time() < today_at('07:00:00').time() }}
actions:
  - action: switch.turn_on
    target:
      entity_id:
        - switch.my_device_switch
mode: single
weak coral
#

Run Actions will run the automation's actions regardless of the conditions.

#

To test if the condition is working, in the UI, there is a 3-dots menu in the condition item. Click that, and click Test. A header will show up indicating whether the condition passed at the time of the test.

soft leaf
weak coral
#

You'd need to trigger it. Since you're using a time trigger, just set that to a few minutes from now for testing purposes.

soft leaf
weak coral
#

Test triggers by triggering them. Test conditions by testing them in the 3-dots menu for each condition. Test actions by running them in the 3-dots menu for each action.

soft leaf
bold oyster