jonathanadams / esphome-configs

ESPHome Device Configurations Repository - A database of user submitted configurations for a variety of devices which can be flashed to run ESPHome.io firmware.
https://ESPHome-Configs.io
GNU General Public License v3.0
68 stars 96 forks source link

Aoycocr X10S hlw8012 values #138

Closed ptr727 closed 4 years ago

ptr727 commented 4 years ago

Hi, I'm adding a Aoycocr X10S to ESPHome. I find that the power measurements do not match those reported by my PR10 power meter.

Per the comments the hlw8012 resistor and divider values were copied from the AWP04L template. I wonder if the Teckin SP20 may not be a better match, or if a bit of reverse engineering with actual measured component values is required?

Compare: https://esphome-configs.io/devices/teckin-sp20/ https://github.com/jonathanadams/esphome-configs/blob/master/_devices/Teckin-SP20/Teckin-SP20.md and https://esphome-configs.io/devices/aoycocr-x10s/ https://github.com/jonathanadams/esphome-configs/blob/master/_devices/Aoycocr-X10S-Plug/Aoycocr-X10S.md

Maybe @akennerly can advise, as he did the integration?

ptr727 commented 4 years ago

I could not get the newer version X10S to Tuya Convert, so closing as I won't be using be using the X10S.