tplink-plug-exporter icon indicating copy to clipboard operation
tplink-plug-exporter copied to clipboard

Not getting any metrics

Open limpep opened this issue 3 years ago • 3 comments

Hi,

One of my smart plugs (H110, hardware version 4.1, firmware version 1.1.0) is not returning on any metrics. It used to work before, but I had to move the plug and when I plugged it back in, I stopped receiving metrics for it.

Here is what I see on Prometheus.

# HELP kasa_online Device online.
# TYPE kasa_online gauge
kasa_online 0

I am currently using the tplink-plug-exporter_0.4.0_linux_armv7.tar.gz of the exporter on a Raspberry PI 4. my other two plugs seem to be fine ( I can see metrics for them). But they are on hardware version 1.0 and firmware version 1.2.6, not sure if that has a impact. All three plugs are on the same 2.4GH network.

In the logs I see the following

level=error msg="error collecting 192.168.1.181 : system.get_sysinfo: dial tcp 192.168.1.181:9999: connect: connection refused" source=

I can see data for all free plus when using the Kasa app on my Android device,

limpep avatar Mar 27 '21 15:03 limpep

Looks like on hardware version 4.1 they stopped access to port 9999

https://github.com/softScheck/tplink-smartplug/issues/81

https://www.home-assistant.io/blog/2020/11/23/tplink-local-access/

limpep avatar Mar 27 '21 16:03 limpep

@limpep Thank you for the report, I will look into this shortly.

fffonion avatar Mar 27 '21 17:03 fffonion

@fffonion np, I believe this might help you https://github.com/python-kasa/python-kasa . I am not a GO or Python dev, otherwise would of love to helped.

limpep avatar Mar 29 '21 13:03 limpep