hass-virtual icon indicating copy to clipboard operation
hass-virtual copied to clipboard

nodeRed unable to pull brightness value

Open Markker98 opened this issue 4 years ago • 3 comments

I am trying to get the brightness value from one of the virtual lamps i have created but it seems like that is not possible. i entered the entity ID to the "eventsState" and added "_brightness_pct" to it.

Is there another way to get the value? It is possible to set the value in node red in the "call service" node using:

{"entity_id":"light.virtual_light_1","brightness_pct":50}

Markker98 avatar Mar 28 '21 10:03 Markker98

Sorry, I missed this one. Did you get it fixed? I don't use nodeRed but I think they should just act like lights.

twrecked avatar May 09 '21 02:05 twrecked

Hi I have tested this and it does work, but the 'default' light created with virtual, does not use percentage data.new_state.attributes.brightness -> this message will always be 0.255

but to the developper: adding percentage would be greatly apreciated :D

jeroenvdd avatar Nov 24 '21 10:11 jeroenvdd