The code looks exactly the same as mine (apart from I don’t hide the IP address in a separate file).
Not sure why it doesn’t work, maybe try adding the IP address there, or checking the link to the .yaml file containing the IP address, or even checking the smart plug still has that IP address?
Did you by any chance upgrade the firmware of the switch? I’ve seen people running firmware 2.0 on their switches, and firmware 2.0 is not compatible (yet) with the library that handles the communication with the switch. Load the Kasa app and check out the firmware version - 1.0.8 and I think 1.1.0 are known to work.
I’ve noticed that if the grid’s voltage is not stable and has sudden drops the switch becomes unresponsive until it’s restarted. Maybe that’s what happened in your case.
My “laundry started” and “laundry done” notification automations were working fine for months and then I noticed I stopped getting notifications. I checked and it was because my sensors stopped working. The sensors are just like Nelbu’s.
It the switch attribute I can see the instantaneous measurements, but the sensors aren’t showing anything. I’ve tried restarting the switch twice. My friend also has a TP-Link switch and noticed the same thing as me.
I am on firmware 1.0.8. It looks like the problem is the syntax of the switch itself. Can anyone with working sensors confirm if mine are correct?
Mine was working fine, but for some reason now the values are totally wrong. For example, the Kasa app shows total consumption over today, 7 days and 30 days as 0, 6.64 and 10.1kWh. HA on the other hand, is showing the following values:
total_consumption: 0.72 kW
daily_consumption: 0.00 kW
current_consumption: 0.0 W
Would you guys buy it again? At the moment I am deciding which power consumption meter I should buy.
Broadlink SP3S
Sonoff POW, flashed with Tasmota
TP-Link HS110
Somehow I am leaning towards the Sonoff with custom firmware, but I don’t like that I have to add 2 cables and I’ve read that even the replacement models are overheating.
My config worked fine until the 0.61 update. I read the release notes and updated my config accordingly but it stills says state unknown. Anyone else having the same problem?