Closed thewh1teagle closed 1 year ago
Hi @thewh1teagle the switch
parameter should be numeric (e.g. switch=1) and is used for outlets that have multiple switching plugs. You should just use something like this:
import tinytuya
# tinytuya.set_debug(True)
d = tinytuya.OutletDevice(DEVICEID, DEVICEIP, DEVICEKEY)
d.set_version(3.3)
d.turn_off()
I tried to control wifi smart heater with this library the function get status working but the function dev.turn_off(switch=True) hangs the result of get status is: