Identify pins on plug

Hi,

I got a Nedis WIFIP120FWT which includes a HLW8012 for power usage monitoring.

I found this link but the pins doesn’t match:

I’ve figured out the pins for button, led and relay, but how can I find the correct pins for HLW8012 (CF, CF1, SEL pins)?

output:
- platform: gpio
  id: relay1
  pin: GPIO14
- platform: gpio
  id: led1
  pin:
    number: GPIO1
    inverted: true
    
sensor:
  - platform: hlw8012
    sel_pin: ?
    cf_pin: ?
    cf1_pin: ?
    current:
      name: "HLW8012 Current"
    voltage:
      name: "HLW8012 Voltage"
    power:
      name: "HLW8012 Power"
    update_interval: 10s
    
switch:
- platform: output
  name: "Switch"
  id: switch1
  output: relay1
  on_turn_on:
    - output.turn_on: led1
  on_turn_off:
    - output.turn_off: led1

Do the ones on the template not work?

Would a GPIO switch work here instead of using output ?

Hi! I just got a Nedis 16A plug that I opened up to install ESPHome on (it has readily available pads to solder). I had some issues with the config, but now I am quite happy with it, I used the info on Nedis Schuko Type F 16A Power Monitoring Plug (WIFIP120FWT) Configuration for Tasmota and ended up with this config

1 Like