about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@coreos.com>2016-11-13T01·29+1300
committerMatthew Garrett <mjg59@coreos.com>2016-11-13T01·29+1300
commitc174e40f5903fdbc219ba09bc90256d83ebf1c22 (patch)
treeef3a1282e713cff93a0f51e57d7ef989e51ba6fe /README.md
parent61efc7ae29b6ddb05e662a38941c1b1ed582131d (diff)
Add experimental support for smartplugs
This adds a set_power() call that should work for the SP2 - unsure whether
it will work for the SP3.
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index a92fb77ff230..3de1fa92e7ef 100644
--- a/README.md
+++ b/README.md
@@ -43,3 +43,8 @@ Obtain sensor data from an A1:
 ```
 data = devices[0].check_sensors()
 ```
+
+Set power state on an SP2/SP3 (0 for off, 1 for on):
+```
+devices[0].set_power(1)
+```
\ No newline at end of file