1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

bl0942: Fix init sequence, add address and line_frequency options (#7250)

This commit is contained in:
David Woodhouse
2024-08-26 23:41:09 +01:00
committed by GitHub
parent 0f2064193f
commit e10f8128c8
4 changed files with 138 additions and 36 deletions

View File

@@ -0,0 +1,22 @@
uart:
- id: uart_bl0942
tx_pin:
number: TX1
rx_pin:
number: RX1
baud_rate: 2400
sensor:
- platform: bl0942
address: 0
line_frequency: 50Hz
voltage:
name: BL0942 Voltage
current:
name: BL0942 Current
power:
name: BL0942 Power
energy:
name: BL0942 Energy
frequency:
name: BL0942 Frequency