Hi
My Yeelight led strip arrive today and connected to openhab with Yeelight binding
I used the full example and everything created as expected and work
then I try to use the sendcommnad with simple switch and rule but nothing happend
Here is my code:
Things:
Thing yeelight:stripe:1 [ deviceId="0x000000000xxx..." ]
Items:
Color YeelightLEDColor { channel="yeelight:stripe:1:color" }
Switch YeelightLEDSwitch { channel="yeelight:stripe:1:color" }
String YeelightLEDCommand { channel="yeelight:stripe:1:command" }
Switch YeelightLedSwitchTest "Test Led Stripe" <switch>
Rule:
rule "YeelightLedSwitchTest"
when
Item YeelightLedSwitchTest changed
then
YeelightLEDCommand.sendCommand ("set_power;\"on\",\"smooth\",2000")
end
Log:
2019-06-26 22:16:18.907 [ome.event.ItemCommandEvent] - Item 'YeelightLedSwitchTest' received command ON
2019-06-26 22:16:18.937 [vent.ItemStateChangedEvent] - YeelightLedSwitchTest changed from OFF to ON
2019-06-26 22:16:19.121 [ome.event.ItemCommandEvent] - Item 'YeelightLEDCommand' received command set_power;"on","smooth",2000
2019-06-26 22:16:19.126 [nt.ItemStatePredictedEvent] - YeelightLEDCommand predicted to become NULL
What makes you think the command is not sent?
It may be that this device doesn’t happen to recognize a random example command, I don’t know yeelight stuff so I don’t know how you’d find out a simple string to try out.
For encouragement, here’s another person doing much the same thing.
You can add a autoUpdate=“False” to your channel, to avoid this behaviour.
Did you check your channel?
and use this syntax: ‘set_power[“on”,“smooth”, 500, 5]’.
@rossko57 I don’t know if the command sent or not, the strip is not on
The string is from the example on the binding page and from Yeelight reference @Gad_Ofir I didn’t understand your reply, I only wont to use the sendCommand @Nico111 How can I check the channel?