andrei-tatar / node-red-contrib-nora

Node Red Google Home integration
74 stars 25 forks source link

Light node dimmer function 0-255 needed #51

Open sniperxnl opened 4 years ago

sniperxnl commented 4 years ago

Possible to add Dimmer function between 0-255 or make the brightness function between 0-255, ikea bulbs need that command

Chrischi- commented 4 years ago

you only need to convert the value via a function in node red

DCandE commented 4 years ago

I use the range node in node red image

GravityRZ commented 4 years ago

or use a simple line in a function node

var brightness = (msg.payload.brightness/100)*254;