Trying to create a config for BlitzWolf BW-SHP7 (double smart plug)

Hi All

I have a SHP-7 here that I’m trying to set up with esphome.
If I look at the Tasmota template repository, I get this pinout for SHP-7:

image

So by modifying the SHP-6 esphome config, I got this:

substitutions:
  device_name: doubleplug
  # Higher value gives lower watt readout
  current_res: '0.00025'
  # Lower value gives lower voltage readout
  voltage_div: '940'

esphome:
  name: '${device_name}'
  platform: ESP8266
  board: esp8285
  on_boot:
    then:
      - switch.turn_on: relay1
      - switch.turn_on: relay2
      
wifi:
  ssid: !secret wifissid
  password: !secret wifipw
  reboot_timeout: 60min
  manual_ip:
    static_ip: 10.11.13.43
    gateway: 10.11.13.1
    subnet: 255.255.255.0
#  use_address: 10.11.12.201
  fast_connect: true
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "${device_name} Hotspot"
    password: !secret appw

logger:
  baud_rate: 0

web_server:
  port: 80
  auth:
    username: !secret webuser
    password: !secret webpw

api:

ota:
  password: !secret otapw

time:
  - platform: homeassistant
    id: homeassistant_time

text_sensor:
  - platform: version
    name: "${device_name} ESPHome Version"
  - platform: wifi_info
    ip_address:
      name: "${device_name} ip"
    ssid:
      name: "${device_name} ssid"

binary_sensor:
  - platform: gpio
    id: button1
    internal: true
    pin:
      number: GPIO00
    on_press:
      - switch.toggle: relay1
  - platform: gpio
    id: button2
    internal: true
    pin:
      number: GPIO12
    on_press:
      - switch.toggle: relay2

output:
  - platform: gpio
    pin: GPIO13
    inverted: true
    id: led1
  - platform: gpio
    pin: GPIO02
    inverted: true
    id: led2

switch:
  - platform: gpio
    pin: GPIO14
    restore_mode: RESTORE_DEFAULT_ON
    id: relay1
    name: '${device_name} relay1'
    on_turn_on:
      - output.turn_on: led1
    on_turn_off:
      - output.turn_off: led1
  - platform: gpio
    pin: GPIO16
    restore_mode: RESTORE_DEFAULT_ON
    id: relay2
    name: '${device_name} relay2'
    on_turn_on:
      - output.turn_on: led2
    on_turn_off:
      - output.turn_off: led2

status_led:
  pin:
    number: GPIO02
    inverted: true

sensor:
  - platform: wifi_signal
    name: '${device_name} wifi signal'
    update_interval: 60s
    accuracy_decimals: 0
  - platform: uptime
    name: '${device_name} uptime'
    unit_of_measurement: days
    update_interval: 300s
    accuracy_decimals: 1
    filters:
      - multiply: 0.000011574
  - platform: hlw8012
    sel_pin:
      number: GPIO03
      inverted: true
    cf_pin: GPIO04
    cf1_pin: GPIO05
    current_resistor: ${current_res}
    voltage_divider: ${voltage_div}
    current:
      name: '${device_name} current'
      unit_of_measurement: 'A'
      accuracy_decimals: 3
      icon: mdi:flash-outline
    voltage:
      name: '${device_name} voltage'
      unit_of_measurement: 'V'
      icon: mdi:flash-outline
    power:
      name: '${device_name} power'
      unit_of_measurement: 'kW'
      id: power
      accuracy_decimals: 5
      filters:
        - multiply: 0.001
      icon: mdi:flash-outline
    change_mode_every: 4
    update_interval: 10s
  - platform: total_daily_energy
    name: '${device_name} daily energy'
    power_id: power
    unit_of_measurement: kWh
    accuracy_decimals: 5

The relays are shown in HA, and I can turn them on and off from HA.
What does not work yet:

LED2 doesn’t turn on / off with the relay.
BUTTON1 doesn’t trigger the RELAY1
BUTTON2 doesn’t trigger the RELAY2

It reads out powerconsumption, though I’m not sure if the chip I put in the config is the right one?

Any ideas on what I did wrong here, it did work work with tasmota?

Hmm, if I change LED2 to use GPIO01, but then it shows a blue led (link) instead of a red one for the relay.