You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am new at using code from other people so I don't know how what are the steps necessary to query the state of the device.
Describe the solution you'd like
Could you please add a tiny tutorial on how to start with this module?
here is an example from VeSync:
Hello @Lash-L ,
Is your feature request related to a problem? Please describe.
I am new at using code from other people so I don't know how what are the steps necessary to query the state of the device.
Describe the solution you'd like
Could you please add a tiny tutorial on how to start with this module?
here is an example from VeSync:
from pyvesync import VeSync
manager = VeSync("EMAIL", "PASSWORD", "TIME_ZONE", debug=False, redact=True)
manager.login()
debug and redact are optional arguments, the above values are their defaults
Get/Update Devices from server - populate device lists
manager.update()
my_switch = manager.outlets[0]
Turn on the first switch
my_switch.turn_on()
Turn off the first switch
my_switch.turn_off()
Get energy usage data for outlets
manager.update_energy()
Set bulb brightness to 75% of first bulb in the list
my_bulb = manager.bulbs[0]
my_bulb.set_brightness(75)
get its details in JSON and print
print(my_bulb.displayJSON())
Additional context
Add any other context or screenshots about the feature request here.
Thank you,
Carlos Gamez
The text was updated successfully, but these errors were encountered: