espHome profile and documentation here https://devices.esphome.io/devices/Digitaling-20A-Power-Monitor-RTL8710BX-t102-v1.1
Old post below:
I have some of these plugs https://www.elektroda.com/rtvforum/topic4032920.html that I would like to use.
So far I have managed to get espHome to work and switch the leds/relays. However, I have not been able to get the power monitoring (via the BL0937) to work.
Using the hlw8012 (https://esphome.io/components/sensor/hlw8012.html) sensor in ha results in a boot loop.
To get the relay to work, I had to use board: wr2 instead of t102-v1.1.
Both issues are mentioned here. https://github.com/libretiny-eu/libretiny/issues/247
As also mentioned in that post, the hlw8012 driver causes the device to boot loop because of some irq CHANGE problem. Setting change_mode_every: "never" does not solve this.
My yaml: https://pastebin.com/B8LEbxge
platformio.ini definition:
[env]
platform = libretiny
board = wr2
framework = arduino
I would appreciate any hints on how to get the BL0937 to work on the RTL8710BX.
Added after 31 [minutes]:
https://github.com/libretiny-eu/libretiny/issues/155#issuecomment-1826470433
This fixes the issue. Its working now.
(Still getting wrong values but thats probably a calibration issue.)
Heres my findings and working config for espHome
https://deploy-preview-670--esphome-devices.n...italing-20A-Power-Monitor-RTL8710BX-t102-v1.1
Old post below:
I have some of these plugs https://www.elektroda.com/rtvforum/topic4032920.html that I would like to use.
So far I have managed to get espHome to work and switch the leds/relays. However, I have not been able to get the power monitoring (via the BL0937) to work.
Using the hlw8012 (https://esphome.io/components/sensor/hlw8012.html) sensor in ha results in a boot loop.
To get the relay to work, I had to use board: wr2 instead of t102-v1.1.
Both issues are mentioned here. https://github.com/libretiny-eu/libretiny/issues/247
As also mentioned in that post, the hlw8012 driver causes the device to boot loop because of some irq CHANGE problem. Setting change_mode_every: "never" does not solve this.
My yaml: https://pastebin.com/B8LEbxge
platformio.ini definition:
[env]
platform = libretiny
board = wr2
framework = arduino
I would appreciate any hints on how to get the BL0937 to work on the RTL8710BX.
Added after 31 [minutes]:
https://github.com/libretiny-eu/libretiny/issues/155#issuecomment-1826470433
This fixes the issue. Its working now.
(Still getting wrong values but thats probably a calibration issue.)
Heres my findings and working config for espHome
https://deploy-preview-670--esphome-devices.n...italing-20A-Power-Monitor-RTL8710BX-t102-v1.1