ok so i made it work with node red , if anyone needs this i hope it will help
10 different modes
3 colors, and for each 3 brightness settings, and shutdown
Node flow
[{"id":"176c58d.3e780a7","type":"openhab2-out","z":"769a52c2.f1db8c","name":"Color Temp","controller":"e7fc0463.749968","itemname":"YeelightLEDCeilingLampV5_ColorTemperature","topic":"ItemCommand","payload":"","x":1210,"y":1577,"wires":[[]]},{"id":"d263e378.c264f","type":"openhab2-out","z":"769a52c2.f1db8c","name":"Brightness","controller":"e7fc0463.749968","itemname":"YeelightLEDCeilingLampV5_Brightness","topic":"ItemCommand","payload":"","x":990,"y":1757,"wires":[[]]},{"id":"8a81d1af.24257","type":"openhab2-out","z":"769a52c2.f1db8c","name":"Power","controller":"e7fc0463.749968","itemname":"YeelightLEDCeilingLampV5_Power","topic":"ItemCommand","payload":"","x":1210,"y":1487,"wires":[[]]},{"id":"2b4a7316.08c08c","type":"mqtt in","z":"769a52c2.f1db8c","name":"","topic":"/YeeLight","qos":"2","datatype":"auto","broker":"b31d9a1b.fc5e78","x":409,"y":1597,"wires":[["7e99a090.0f464","a9da2cb1.b280f","6a7101c8.7b72a"]]},{"id":"54aff69f.f83c78","type":"switch","z":"769a52c2.f1db8c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Moon1","vt":"str"},{"t":"eq","v":"Moon50","vt":"str"},{"t":"eq","v":"Moon100","vt":"str"},{"t":"eq","v":"Sun1","vt":"str"},{"t":"eq","v":"Sun50","vt":"str"},{"t":"eq","v":"Sun100","vt":"str"},{"t":"eq","v":"Mars1","vt":"str"},{"t":"eq","v":"Mars50","vt":"str"},{"t":"eq","v":"Mars100","vt":"str"}],"checkall":"true","repair":false,"outputs":9,"x":690,"y":1597,"wires":[["9a32ad13.225bd","aeeeadac.dba1"],["9a32ad13.225bd","7e58d55b.98fa6c"],["9a32ad13.225bd","7a2eb36.915014c"],["88ac2b32.cf8438","aeeeadac.dba1"],["88ac2b32.cf8438","7e58d55b.98fa6c"],["88ac2b32.cf8438","7a2eb36.915014c"],["aeeeadac.dba1","71d1654d.6ef62c"],["7e58d55b.98fa6c","71d1654d.6ef62c"],["7a2eb36.915014c","71d1654d.6ef62c"]]},{"id":"a9da2cb1.b280f","type":"openhab2-get","z":"769a52c2.f1db8c","name":"YeeLight Power","controller":"e7fc0463.749968","itemname":"YeelightLEDCeilingLampV5_Power","x":760,"y":1480,"wires":[["2bb27994.188536"]]},{"id":"2bb27994.188536","type":"switch","z":"769a52c2.f1db8c","name":"","property":"payload.state","propertyType":"msg","rules":[{"t":"eq","v":"ON","vt":"str"},{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":946.7556076049805,"y":1479.6758470535278,"wires":[[],["62661651.b6cd68"]]},{"id":"62661651.b6cd68","type":"change","z":"769a52c2.f1db8c","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"ON","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1070,"y":1486,"wires":[["8a81d1af.24257"]]},{"id":"f4816adf.99c188","type":"change","z":"769a52c2.f1db8c","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"OFF","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1070,"y":1440,"wires":[["8a81d1af.24257"]]},{"id":"7e99a090.0f464","type":"delay","z":"769a52c2.f1db8c","name":"Wait","pauseType":"delay","timeout":"1000","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":550,"y":1597,"wires":[["54aff69f.f83c78"]]},{"id":"9a32ad13.225bd","type":"change","z":"769a52c2.f1db8c","name":"Moon","rules":[{"t":"set","p":"payload","pt":"msg","to":"5697","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1577,"wires":[["356f021d.179d0e"]]},{"id":"88ac2b32.cf8438","type":"change","z":"769a52c2.f1db8c","name":"Sun","rules":[{"t":"set","p":"payload","pt":"msg","to":"3700","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1617,"wires":[["356f021d.179d0e"]]},{"id":"aeeeadac.dba1","type":"change","z":"769a52c2.f1db8c","name":"1","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1717,"wires":[["d263e378.c264f"]]},{"id":"7e58d55b.98fa6c","type":"change","z":"769a52c2.f1db8c","name":"50","rules":[{"t":"set","p":"payload","pt":"msg","to":"50","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1757,"wires":[["d263e378.c264f"]]},{"id":"7a2eb36.915014c","type":"change","z":"769a52c2.f1db8c","name":"100","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1797,"wires":[["d263e378.c264f"]]},{"id":"47f5a36c.5dec0c","type":"mqtt out","z":"769a52c2.f1db8c","name":"","topic":"/YeeLight","qos":"","retain":"","broker":"e8838d6f.5153e","x":600,"y":2100,"wires":[]},{"id":"93a58168.9deae","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Moon1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2000,"wires":[["47f5a36c.5dec0c"]]},{"id":"a08558ae.ff93d8","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Moon50","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":2040,"wires":[["47f5a36c.5dec0c"]]},{"id":"e2899214.db49f","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Moon100","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":2080,"wires":[["47f5a36c.5dec0c"]]},{"id":"4c8b81cd.53979","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Sun1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2120,"wires":[["47f5a36c.5dec0c"]]},{"id":"74515819.0fd3e8","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Sun50","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2160,"wires":[["47f5a36c.5dec0c"]]},{"id":"75efb24e.8d384c","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Sun100","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2200,"wires":[["47f5a36c.5dec0c"]]},{"id":"356f021d.179d0e","type":"delay","z":"769a52c2.f1db8c","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1000,"y":1577,"wires":[["176c58d.3e780a7"]]},{"id":"6a7101c8.7b72a","type":"switch","z":"769a52c2.f1db8c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":1440,"wires":[["f4816adf.99c188"]]},{"id":"54566c36.fcc974","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2360,"wires":[["47f5a36c.5dec0c"]]},{"id":"71d1654d.6ef62c","type":"change","z":"769a52c2.f1db8c","name":"Mars","rules":[{"t":"set","p":"payload","pt":"msg","to":"2715","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1657,"wires":[["356f021d.179d0e"]]},{"id":"5e98f43f.bb1c3c","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Mars1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2240,"wires":[["47f5a36c.5dec0c"]]},{"id":"237e5550.2d488a","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Mars50","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":2280,"wires":[["47f5a36c.5dec0c"]]},{"id":"633d0e3e.53e65","type":"inject","z":"769a52c2.f1db8c","name":"","topic":"","payload":"Mars100","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":2320,"wires":[["47f5a36c.5dec0c"]]},{"id":"c3d67cb.5295c8","type":"openhab2-in","z":"769a52c2.f1db8c","name":"","controller":"e7fc0463.749968","itemname":"MQTTtoYeeLight","x":380,"y":1907,"wires":[["47f5a36c.5dec0c","b5b9eb4f.1deec8"],[]]},{"id":"ab65f0cd.88154","type":"openhab2-out","z":"769a52c2.f1db8c","name":"","controller":"e7fc0463.749968","itemname":"MQTTtoYeeLight","topic":"ItemUpdate","payload":"null","x":730,"y":1901,"wires":[[]]},{"id":"b5b9eb4f.1deec8","type":"delay","z":"769a52c2.f1db8c","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":560,"y":1901,"wires":[["ab65f0cd.88154"]]},{"id":"3369393a.d43766","type":"comment","z":"769a52c2.f1db8c","name":"Testing","info":"Brightness 1 - 50 100\ntemp Mars,Sun,Moon\n\nMars 2715\nMoon 5700\nSun 3600\n\nOff for shutdown","x":350,"y":1960,"wires":[]},{"id":"459fe867.2c8ca8","type":"comment","z":"769a52c2.f1db8c","name":"reset OH item to Null","info":"","x":390,"y":1860,"wires":[]},{"id":"d38cf73c.bb8698","type":"comment","z":"769a52c2.f1db8c","name":"MQTT to talk to OH YeeLight thing","info":"","x":420,"y":1440,"wires":[]},{"id":"e7fc0463.749968","type":"openhab2-controller","z":"","name":"openhab","protocol":"http","host":"localhost","port":"8080","path":"","username":"","password":""},{"id":"b31d9a1b.fc5e78","type":"mqtt-broker","z":"","name":"Node red","broker":"192.168.1.103","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"e8838d6f.5153e","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.103","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
my site map for it
Text label=“YeeLight” icon=“settings” {
Switch item=MQTTtoYeeLight label=“OFF” icon=“light” mappings=[OFF=“OFF”]
Switch item=MQTTtoYeeLight label=“Moon” icon=“light” mappings=[Moon1=“Easy”,Moon50=“Med”,Moon100=“High”]
Switch item=MQTTtoYeeLight label=“Sun” icon=“light” mappings=[Sun1=“Easy”,Sun50=“Med”,Sun100=“High”]
Switch item=MQTTtoYeeLight label=“Mars” icon=“light” mappings=[Mars1=“Easy”,Mars50=“Med”,Mars100=“High”]
}