diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md index 47a4691f51bd..3d7598f5d88c 100644 --- a/README.md +++ b/README.md @@ -53,3 +53,13 @@ Check power state on a SmartPlug: ``` state = devices[0].check_power() ``` + +Set power state for S1 on a SmartPowerStrip MP1: +``` +devices[0].set_power(1, True) +``` + +Check power state on a SmartPowerStrip: +``` +state = devices[0].check_power() +``` \ No newline at end of file |