@mwittig said in New plugin for TP-Link SmartPlugs HS100 and HS110:
@heiko1988 said in New plugin for TP-Link SmartPlugs HS100 and HS110:
ok, the valus i see direct in the shell console
Thanks for the update on log output. This was very helpful!
As one can see, hardware revision 2.0 plugs appear to provide the measurement data in a different format. I have updated my fork to handle both formats accordingly. The measurement data should now
be displayed properly in your setup (after having installed the latest changes).Hardware Revision 2.0
14:21:47.915 [pimatic-tplink-smartplug] consumption data is { voltage_mv: 234260, 14:21:47.915 [pimatic-tplink-smartplug]> current_ma: 1445, 14:21:47.915 [pimatic-tplink-smartplug]> power_mw: 336228, 14:21:47.915 [pimatic-tplink-smartplug]> total_wh: 2412, 14:21:47.915 [pimatic-tplink-smartplug]> err_code: 0 }
Hardware Revision 1.0
15:05:14.574 [pimatic-tplink-smartplug] consumption data is { current: 0.136666, 15:05:14.574 [pimatic-tplink-smartplug]> voltage: 229.637248, 15:05:14.574 [pimatic-tplink-smartplug]> power: 16.457058, 15:05:14.574 [pimatic-tplink-smartplug]> total: 0.009, 15:05:14.574 [pimatic-tplink-smartplug]> err_code: 0 }
Thank you very much
work all fine toggle, smart meter.
you are the man of the day for me