After the first one bricked (It would connect to WiFi but not accessible, not recognised by ESPHome or home assistant, no web server access) I started again, incrementally adding to the config as each flashing worked, unit lastly adding the sensor config, after which the device was not accessible.
The UART config did not cause the problem, just the addition of the CSE7766 sensor.
Re-flashing with a minimal config does nothing to fix it and it remains inaccessible.
I managed to ‘unbrick’ by going back to tasmota and then forward again to ESPHome.
I’ll give your config a try shortly.
I removed current and voltage from mine and got it work, I get this error in the logs though. Not sure if that’s related to logger. I’ll remove it and try.
[18:20:47][W][cse7766:058]: Invalid checksum from CSE7766: 0x00 != 0xA6
[18:20:47][W][cse7766:058]: Invalid checksum from CSE7766: 0x02 != 0xA6
[18:20:47][W][cse7766:058]: Invalid checksum from CSE7766: 0x16 != 0x5A
[18:20:54][D][cse7766:147]: Got voltage=245.7V current=0.1A power=0.6W
[18:20:54][D][sensor:092]: 'Main pump power': Sending state 0.60385 W with 1 decimals of accuracy
Thanks for sharing your POW R2 setup. I was a bit lost and your total_daily_energy example was very helpful.
I wonder if they’ll implement the “pulses” reading at some point (see this and page 21). With the current setup we have to ““manually”” integrate the power, when the chip itself is already doing it with better resolution.
may i know why you using esphome rather using tasmota for sonoff pow r2?
i have 3 sonoff pow r2 flashed by tasmota, and then i buy a new one, and wanna try using esphome.
but seems it’s much pretty easier using tasmota, isn’t it?
then i would like to know (if you don’t mind) why you choose esphome.
Thanks
I find that it’s far easier and more flexible to integrate ESPHome devices into home assistant. Tasmota is great for stand-alone devices and I admit to not having kept up with it, but for me, ESPHome is the way to go.