1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

Add support for BL0939 (Sonoff Dual R3 V2 powermeter) (#3300)

This commit is contained in:
I. Tomita
2022-04-21 01:11:25 +03:00
committed by GitHub
parent 9576d246ee
commit 7a778f3f33
6 changed files with 400 additions and 0 deletions

View File

@@ -256,6 +256,12 @@ uart:
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 38400
- id: uart8
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 4800
parity: NONE
stop_bits: 2
# Specifically added for testing debug with no options at all.
debug:
@@ -477,6 +483,24 @@ sensor:
active_power_b:
name: ADE7953 Active Power B
id: ade7953_active_power_b
- platform: bl0939
uart_id: uart8
voltage:
name: 'BL0939 Voltage'
current_1:
name: 'BL0939 Current 1'
current_2:
name: 'BL0939 Current 2'
active_power_1:
name: 'BL0939 Active Power 1'
active_power_2:
name: 'BL0939 Active Power 2'
energy_1:
name: 'BL0939 Energy 1'
energy_2:
name: 'BL0939 Energy 2'
energy_total:
name: 'BL0939 Total energy'
- platform: bl0940
uart_id: uart3
voltage: