node-red-contrib-huemagic icon indicating copy to clipboard operation
node-red-contrib-huemagic copied to clipboard

"The group is not yet available" error since June 6, 2022

Open Eggn1n3 opened this issue 2 years ago • 48 comments

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.

Eggn1n3 avatar Jun 07 '22 07:06 Eggn1n3

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.

MrMiracles avatar Jun 07 '22 21:06 MrMiracles

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.

Kedarebwyn avatar Jun 09 '22 08:06 Kedarebwyn

Thanks @Kedarebwyn, I can confirm that this workaround works!

MrMiracles avatar Jun 09 '22 21:06 MrMiracles

@Kedarebwyn! Thank you so much! It works fine. Does anyone know about the reason? Was there an update to the Hue bridge?

corny359 avatar Jun 11 '22 08:06 corny359

+1 same issue here. Trying the workaround now.

Thanks @Kedarebwyn

Swiftnesses avatar Jun 11 '22 20:06 Swiftnesses

I'm now having the same issue with all lights, not only groups - the fixed proposed for groups doesn't work unfortunately.

peda avatar Jun 13 '22 15:06 peda

Same problem here an the woraround dos not work

Stieger81 avatar Jun 13 '22 17:06 Stieger81

Same here, workaround doesn't work

Caputhziner avatar Jun 13 '22 20:06 Caputhziner

@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.

Kedarebwyn avatar Jun 13 '22 20:06 Kedarebwyn

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: @.***>

Caputhziner avatar Jun 14 '22 05:06 Caputhziner

Same here. Groups and Lights are not reachable. Also after the workaround and a reboot!

jfreak80 avatar Jun 14 '22 06:06 jfreak80

Same here :( Reboot didn't resolved this issue

Edit: But the workaround in messages.js works!

Phalynx avatar Jun 14 '22 07:06 Phalynx

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

Luke050 avatar Jun 14 '22 16:06 Luke050

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

Luke050 avatar Jun 14 '22 17:06 Luke050

thanks. I hope the author is still active as this is the second big issues to go un-fixed for a time :(

marc-gist avatar Jun 15 '22 01:06 marc-gist

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]

na-am avatar Jun 16 '22 07:06 na-am

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.

bland328 avatar Jun 16 '22 18:06 bland328

any suggestions where i can find the correct file, when i have the installation on a ccu3 from homematic?

jfreak80 avatar Jun 18 '22 05:06 jfreak80

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...

NStiens avatar Jun 19 '22 14:06 NStiens

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

jfreak80 avatar Jun 20 '22 05:06 jfreak80

Same problem here.

prometheus247 avatar Jun 21 '22 20:06 prometheus247

Thanks @Kedarebwyn, Your workaround also works for me! Cheers

Rollem1 avatar Jun 27 '22 08:06 Rollem1

Thanks @Kedarebwyn you made. my day. @Foddy kannst Du den Patch bitte einbauen?

bvol avatar Jul 03 '22 07:07 bvol

Anybody with a ccu3 solved the problem?

jfreak80 avatar Jul 03 '22 07:07 jfreak80

Same problem. Why is nothing happening here?

mathias-ewald avatar Jul 17 '22 07:07 mathias-ewald

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 avatar Jul 26 '22 11:07 eibalinchen

@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.

marc-gist avatar Jul 26 '22 11:07 marc-gist

@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?

eibalinchen avatar Jul 26 '22 13:07 eibalinchen

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

peda avatar Jul 26 '22 13:07 peda

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?

eibalinchen avatar Jul 26 '22 13:07 eibalinchen