Binary_sensor (windowcontact) does not trigger automation

Hi Guys,

Im struggling to find out whats the thing. Some of my sensors for example (binary_sensor.ha_contactgroup_schlafzimmerfenster) sometimes does not trigger a automation. I don’t know why - and even don’t know hot to troubleshoot this issue.

image

Trigger in the automation:

trigger:
  - platform: state
    entity_id:
      - binary_sensor.ha_contactgroup_schlafzimmerfenster
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: 0

Any ideas?

OK the automation HAS triggered … it only didn’t update the “last triggered” value in the overview …

is this something I should open a GitHub Issue for - or is it simple “works as designed” ?

Cheers

I realize you do not actually use the “for:” part since everything is 0. I don’t really know but maybe this confuses HA? Delete these lines and see what happens.

This is deja vu. I’m sure I’ve read something about this in other threads, but that might have been a while ago and I’m not certain…

Never have thought on something like that :open_mouth:

You were right guys - that was the thing!

Cheers & Appreciate your help!