add 'energy' command for realtime voltage/current/power stats from hs110.

This commit is contained in:
Keith Chiem 2017-11-09 20:15:08 -08:00
parent 7fabe4574c
commit 49cf14d92f

View File

@ -45,7 +45,8 @@ commands = {'info' : '{"system":{"get_sysinfo":{}}}',
'countdown': '{"count_down":{"get_rules":{}}}', 'countdown': '{"count_down":{"get_rules":{}}}',
'antitheft': '{"anti_theft":{"get_rules":{}}}', 'antitheft': '{"anti_theft":{"get_rules":{}}}',
'reboot' : '{"system":{"reboot":{"delay":1}}}', 'reboot' : '{"system":{"reboot":{"delay":1}}}',
'reset' : '{"system":{"reset":{"delay":1}}}' 'reset' : '{"system":{"reset":{"delay":1}}}',
'energy' : '{"emeter":{"get_realtime":{}}}'
} }
# Encryption and Decryption of TP-Link Smart Home Protocol # Encryption and Decryption of TP-Link Smart Home Protocol