I have the Xiaomi Wireless Switch and I want one click to turn on a lamp at 30 % and second click to turn it off. Then I want double click to set the lamp to 60 % and one click to turn it off again. What's a good way to do that in Blockly? My beginning attempt turns the light on and off like it should, but from the logs I see that it's actually turning it on/off/on or off/on/off.
At the moment all the selector actions are empty and I have set Off delay to 1 second.
Struggling with the Xiaomi Wireless Switch Topic is solved
Moderator: leecollings
Re: Struggling with the Xiaomi Wireless Switch
I made it. Just had to switch the two Sets for some reason. Single click turns light to 30 % if light is off. If light is on it turns it off. Double click sets light to 60 % and long click sets it to 100 %.
Who is online
Users browsing this forum: No registered users and 1 guest