I'm sorry to hear that you encountered an error while running the code, and you're unsure how to resolve it.
import tinytuya
d = tinytuya.OutletDevice(
dev_id='eb3acc083a68236498sysw',
address='192.168.*.***', # Or set to 'Auto' to auto-discover IP address
local_key="********'",
version=3.4)
data = d.status()
print('set_status() result %r' % data)
d.turn_on()
d.turn_off()
I'm sorry to hear that you encountered an error while running the code, and you're unsure how to resolve it.
my snapshot.json
and How can I troubleshoot the "No response" issue during the "Polling local devices" step when running python -m tinytuya wizard?