Hello all. I have two Yeelight LED strips that are working great. Just recently trying to integrate with my alarm system to trigger effects. I. have downloaded https://flows.nodered.org/node/node-red-contrib-yeelight-compat-hue.
I can see the format etc and following the example I cannot get effects to work. ( I know I can use Automations) but if effects are in the Yeelights I should be able to call them from Node red.
From the Yeelight Pallet when i trigger the “Effect” i can see the messages in Node Red Debug .
The message it returns when I control the light in Lovelace is as below.
msg.payload : Object
object
state: object
on: true
bri: 125
colormode: “rgb”
hex: “#003fff”
hue: 41073
sat: 255
name: “”
raw: object
name: “”
power: “on”
bright: “49”
rgb: “16383”
ct: “2475”
hue: “0”
sat: “100”
color_mode: “1”
delayoff: “0”
flowing: “1”
flow_params: “0,0,300, 1, 16711680, 100, 300, 1, 255, 100”
music_on: “0”
What I am sending to the Yeelight is as follows,
{
“state”: {
“on”: true,
“bri”: 125,
“colormode”: “rgb”,
“hex”: “#003fff”,
“hue”: 41073,
“sat”: 255
},
“name”: “”,
“raw”: {
“power”: “on”,
“bright”: “49”,
“rgb”: “16383”,
“ct”: “2475”,
“hue”: “0”,
“sat”: “100”,
“color_mode”: “1”,
“delayoff”: “0”,
“flowing”: “1”,
“flow_params”: “0,0,300, 1, 16711680, 100, 300, 1, 255, 100”,
“music_on”: “0”
}
}
Has anyone tried to do this and if so can you give me some guidance.
Thanks Paul Dingo