Skip to content

Python scripts that allow me to control Tuya-compatible smart Wi-Fi light bulbs & sockets at home.

License

Notifications You must be signed in to change notification settings

vardecab/control-tuya_smarthome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

control-tuya_smarthome

Actively Maintained

Python scripts that allow me to control Tuya-compatible smart Wi-Fi light bulbs & sockets at home.

Screenshots

iTerm2_2021-10-05 02-50-34@2x

How to use

Read setup here, then it should be pretty clear how to use this script.

I'm storing values in constants.py file which is excluded from this repo but you can hardcode these values if you want.

In:

device = tinytuya.OutletDevice(constants.Lampki_device_ID, constants.Lampki_device_IP, constants.Lampki_device_key) # device = Lampki

replace:

  • constants.Lampki_device_ID to your device_ID, eg. 00000000000000000000
  • constants.Lampki_device_IP to your device_IP, eg. 192.168.1.200
  • constants.Lampki_device_key to your device_key, eg. ab0000abc00bbaaa

so it looks like this:

device = tinytuya.OutletDevice('00000000000000000000', '192.168.1.200', 'ab0000abc00bbaaa') # device = Lampki

All these values can be taken from Wizard, see more here.

Features

  • Turn on a device 🟢
  • Turn off a device 🔴

Release History

  • 0.1: Initial release with 4 devices; sensitive variables were hidden in another file.

Versioning

Using SemVer.

License

Acknowledgements

Contributing

If you found a bug or want to propose a feature, feel free to visit the Issues page.

About

Python scripts that allow me to control Tuya-compatible smart Wi-Fi light bulbs & sockets at home.

Topics

Resources

License

Stars

Watchers

Forks

Languages