Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any metrics #12

Open
limpep opened this issue Mar 27, 2021 · 3 comments
Open

Not getting any metrics #12

limpep opened this issue Mar 27, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@limpep
Copy link

limpep commented Mar 27, 2021

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
Copy link
Author

limpep commented Mar 27, 2021

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

softScheck/tplink-smartplug#81

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

@fffonion fffonion added the bug Something isn't working label Mar 27, 2021
@fffonion
Copy link
Owner

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

@limpep
Copy link
Author

limpep commented Mar 29, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants