Binary sensor-based Automation no longer working

For some reason, my motion binary sensor-based Automation no longer executes.

I’ve rebooted HA; all other Automations work. The Action by itself executes.

My binary sensor (motion detector) via SmartThings hub executes a changed state properly in HA Dev Tools/State, and shows as active in ST IDE, so it’s not a battery issue.

I’ve also tried a basic Automation w/o a condition.

Is there possibly something that may be interrupting with the binary sensor?

alias: Office Motion-Light On
  trigger:
  - entity_id: binary_sensor.office_motion_detector_motion
    platform: state
    to: 'on'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
  - data:
      brightness_pct: 90
    entity_id: light.office_floor_lamp
    service: homeassistant.turn_on
  mode: single

Is your automation enabled?

Check the developer tools states, the state of automation.office_motion_light_on should be on.

Yep, it’s on. I’ve since tried another automation and changed the battery, just to make sure. My only other option here is to once again, disconnect ST and e-integrate it.

Well if binary_sensor.office_motion_detector_motion is changing state in developer tools / states and your actions work when the automation is triggered manually, and the automation is enabled… the only other thing I can think of is a spelling error. Look really closely at the entity id.

I thought about that too… used the UI editor to create that test automation, so only selected entities, etc. are used. This is so weird. If I haven’t figured it out by tomorrow, I’ll re-integrate ST.

Not sure that is going to help if you can see the state of the sensor changing correctly.

Is there anything amiss in the home assistant system log?

The log simply indicates the automation/entity “has been triggered”.

That’s you logbook not your system log. See configuration / logs.

Ok, I did find the following error…


Edit: but this doesn’t explain why the test Automation doesn’t work either.