diff options
author | Tocho Tochev <tocho@tochev.net> | 2018-04-19T20·45+0300 |
---|---|---|
committer | Tocho Tochev <tocho@tochev.net> | 2018-04-19T20·45+0300 |
commit | b2c4bed94a3fb942797bba6c46717edf8187be1f (patch) | |
tree | 16f411ea32e1a40ca0695b3c71d23c68da44ce7a /README.md | |
parent | 9c238e17174a6ea2b0522e2a4a1ac1552a185c23 (diff) |
Add energy option to broadlink_cli
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md index 6cc123696139..74473b8e3063 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,11 @@ Check power state on a SmartPlug: state = devices[0].check_power() ``` +Check energy consumption on a SmartPlug: +``` +state = devices[0].get_energy() +``` + Set power state for S1 on a SmartPowerStrip MP1: ``` devices[0].set_power(1, True) |