Yeelight send command

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

Why the command is not sent?
Thanks in advance

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.

i also had issues understanding what is going on there with this send commands i decided to go full node-red on the binding :slight_smile:
with just using 3 items,

if you need the flow tell me ā€¦

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?

Hi oded, Node red is rule engine that can work with openhabā€¦
i made the light work with some logic that will send command to each channel

@Nico111 I guess your right, there is no channel for command
What am I doing wrong?
image

the here is butten"show more "channels


and make sure you link it , so for example your colorTemp is not connected to anything

@Gad_Ofir No show more on that thing
In my case there must be 3 channel but I only see 2
I know that I have 1 channel without link

mm strange i think you should also have some channels for wifi strength

just a shot in dark but check the below configā€¦

After upgrade Yeelight binding from 2.4.0 to 2.5.0 I have the command channel and it work

1 Like