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.
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.