I am running HA core 2021.6.3. One of my automation has suddenly stopped working partially. It was working fine till few days ago. The only change I have done is upgrade core to 2021.6.x versions as they came out, but I am not sure which one broke the automation. The automation is simple. When an Insteon scene turns ON, three non-insteon lights are turned ON, when the scene turns OFF, the same three lights are turned OFF.
Problem is that when Insteon scene turns ON, the lights turn ON, but when the scene turns OFF, the lights do not turn OFF. Here is what I have observed so far:
a) When I turn the scene ON/OFF, the automation’s last triggered time changes. So, it does get called when the scene turns ON/OFF.
b) Insteon scenes are treated as switches. So, the switch.basement is an Insteon scene. In Developer Tools, when I check the state of switch.basement, it toggles ON/OFF as I turn the scene ON/OFF.
c) After the automation fails to turn OFF the lights, if I click on Run Actions, the lights turn OFF. This means that the state OFF is being detected by the automation.
I have deleted and re-created the automation but no luck. Any ideas/help will be appreciated.
Yes and everything seems to be working, except that the actions in the option 2 when state is OFF do not run. Here is Changed Variables section from trace. The first trigger is ON, the second trigger is OFF.
Then the problem isn’t the automation. You have just tried two very different automations and both produce the same result. You need to investigate the integration responsible for controlling the lights.