Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working profile with calibrated power monitoring for BN-LINK BNC-60/U133TJ WiFi Heavy Duty smart plug #6

Open
cbuxton5200 opened this issue Sep 29, 2023 · 0 comments

Comments

@cbuxton5200
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant