I just setup a TP Link KP115 plug with energy monitoring with HA. All the sensors are working except for the daily consumption sensor. The current and 30day (total) consumption seem to be working fine.
I have the plug on a VLAN without internet access. Does the daily consumption sensor require something extra to work?
Does it need access to an NTP server? If so can I point it to my HA NTP server somehow?
Curious Jason if you ever got this working. Energy monitoring was working for me with these devices but I just noticed it stopped working at some point late last year.
All the sensors for the KP115 work fine for me in Home Assistant. The only one not working is the 24hr power consumption sensor. It turns out that the plug does need internet access for that to work, because there is a hardcoded NTP server that it requires.
I had heard that some of the newer firmware for the Kasa smart home devices was removing the local API. I’m not sure which models specifically are affected. Have you updated the firmware on any of yours?
@JasonLee@Eoin any update on this from either of you ? I have the same issue and have forcibly kept the KP125M’s (with energy monitoring too) off of the Internet a) to keep local and b) to ensure they are not FW updated. Wondering if you ever got around this ? Thanks
I just went through dealing with this. I’ve got Kasa devices on an isolated VLAN with no internet access, and had to do some hoop-jumping with my router to allow inter-vlan traffic to my pi-hole (main LAN) for DNS and to my router for NTP (forces all NTP traffic to its own NTP service).
They actually just need the NTP, but if they don’t have DNS the NTP lookup will obviously fail. They definitely don’t need actual internet access.
Once my KP115s had NTP access, the daily consumption started working automagically.
@vjarnot Can you explain how you did this with Pi Hole ? I am running a Unifi Dream Machine Pro but also use AdGuard Home and wanted to do the same thing, redirect to local NTP etc. Thanks
@rWnpZBiUoXHjVysViYYb Not much of it has to do with the pihole. I run an edgerouter 4 and I’ve got NAT rules which redirect all port 53 requests to my pihole, and all port 123 requests to the router itself. The other hoops were with regard to my firewall rules, since otherwise I block all traffic out from my IOT VLAN.
I’m sure the UDM can do that, but I’ve never configured one. You may or may not need a hairpin rule too, depending on topology, but I’m definitely not an expert.
Does the ER4 have a built in NTP server ? The UDM Pro doesn’t allow you to advertise so I would need to intercept the 123 requests and force to an external of my choice etc. Not sure if thats possible