I'm having trouble getting an automation to trigger based on a sensor's status. Trying to trigger based on the "sensor.cm6160_program_phase" (provided by Miele integration) showing a particular state. I can see the state in the sensor history but it's not triggering the automation. The sensor will only have the trigger state for 30-40 seconds or so. Not sure if that's part of the issue. This was created in the GUI, but YAML below. Thanks!
``alias: Miele Safety Switch
description: ""
triggers:
- entity_id:
- sensor.cm6160_program_phase
to: - Espresso coffee
trigger: state
conditions:
- sensor.cm6160_program_phase
- condition: time
after: "06:00:00"
before: "08:00:00"
weekday:- mon
- tue
- wed
- thu
- fri
actions:
- target:
entity_id: input_boolean.miele_safety_switch
action: input_boolean.turn_on
mode: single
``