Updated SmartPlug commands - set_power() and check_power()
This commit is contained in:
parent
c174e40f59
commit
652f52eb03
2 changed files with 22 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -44,7 +44,12 @@ Obtain sensor data from an A1:
|
|||
data = devices[0].check_sensors()
|
||||
```
|
||||
|
||||
Set power state on an SP2/SP3 (0 for off, 1 for on):
|
||||
Set power state on a SmartPlug SP2/SP3:
|
||||
```
|
||||
devices[0].set_power(True)
|
||||
```
|
||||
|
||||
Check power state on a SmartPlug:
|
||||
```
|
||||
state = devices[0].check_power()
|
||||
```
|
||||
devices[0].set_power(1)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue