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

Get brightness status from hue group node #292

Open Schmetterfliege opened 2 years ago

Schmetterfliege commented 2 years ago

In 4.x the hue group node only outputs a very limited status message.

In my light control, I want to control all the groups (rooms) via group nodes. Prior to 4.x these group nodes would allow me to get outputs like brightness and color, so I could reflect that in my dashboard. However, since now it doesn't output these values anymore, what would be the best way to build my light control?

I assume I could add a light node for each room to receive status messages for brightness, color and colortemp. But is adding another node really the best option?

Schmetterfliege commented 2 years ago

Small remark: the status output (light node) is only received if I trigger it manually or via a payload to request the status.

Is there no way anymore to automatically output the status if any value is changed?

Edit: now it seems to send statuses automagically^^ so this remark is not valid anymore I guess

Schmetterfliege commented 2 years ago

2nd remark: with 4.x setting the brightness doesn't seem to turn on the lights anymore?

Schmetterfliege commented 2 years ago

3rd remark: I have an automation for my bathroom, that triggers if the door is closed/opened. If opened -> light off. If it is closed -> check room brightness (aqara sensor), if too dark -> check if light is off -> if off -> set brigthness and colorTemp. Problem: I can't use any huemagic node for this automatic. Because the node I would use for checking if the light is off would always output a status whenever the light is changed (e.g. via hue app) and NOT only if I request the status.

@Foddy is there any way to stop automatic status output for one specific node? The way it is implemented right now would cause the light to always be turned on, since when turning it off the node for checking would output "false", which triggers the brightness/colorTemp to be set. I only want to have the status if I send the payload "status" to the node :(