https://www.amazon.com/gp/product/B07CX5KLXN/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&th=1 esphome: name: outlet friendly_name: Outlet bk72xx: board: generic-bk7231t-qfn32-tuya logger: captive_portal: mdns: api: ota: wifi: ssid: !secret wifi_ssid password: !secret wifi_password text_sensor: - platform: libretiny version: name: LibreTiny Version light: - platform: status_led id: light_switch_1 pin: number: P6 inverted: true binary_sensor: - platform: gpio id: binary_switch_1 pin: number: P10 inverted: true mode: INPUT_PULLUP on_press: then: - switch.toggle: switch_1 switch: - platform: gpio id: switch_1 name: Relay 1 pin: P26 on_turn_on: - light.turn_on: light_switch_1 on_turn_off: - light.turn_off: light_switch_1 status_led: pin: number: P11 inverted: true sensor: - platform: hlw8012 model: BL0937 cf_pin: number: P7 inverted: true cf1_pin: number: P8 inverted: true sel_pin: number: P24 inverted: true current: name: BL0937 Current voltage: name: BL0937 Voltage power: name: BL0937 Power energy: name: BL0937 Energy voltage_divider: 870 current_resistor: 0.002 ohm