Add energy option to broadlink_cli

This commit is contained in:
Tocho Tochev 2018-04-19 23:45:50 +03:00
parent 9c238e1717
commit b2c4bed94a
3 changed files with 13 additions and 0 deletions

View file

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