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