about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorPrzemek Wiech <pwiech@gmail.com>2016-11-17T23·19+0100
committerPrzemek Wiech <pwiech@gmail.com>2016-11-17T23·19+0100
commit652f52eb039a0ecd3fb157558d88374aabe013fe (patch)
tree160eced193d070cfd0bbc5bafe82ff974391f57d /README.md
parentc174e40f5903fdbc219ba09bc90256d83ebf1c22 (diff)
Updated SmartPlug commands - set_power() and check_power()
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.md b/README.md
index 3de1fa92e7..47a4691f51 100644
--- a/README.md
+++ b/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)
-```
\ No newline at end of file