We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use this module to change a smart plug power state ?
The text was updated successfully, but these errors were encountered:
Hi @adrianmak ! This module is for reading power only. However, it uses and is based on tinytuya which does allow you to change state:
import tinytuya # Connect to Device d = tinytuya.OutletDevice( dev_id='DEVICE_ID_HERE', address='IP_ADDRESS_HERE', local_key='LOCAL_KEY_HERE', version=3.3) # Get Status data = d.status() print('set_status() result %r' % data) # Turn On d.turn_on() # Turn Off d.turn_off()
Sorry, something went wrong.
No branches or pull requests
Can I use this module to change a smart plug power state ?
The text was updated successfully, but these errors were encountered: