node-red-contrib-huemagic
node-red-contrib-huemagic copied to clipboard
"The group is not yet available" error since June 6, 2022
Describe the bug Groups don't work anymore when sending command to turn light on/off in a group. Error message: "The group in not yet available. Please wait until HueMagic has established a connection with the bridge or check whether the resource ID in the configuration is valid."
Expected behavior Lights in a group switched on/off
Please complete the following information: Hue node info: id: "ECB5FAFFFE0B049F" name: "Philips hue" factoryNew: false replacesBridgeId: "001788FFFE1003D0" dataStoreVersion: "125" starterKitId: false softwareVersion: "1951146040" apiVersion: "1.50.0" zigbeeChannel: 11 macAddress: "ec:b5:fa:0b:04:9f" ipAddress: "192.168.5.24" dhcpEnabled: false netmask: "255.255.255.0" gateway: "192.168.5.1" proxyAddress: false proxyPort: 0 utcTime: "2022-06-06T20:38:19" timeZone: "Europe/Amsterdam" localTime: "2022-06-06T22:38:19" portalServicesEnabled: true portalConnected: "connected" linkButtonEnabled: false touchlinkEnabled: false autoUpdatesEnabled: true
Node red version: 2.2.2 Hue Magic version 4.2.2
Additional context All individual lights and sensors work fine as always; just the groups that stopped working.
Note that auto-update for the bridge is active and I noticed that since June 6th the Hue bridge software 1951146040 has been installed. The problems started as well on June 6th (before this date it worked perfect for months). https://www.philips-hue.com/en-us/support/release-notes/bridge
Node JS and Node Red were not updated. Tested the setup on an older node js /node red version and noticed same behaviour.
Same problem, some extra info from the logs:
7 Jun 23:09:08 - [info] [hue-bridge:hue] Initializing the bridge (192.168.xxx.xxx)… 7 Jun 23:09:08 - [info] Started flows 7 Jun 23:09:08 - [info] [hue-bridge:hue] Connected to bridge 7 Jun 23:09:09 - [info] [hue-bridge:hue] Processing bridge resources… 7 Jun 23:09:09 - [info] [hue-bridge:hue] Initial emit of resource states… 7 Jun 23:09:10 - [info] [hue-bridge:hue] Keeping nodes up-to-date… 7 Jun 23:09:10 - [info] [hue-bridge:hue] Subscribing to bridge events…
-- on trying a switch to turn off the lights: 7 Jun 23:10:16 - [error] [hue-group:hall] The group in not yet available. Please wait until HueMagic has established a connection with the bridge or check whether the resource ID in the configuration is valid.
Also on the new firmware, problems started today. Already tried: Restarting Node-red and the bridge. Also tried to make a new connection to the bridge (made a new user). Nothing changed.
A temporary workaround, until @Foddy can fix the issue permanently is to locally change the file 'messages.js' located in the 'utils' folder. Specifically the line:
https://github.com/Foddy/node-red-contrib-huemagic/blob/1af6c29676c0cabd02f2cd1b105b95acff24d77f/huemagic/utils/messages.js#L122
simply comment this line and the nodes should work again.
// service = options.resources[service.id];
After making this change nothing else broke and my group nodes work again, so I'm assuming the change is safe. But no gaurantee this won't break something else related to groups...
Do not forget to restart Node-RED after applying the change! A full reset is required to pick-up changes to modules.
Thanks @Kedarebwyn, I can confirm that this workaround works!
@Kedarebwyn! Thank you so much! It works fine. Does anyone know about the reason? Was there an update to the Hue bridge?
+1 same issue here. Trying the workaround now.
Thanks @Kedarebwyn
I'm now having the same issue with all lights, not only groups - the fixed proposed for groups doesn't work unfortunately.
Same problem here an the woraround dos not work
Same here, workaround doesn't work
@Stieger81 @Caputhziner just to be sure... did you restart Node-RED after applying the fix? A full reset of Node-RED is required to pick-up the changes.
Yes, rebooted
Von: Kedarebwyn @.> Gesendet: Montag, 13. Juni 2022 22:09 An: Foddy/node-red-contrib-huemagic @.> Cc: Caputhziner @.>; Mention @.> Betreff: Re: [Foddy/node-red-contrib-huemagic] "The group is not yet available" error since June 6, 2022 (Issue #373)
@Stieger81https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FStieger81&data=05%7C01%7C%7C964ba2e50879420aacb908da4d78aea3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907477973445027%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vqSsKx9qI50JhR%2BlVldlf5yoJGqOpptOfKEpK9q0vas%3D&reserved=0 @Caputhzinerhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCaputhziner&data=05%7C01%7C%7C964ba2e50879420aacb908da4d78aea3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907477973445027%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZYZz2AK0frJKygvaQ%2FaFhSqqQiWaqk4ris4BaKq8GP0%3D&reserved=0 just to be sure... did you restart Node-RED after applying the fix? A full reset of Node-RED is required to pick-up the changes.
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFoddy%2Fnode-red-contrib-huemagic%2Fissues%2F373%23issuecomment-1154380507&data=05%7C01%7C%7C964ba2e50879420aacb908da4d78aea3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907477973445027%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RKTTpaJ40g3jhhNy%2BcF4PNblJPfWkYd%2F8oB7NV213pI%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXZEA6VWCDHG7UEYETZPJVLVO6IQ7ANCNFSM5YB5IGCA&data=05%7C01%7C%7C964ba2e50879420aacb908da4d78aea3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907477973445027%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RaqPn1stnc%2FNXia7TvNNLdz04a8geMcjW28HM7iQslw%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
Same here. Groups and Lights are not reachable. Also after the workaround and a reboot!
Same here :( Reboot didn't resolved this issue
Edit: But the workaround in messages.js works!
I have same issue aplied this fix and rebooted my server but I have still same messages when I try to turn on/off hue group
sorry it works guys you need to edit correct file for example I have it in two places: /home/pi/.node-red/node_modules/node-red-contrib-huemagic/huemagic/utils
/home/pi/node_modules/node-red-contrib-huemagic/huemagic/utils
so the. first one is correct in my case
thanks. I hope the author is still active as this is the second big issues to go un-fixed for a time :(
that doesn't works for me either my hue bridge is about 5 years old, so i go back to ver 2.8.6
npm uninstall node-red-contrib-huemagic npm install [email protected]
Thanks to Kedarebwyn and Luke050--this hack worked for me.
For anyone else trying this, be careful to edit the correct file per https://github.com/Foddy/node-red-contrib-huemagic/issues/373#issuecomment-1155475771.
any suggestions where i can find the correct file, when i have the installation on a ccu3 from homematic?
any suggestions where i can find the correct file, when i have the installation on a ccu3 from homematic?
It is: /usr/local/addons/redmatic/var/node_modules/node-red-contrib-huemagic/huemagic/utils
Make a Backup file before editing...
any suggestions where i can find the correct file, when i have the installation on a ccu3 from homematic?
It is:
/usr/local/addons/redmatic/var/node_modules/node-red-contrib-huemagic/huemagic/utils
Make a Backup file before editing...
thank you. But this i edited already and reboot and take no effects for me. I thought there should be a second, maxbe hidden, version
Same problem here.
Thanks @Kedarebwyn, Your workaround also works for me! Cheers
Thanks @Kedarebwyn you made. my day. @Foddy kannst Du den Patch bitte einbauen?
Anybody with a ccu3 solved the problem?
Same problem. Why is nothing happening here?
same problem for me. The Workaround > https://github.com/Foddy/node-red-contrib-huemagic/issues/373#issuecomment-1150817250 doesn´t help in my configuration. (version 4.2.2)
Restarts, reboots, reinstall, install to a lower version (4.2.1), nothing helps to get huegroups work. HUE Bridge-Version: 1.52.1952086020 NodeRed Version: 1.2.2 Running Raspberry Pi 3 Model B Rev 1.2
@eibalinchen unfortunatly Hue keeps changing the new v2 API, and until the author or someone makes some changes to this library, it isn't going to work reliably :( I have sadly moved on to a partially custom solution. but it works well and is now reliable again.
@eibalinchen unfortunatly Hue keeps changing the new v2 API, and until the author or someone makes some changes to this library, it isn't going to work reliably :( I have sadly moved on to a partially custom solution. but it works well and is now reliable again.
hi @marc-gist, thanx for your update, but what else can I acutally do to make it functionally?
hi @marc-gist, thanx for your update, but what else can I acutally do to make it functionally?
As the original author isn't active anymore, you can only fork it and fix it yourself - everything else will only be a temporary solution and break again once Hue makes the next step towards a full v2 API migration
As the original author isn't active anymore, you can only fork it and fix it yourself - everything else will only be a temporary solution and break again once Hue makes the next step towards a full v2 API migration
I understood that, but what can I do even currently to make it work for me?