From 49cf14d92f486dcd95167526b58706b5efc1235f Mon Sep 17 00:00:00 2001 From: Keith Chiem Date: Thu, 9 Nov 2017 20:15:08 -0800 Subject: [PATCH] add 'energy' command for realtime voltage/current/power stats from hs110. --- tplink-smartplug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tplink-smartplug.py b/tplink-smartplug.py index 34b89cc..b42c232 100644 --- a/tplink-smartplug.py +++ b/tplink-smartplug.py @@ -45,7 +45,8 @@ commands = {'info' : '{"system":{"get_sysinfo":{}}}', 'countdown': '{"count_down":{"get_rules":{}}}', 'antitheft': '{"anti_theft":{"get_rules":{}}}', '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