#Triggering automation based on sensor status

1 messages · Page 1 of 1 (latest)

lament axle
#

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:
  • 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
    ``
feral surge
lament axle
#

I'll give that a whirl, thanks!

lament axle
#

That helped; I'd entered "Espresso coffee" manually but the actual state is "espresso" despite what shows in the UI. I recreated the trigger and there's now a dropdown menu with the right options anyway. I just migrated the Miele integration from HACS to Core trying to fix this as I know the HACS version is being replaced.

Thanks again.