Hellis81
(Hellis81)
6
You need to format your code so that it’s readable.
I generally don’t use device automations, they seem to be less reliable than normal entity automations.
This could be an issue.
Also for an automation to trigger the device/entity needs to switch state to something, it will not trigger if it already is.