Add energy option to broadlink_cli
This commit is contained in:
parent
9c238e1717
commit
b2c4bed94a
3 changed files with 13 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue