Hi peeps,
I'm successfully using send commands to tasker to control my yeelight bulbs but what I really want to do is query the bulb status before the send so I don't toggle lights off that are already on etc. Trouble is I can't get the expect to work, and store the response from the bulbs into a tasker variable.
The format for the send to the bulb from the bulb dev manual is:
{"id":1,"method":"get_prop","params":["power", "bright"]}
The response is:
{"id":1, "result":["on", "", "100"]}
I can't get the format for an expect (or I'm completely misunderstanbding what expect is for). Can anyone point me in the right direction. Send expect seems to complain about the JSON format using {}.
I've tried:
"id":1, "result":[<Power>,<Bright>]
"id":1, "result":[%Power,%Bright]
[<Power>,<Bright>]
[%Power,%Bright]
Thanks :)
G.