Hey
i want to temporarly change the light to a 33% brightness red. it should be round about 60s on. after the time it should take the same values as before and moreover the light should be switched off (if it was on the time before).
with this code, everathing works fine except switching the light off - despite i am changing the msg.payload on true to msg.payload on to false...
what am i doing wrong?
[{"id":"ef6064e6.dad0d8","type":"inject","z":"26be794a.395f46","name":"Test-Alarm","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":140,"y":220,"wires":[["ecc0e09a.ade13","f2bb9819.a2d5e8","ad4185ba.b6fc18"]]},{"id":"b1edd01a.df2a6","type":"change","z":"26be794a.395f46","name":"","rules":[{"t":"set","p":"lampSetting1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":670,"y":100,"wires":[[]]},{"id":"ecc0e09a.ade13","type":"delay","z":"26be794a.395f46","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":380,"y":260,"wires":[["c468f00d.694ff"]]},{"id":"c468f00d.694ff","type":"function","z":"26be794a.395f46","name":"","func":"msg.payload = flow.get('lampSetting1');\nmsg.payload.on = false;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":580,"y":260,"wires":[["ba71ab25.f8edf8"]]},{"id":"ba71ab25.f8edf8","type":"delay","z":"26be794a.395f46","name":"","pauseType":"delay","timeout":"59","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":790,"y":260,"wires":[["66ebf82b.be7238"]]},{"id":"f2bb9819.a2d5e8","type":"hue-light","z":"26be794a.395f46","name":"Arbeitszimmer Decke 1","bridge":"f23cce56.c56e4","lightid":"1","colornamer":true,"skipevents":false,"universalevents":false,"x":410,"y":100,"wires":[["b1edd01a.df2a6"]]},{"id":"66ebf82b.be7238","type":"hue-light","z":"26be794a.395f46","name":"Arbeitszimmer Decke 1","bridge":"f23cce56.c56e4","lightid":"1","colornamer":true,"skipevents":false,"universalevents":false,"x":1070,"y":260,"wires":[[]]},{"id":"ad4185ba.b6fc18","type":"function","z":"26be794a.395f46","name":"","func":"msg.payload={\"on\":true, \"brightness\":33, \"rgb\":[255,0,0]};\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":180,"wires":[["d57b9c51.a111e"]]},{"id":"d57b9c51.a111e","type":"delay","z":"26be794a.395f46","name":"","pauseType":"delay","timeout":"250","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":580,"y":180,"wires":[["3e47be8d.bceed2"]]},{"id":"3e47be8d.bceed2","type":"hue-light","z":"26be794a.395f46","name":"Arbeitszimmer Decke 1","bridge":"f23cce56.c56e4","lightid":"1","colornamer":true,"skipevents":false,"universalevents":false,"x":930,"y":180,"wires":[[]]},{"id":"f23cce56.c56e4","type":"hue-bridge","z":"","name":"Philips hue","bridge":"192.168.178.21","key":"VBq04UywCSYmPx5LVHmbAB07cRK4B1x0zPPQI5jY","interval":"3000","disableupdates":false}]