Still baffled why/that the syntax of Tuya is so different from Tasmota.
Tried to replace WebSend with SendGet etc but got nowhere.
Does anybody know both worlds and could be so kind to just translate this to Tuya please?
Would really appreciate it.
Tried to replace WebSend with SendGet etc but got nowhere.
Does anybody know both worlds and could be so kind to just translate this to Tuya please?
Would really appreciate it.
# This turns on or off all addressed lights from a button (of an outlet or light switch or dimmer etc) positioned at the entrance.
# With one button all addressed lights/stereo/appliances can be turned on when entering, or off when leaving.
# No MQTT or "ignoring default button behavior (SetOption73)" needed.
# All done with just the tremendous capabilities of Tasmota and with the help of amazing sfromis and AndreKR.
# https://github.com/sfromis
# https://github.com/AndreKR
# SETUP (all below in console of the entrance 10.10.10.80 unit, just once), no need to change anything with addressed (10.10.10.81, 10.10.10.82) units:
# reduce long press from default 4 to 2 seconds, 4 seconds seemed too long.
SetOption32 20
# button state 2 is 1 short press
# Rule 1's first DO turns on local relay of the 10.10.10.80 unit, second DO turns on relay 3 of 10.10.10.81 unit, 2-second delay, then third DO turns on relay 2 of 10.10.10.82 unit
Rule1 ON Button1#state=2 DO Backlog Power1 on; WebSend [10.10.10.81] Power3 on; Delay 20; WebSend [10.10.10.82] Power2 on ENDON
# Activate Rule 1
Rule1 1
# Rule2 reverses the above
# button state 3 is a long press
Rule2 ON Button1#state=3 DO Backlog Power1 off; WebSend [10.10.10.81] Power3 off; WebSend [10.10.10.82] Power2 off ENDON
Rule2 1