Unexpected error after deleting light from scene

I swapped out a few Hue lights for others in some of my lamp fixtures. I was hoping to then update the app to fix the changes, but I'm running into this error and can't get into the app to fix it. It's a Scene with a handful of Hue and Govee lights. I'm really hoping to not have to delete and redo since I call out this scene in a number of other places.

How were the Hue lights (that you've swapped) connected to Hubitat? Were they added through a Hue Bridge app (native or community), or were they paired directly to the Hubitat hub? It looks (to my untrained eye) as though the error is caused by the app trying to query a value from a bulb that no longer exists. I'm wondering if:

1 - You deleted the device (the Hue bulb) from Hubitat before you replaced it
2 - If you're using a Hue Bridge app whether you've gone into it and rediscovered devices so that it's aware of the deletion.

You might want to post:

1 - How the Hue bulbs are connected to your system (direct or via Hue Bridge)
2 - If they are/wer connected via Hue Bridge, which app connects them (native app or CoCo Hue for instance)
3 - The app that's giving the error - what is it - Rule Machine, Room Lighting....

That should give someone more info to be able to assist.

2 Likes

My mistake. The lights are integrated through cocohue. In my actual hue app, I removed a couple lights from a group and renamed them. Then I added 2 new ones to replace them. It seems the cocohue app didn't have a method to "update" the changes so I also renamed the devices in hubitat and then ran a discovery to import the new devices as well. I can't tell which specific ones are causing the issue since it just reports null object in the logs.

Tagging @bertabcd1234 who might be able to assist...

I don't think this is a CoCoHue issue; from the looks of the app, it appears to you may have removed a device from the hub that the app was referring to. I think the only solutions would be to re-create this group or restore a backup from a time before it happened. If the app looked OK, make sure you did a "Refresh" for it to pull in new names -- it often works with a cache and might not show you what you currently have for names, which can be confusing.

There is a little trick you can use to swap like devices for like devices in CoCoHue if that's helpful, but manually swapping everything is certainly the safest.

2 Likes