- my light was from XiaoMI so I use MIOT to add to HA
- I was able to add a widget and work with Node-RED to make it as a toggle switch
- I checked on HA web portal theres some attribute I believe that controls the dim
- if I know those attributes name, I would guess there must be a funtion in Node-RED that allows me to change this value? (just want to get something simple to start with like if I pressed 1 button, the action is simply set dim value to 20 so I got a not too bright light on)
sadly I spend couple of hours to find how to get the thing done but no luck…
Try to do the service call in the HA developer tools.
When it works, then switch to YAML mode and see how the things is presented.
Use that to set the service call node up in Node Red.