One Automation works, Other does not. Why?

Hi,

I have two automations configured. The first one just runs fine (it’s just for testing purpose). But the second one does not.
When the vacuum starts cleaning, the light switches off.
But when the state of the Shelly Motion changes to “false” noting happens. Interesting thing is: the UI tells me the automation has triggered. But the light just stays on.

Any ideas?

See below automations.yaml file:

- id: '1635871245102'
  alias: Aktion Staubsauger
  description: ''
  trigger:
  - platform: device
    device_id: 2e4d0501528776286f3fd6422245d34f
    domain: vacuum
    entity_id: vacuum.staubsauger
    type: cleaning
  condition: []
  action:
  - type: turn_off
    device_id: edac8b8b9e48db68c445e4b37cb5b862
    entity_id: light.og_galerie_neuhaus_q_mateo
    domain: light
  mode: single
- id: '1637791032754'
  alias: ShellyVibrationOff
  description: Wenn keine Vibration mehr, dann Galerie Licht aus
  trigger:
  - platform: state
    entity_id: sensor.shellymotion0vibrationdetected
    from: 'true'
    to: 'false'
  condition: []
  action:
  - type: turn_off
    device_id: edac8b8b9e48db68c445e4b37cb5b862
    entity_id: light.og_galerie_neuhaus_q_mateo
    domain: light
  mode: single

Thanks for your input!

/KNEBB

Have you checked the Run Trace to see if anything goes wrong? From there, you can view specific steps and their related logbook entries.

Turned out my Hue Integration lost connection.

So the automation just did fine but the Hue integration could not communicate to the Hue brdige and therefore not switch the light.

Going to reconfigure…

Thanks anyways, it was helpful.