Updated SmartPlug commands - set_power() and check_power()

This commit is contained in:
Przemek Wiech 2016-11-18 00:19:02 +01:00
parent c174e40f59
commit 652f52eb03
2 changed files with 22 additions and 5 deletions

View file

@ -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)
```