@mwittig said in New plugin for TP-Link SmartPlugs HS100 and HS110:
@heiko1988 said in New plugin for TP-Link SmartPlugs HS100 and HS110:
My tp link. Is 2 weeks old.
Hardware v2. 0
Maybe the newer hardware make the difference here. This needs to be investigated further investigated.
The updated fork also support plugin-level debug. Just repeat the plugin installation procedure as described above. Then, set debug to true on tplink-smartplugin configuration and restart pimatic. Now it should produce more log data which might be helpful
ok,
i have try again.
i have only this output
error [pimatic-tplink-smartplug]: Unable to get consumption of device: Error: TCP Timeout
14:11:13error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug,TPlinkHS100]: Error getting attribute value nas.state: undefined
14:08:07error [pimatic-tplink-smartplug,TPlinkHS110]: Error getting attribute value brunnen-garten.state: undefined
14:08:07error [pimatic-tplink-smartplug,TPlinkHS110]: Error getting attribute value bachlauf-garten.state: undefined
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get power state of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get consumption of device: Error: TCP Timeout
14:08:07error [pimatic-tplink-smartplug]: Unable to get consumption of device: Error: TCP Timeout
i think this come from restart pimatic.
Thanks
uppdate:
ok, the valus i see direct in the shell console
14:20:47.008 [pimatic-tplink-smartplug] getting state
14:20:47.026 [pimatic-tplink-smartplug] getting state
14:20:47.039 [pimatic-tplink-smartplug] getting consumption
14:20:47.052 [pimatic-tplink-smartplug] getting state
14:20:47.064 [pimatic-tplink-smartplug] getting consumption
14:20:47.119 [pimatic-tplink-smartplug] state is true
14:20:47.362 [pimatic-tplink-smartplug] state is false
14:20:47.452 [pimatic-tplink-smartplug] consumption data is { voltage_mv: 234081,
14:20:47.452 [pimatic-tplink-smartplug]> current_ma: 1439,
14:20:47.452 [pimatic-tplink-smartplug]> power_mw: 334575,
14:20:47.452 [pimatic-tplink-smartplug]> total_wh: 2407,
14:20:47.452 [pimatic-tplink-smartplug]> err_code: 0 }
14:20:47.497 [pimatic-tplink-smartplug] consumption data is { voltage_mv: 234481,
14:20:47.497 [pimatic-tplink-smartplug]> current_ma: 37,
14:20:47.497 [pimatic-tplink-smartplug]> power_mw: 0,
14:20:47.497 [pimatic-tplink-smartplug]> total_wh: 117,
14:20:47.497 [pimatic-tplink-smartplug]> err_code: 0 }
14:20:47.654 [pimatic-tplink-smartplug] state is true
14:21:47.125 [pimatic-tplink-smartplug] getting state
14:21:47.338 [pimatic] rule zuhause-ja: set presence of Zuhause to present
14:21:47.422 [pimatic-tplink-smartplug] state is true
14:21:47.503 [pimatic-tplink-smartplug] getting state
14:21:47.523 [pimatic-tplink-smartplug] getting consumption
14:21:47.682 [pimatic-tplink-smartplug] getting state
14:21:47.707 [pimatic-tplink-smartplug] getting consumption
14:21:47.776 [pimatic-tplink-smartplug] consumption data is { voltage_mv: 234629,
14:21:47.776 [pimatic-tplink-smartplug]> current_ma: 37,
14:21:47.776 [pimatic-tplink-smartplug]> power_mw: 0,
14:21:47.776 [pimatic-tplink-smartplug]> total_wh: 117,
14:21:47.776 [pimatic-tplink-smartplug]> err_code: 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 }
14:21:47.938 [pimatic-tplink-smartplug] state is false
14:21:48.059 [pimatic-tplink-smartplug] state is true
in the frontend i dont see this.