Time-based automation for switch, makes switch on and off

Need help regarding a mysterious behavior of a time-based automation. The automation shall only switch off a switch at 22:00 o’clock. Logbook: First action is switch off, but one second later it is switched on. Why?

Information about the surrounding:
Home Assistant

  • Installationsmethode Home Assistant OS
  • Core 2025.5.3
  • Supervisor. 2025.05.3
  • Operating System. 15.2
  • Frontend 20250516.0

The automation ist the following yaml-text:

alias: Zirku Pumpe AUS 22:00 Uhr
description: ""
triggers:
  - at: "22:00:00"
    trigger: time
conditions: []
actions:
  - data: {}
    action: switch.turn_off
    target:
      entity_id: switch.std_zwave_dg_bad_zirku_2
mode: single

What I’am doing wrong? Thanks in advance for support.

BR
Thomas

The first thing to do is to click on the automation name links for each of those two logbook entries. Make sure that you don’t have two automations with the same name. Maybe you made a duplicate to cover the “turn off” and forgot to update the name and trigger time…?