Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
201 stars 67 forks source link

The Groups don't report brightness, temperature and color status. #401

Closed DmitrySlav closed 1 year ago

DmitrySlav commented 1 year ago

Describe the bug I can change brightness or color temperature for any group of light sources, but groups report about on/off status only. Groups do not report about current status of brightness or color temperature.

Flow to Reproduce

[{"id":"c802f6541c186e6b","type":"hue-group","z":"fae5aab9f81fd407","name":"Люстра в спальне","bridge":"d89c29ad97a7f25d","groupid":"7e47fd2d-27b9-4bd3-bc32-258d08d458de","skipevents":false,"initevents":false,"x":490,"y":780,"wires":[["0e5644021cab3779"]]},{"id":"3196b2fbd2c4e621","type":"inject","z":"fae5aab9f81fd407","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":280,"y":780,"wires":[["c802f6541c186e6b"]]},{"id":"0e5644021cab3779","type":"debug","z":"fae5aab9f81fd407","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":780,"wires":[]},{"id":"d89c29ad97a7f25d","type":"hue-bridge","name":"Philips hue","bridge":"192.168.1.112","key":"Ce3m34W8aLQkgeueR85O4tdck-75whts5KxztI8e","worker":"10","autoupdates":true,"disableupdates":false}]

Expected behavior Groups should report about current status of brightness or color temperature, like a single light source. I see these data for groups in Home Assistant, but not in Node Red.

Screenshots image image

Please complete the following information:

Additional context I remember that it works well before. I use this feature some time ago. But I do not know when it was broken.

DmitrySlav commented 1 year ago

I have found the data I need in "command.payload" and "command.changed.new" objects, but I suppose that it should be direct in "payload" object.

DmitrySlav commented 1 year ago

But these objects are unavailable in case I change "payload.on" object for the group only.

DmitrySlav commented 1 year ago

Sorry my mistake. This is not an issue. This is an idea to improve.