My yeelight is working normal when controlled manually via ui.
I’m working on sun rise simulation rule based on Wake Up Light and Help with hue sunrise rule
My items are simple ones given in above i.e dimmer items for brightness and color_temperature and color item for color channel.
First of all Color Item HSB brightness value looks like no effect. I tried paper ui, basic ui, android and ios apps and direct manipulation. HSB commands are sent but changing B value doesn’t change brightness. I don’t know it this is yeelight’s, binding’s of openhab’s problem.
Color temperature based rule works fine however I’m strugling in color one. For debugging I’m using direct item manipulation. Below is commands and logs for bulb off at start. Brightness is send manually due to above problem. Color item behaves odd, which makes choppy color changes, jumping around.
for Hue +1, Sat -1, Bri +1
**openhab> smarthome:send Yeelight1_Dimmer 1**
22:23:25.229 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 1
22:23:25.248 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Dimmer' received command 1
22:23:25.261 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 0 to 1
22:23:25.276 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 1 to 61
22:23:25.285 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Switch changed from OFF to ON
22:23:26.759 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 61 to 1
**openhab> smarthome:send Yeelight1_Color 0,99,1**
22:23:50.172 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 0,99,1
22:23:50.187 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Color' received command 0,99,1
22:23:50.204 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 60,69,60 to 0,99,1
22:23:50.229 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,99,1 to 0,100,0
**openhab> smarthome:send Yeelight1_Dimmer 2**
22:24:21.135 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 2
22:24:21.147 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Dimmer' received command 2
22:24:21.167 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 1 to 2
**openhab> smarthome:send Yeelight1_Color 2,98,2**
22:24:32.001 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 2,98,2
22:24:32.012 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Color' received command 2,98,2
22:24:32.025 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,100,0 to 2,98,2
22:24:32.672 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 2,98,2 to 0,100,1
**openhab> smarthome:send Yeelight1_Dimmer 3**
22:38:52.073 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 3
22:38:52.089 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Dimmer' received command 3
22:38:52.142 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 2 to 3
**openhab> smarthome:send Yeelight1_Color 3,97,3**
22:39:00.385 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 3,97,3
22:39:00.402 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Color' received command 3,97,3
22:39:00.429 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,100,1 to 3,97,3
22:39:00.446 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 3,97,3 to 0,100,2
for Hue +1, Sat -1, Bri +2
**openhab> smarthome:send Yeelight1_Dimmer 1**
22:52:16.880 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 1
22:52:16.902 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Dimmer' received command 1
22:52:16.945 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 0 to 1
22:52:16.958 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 1 to 99
22:52:16.973 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Switch changed from OFF to ON
22:52:18.420 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 99 to 1
**openhab> smarthome:send Yeelight1_Color 0,99,1**
22:52:36.186 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 0,99,1
22:52:36.205 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Color' received command 0,99,1
22:52:36.212 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,0,100 to 0,99,1
22:52:36.261 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,99,1 to 0,100,0
**openhab> smarthome:send Yeelight1_Dimmer 3**
22:52:45.859 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 3
22:52:45.877 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Dimmer' received command 3
22:52:45.899 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 1 to 3
**openhab> smarthome:send Yeelight1_Color 2,98,3**
22:52:53.527 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 2,98,3
22:52:53.556 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Color' received command 2,98,3
22:52:53.576 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,100,0 to 2,98,3
22:52:53.599 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 2,98,3 to 0,100,2
**openhab> smarthome:send Yeelight1_Dimmer 5**
22:52:56.473 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 5
22:52:56.502 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Dimmer' received command 5
22:52:56.528 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Dimmer changed from 3 to 5
**openhab> smarthome:send Yeelight1_Color 4,97,5**
22:53:02.783 [INFO ] [yeelight.handler.YeelightHandlerBase] - YeelightColorHandler: command: 4,97,5
22:53:02.796 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Yeelight1_Color' received command 4,97,5
22:53:02.829 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 0,100,2 to 4,97,5
22:53:02.847 [INFO ] [marthome.event.ItemStateChangedEvent] - Yeelight1_Color changed from 4,97,5 to 4,100,4
Edit: I played with rule, when dimmer is constant, hue and sat doesn’t jump around. Whenever dimmer item changed, HSB values go crazy.