Power triggered automation is not executed

Hi there,

I have an automation, which should turn off a Shelly Plug S during a time slot, when the power consumption, measured by this Shelly Plug S, is dropping below a value of 70 W.

Unfortunately, the automation is never triggered to turn the Shelly plug off. I am testing right now and have a power consumption in the device dashboard shown as 46 W, so it should be triggered and executed. The time slot condition is deactivated right now.

Here is the automation code:

id: '1684532334401'
alias: Multimedia Wohnzimmer nachts ausschalten
description: >-
  Schaltet die Steckdose Multimedia aus, sobald die Leistungsaufnahme unter 70 W
  zwischen 23 Uhr und 8 Uhr fällt.
  - type: power
    platform: device
    device_id: a0902aea2e995f24d3b0f3d2e68c90ba
    entity_id: sensor.shelly_plug_s_multimedia_wohnzimmer_power
    domain: sensor
    below: 70
  - condition: time
    after: '00:23:00'
    before: '00:08:00'
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
    enabled: false
  - type: turn_off
    device_id: a0902aea2e995f24d3b0f3d2e68c90ba
    entity_id: switch.shelly_plug_s_multimedia_wohnzimmer
    domain: switch
mode: single

What am I doing wrong here ?
Thanks in advance for your feedback.

The automation is triggered only when power goes from above 70 to below 70.
If, e.g., you reloaded HA or reloaded automations and the power was already below 70, the automation won’t trigger.

Thank you @koying . I tested now and it worked, after I turned on everything and then went into standby, so that the power went down from 200 W to 50 or so W.
I guess the problem tonight was, that my time condition was faulty. I had the times given wrong 00:23.:00 instead of 23:00:00 and 00:08:00 instead of 08:00:00.