When I create a scene to turn a light on, and the light fails to turn on, why does HA go in and edit the script to change the script to “unavailable” – because once I fix what was wrong with the light, instead of the script now working again, I have to manually go in and re-edit all of the scenes that light bulb was in to make any of the scenes work again. This doesn’t make sense to me, if a script runs and a device isn’t available, shouldn’t it just log that the device wasn’t available, rather than modifying the script to disable the device? My scripts keep breaking because HA keeps changing the scripts if I ever have an automation fail.
The simple way to stop this from happening is to stop using device ids in your automations and scripts and only use entity ids.
1 Like
So what about scenes? Same thing apply? My automations don’t appear to be the source of my frustration, it’s scenes that I call from Alexa. The scene keeps putting “unavailable” in anything that fails once.