Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
In one terminal run:
Code Block | ||
---|---|---|
| ||
acsStop acsStart |
In a second terminal run:
Code Block | ||
---|---|---|
| ||
acsStartContainer -py aragornContainer |
And in a third terminal run:
Code Block | ||
---|---|---|
| ||
from Acspy.Clients.SimpleClient import PySimpleClient api_region = 'my_regionus' api_key = 'my_api_key' api_secret = 'my_api_secret' device_id = 'my_device_id' client = PySimpleClient() bulb = client.getComponent("TuyaBulbPython") bulb.turnOn(api_region, api_key, api_secret, device_id) bulb.turnOff(api_region, api_key, api_secret, device_id) |