I had another one of my Sylvania LED bulbs fail, and I replaced it with a new one. Previously, when this happened, I could just delete the broken bulb and the apps would show it as an error in the list of scene devices the next time I happened to be in the app, and refreshing the device list would clear it. However, now when I go into an app that had the old, broken bulb, the app fails to load:
Unexpected Error
An unexpected error has occurred trying to load the app. Check Logs for more information.
Error: Cannot get property 'currentHue' on null object
—
It looks like I was supposed to remove the broken bulb manually from each one of my 30ish scenes, one at a time…whoops. The thought of having to recreate 30 scenes horrifies me. Is there any workaround to make Hubitat just forget the old, removed bulb ever existed?
NB: The scene apps seem to still function without issue when invoked with Alexa. It’s just loading the config page in Hubitat that has the error, and only for apps where the removed bulb was in an RGB state for the scene. I get the old behavior (a note in the scene device list) if the scene had that bulb in a CT state.
You might try importing one of the broken Scenes into Room Lighting. That might fix it, in that the resultant Room Lights would behave the same as the Scene, but without the missing device. Let me know what happens when you try that. If it throws any error, I will want to see screenshots of the Logs.
That does work! The app is a little overwhelming at first but it looks like if I set a means to activate that is the virtual device, then map that to the Alexa app it will work just like the old scenes.
Just like a Scene, it will create a virtual device itself for use with Alexa. At the bottom right of the main page: Command with Activator Device. That name is the one that you would use with Alexa.
One thing I have noticed in setting this up: when it imports a scene like that, every device in the scene gets default to be activated and on, which is a quick enough fix. I was just very surprised when I turned on my new theater scene and every light in the house turned on!
The other issue I’m seeing is that devices won’t change color during activation unless I enable the “command devices on/off irrespective of reported state” and then toggle “force” for each device — even though the devices are (correctly) reporting a state other than what they should end up as.