Node red light control

Hello all

New to node red and i am building different flows.

in the simplest node (turn on/off light) i use the call service node and i fill in all the parameters.

The light turns on and off no issues.

The4 problem is that i would like to control the brightness of the light depending time of day. no issues.

however i would like the light to turn on the light at 60% during the evening and 20% during the night

so in the configuration of the turn on light node in the section called output properties as directed in the i have the following configuration

output properties box i have selected msg “brightness_pct” = “number” “20”

yet the light turns on at full luminosity

What am I not doing correctly?

Than you in advance for responding

In “Data” - not “Output Properties”, insert {“brightness_pct”:20}.

thank you for the prompt reply its greatly appreciated

I can just copy an paste this into that section “data” and select j:

thank you for your help

Hello all
update

I did copy and paste the above in the data section of the node as suggested.

The lights do turn on however the node (as configured) does not override the setting in the shelly duo light bulb.

If i go to the shelly bulb web page I see that it has a luminicance default of 60%

I never had to consider this in the home assistance automation.

The automation took into consideration time of day and luminance %.

So IMHO i feel i have not configured something correctly.

Sorry can someone direct me on where to look or what to do?
Thank you

These are all the values you need. Can you control the brightness of these lights directly in Home Assistant?

@zoogara Thank you so much for this info.

This is exactly how it was set up (I had also the entity field filled)

I deleted it and still it will not dim the light to 20%

Therefore the issue would be with the shelly light settings

Hello @zoogara

After playing with this till late last night and early this morning which included rebuilding the node, restarting Node red, restarting HA, the server and restoring the bulbs.

I feel that the node red flow does not override the bulb setting. If i increase the bulb’s setting on their web page node red does not reduce the brightness. Conversely If i reduce the bulbs setting node red will not increase the brightness

However using my native Home assistant automation used to perform the same function the light works brilliantly

Once again thank you for the time your taking and for your help

That is just weird because the exact same service call is used to control from node-red as within HA.

Maybe use node-red to start a script in HA that will control the light, the rest of the logic could be in node-red.

I had similar issue with IKEA bulb. Try {“brightness”:20}. Worked for me. Similar thing if you want to change your light temperature, some bulbs works with kelvins other ones with mired scale.

Thank you all for your input

I ended up changing the bulb. Initially I was an dimmable RGBW led e27 from shelly. I replaced it with a dimmable e27 white bulb from shelly and it worked.

The issue was not a faulty bulb, just the bulb model.

I escalated this to the shelly support, however in my experience they are not too helpful and i don’t expect a response from them

Again thank you all for your help