mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Add support for BL0906 energy meter (#7339)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
62
tests/components/bl0906/common.yaml
Normal file
62
tests/components/bl0906/common.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
uart:
|
||||
- id: uart_bl0906
|
||||
tx_pin:
|
||||
number: ${tx_pin}
|
||||
rx_pin:
|
||||
number: ${rx_pin}
|
||||
baud_rate: 19200
|
||||
|
||||
sensor:
|
||||
- platform: bl0906
|
||||
frequency:
|
||||
name: 'Frequency'
|
||||
temperature:
|
||||
name: 'Temperature'
|
||||
voltage:
|
||||
name: 'Voltage'
|
||||
channel_1:
|
||||
current:
|
||||
name: 'Current_1'
|
||||
power:
|
||||
name: 'Power_1'
|
||||
energy:
|
||||
name: 'Energy_1'
|
||||
channel_2:
|
||||
current:
|
||||
name: 'Current_2'
|
||||
power:
|
||||
name: 'Power_2'
|
||||
energy:
|
||||
name: 'Energy_2'
|
||||
channel_3:
|
||||
current:
|
||||
name: 'Current_3'
|
||||
power:
|
||||
name: 'Power_3'
|
||||
energy:
|
||||
name: 'Energy_3'
|
||||
channel_4:
|
||||
current:
|
||||
name: 'Current_4'
|
||||
power:
|
||||
name: 'Power_4'
|
||||
energy:
|
||||
name: 'Energy_4'
|
||||
channel_5:
|
||||
current:
|
||||
name: 'Current_5'
|
||||
power:
|
||||
name: 'Power_5'
|
||||
energy:
|
||||
name: 'Energy_5'
|
||||
channel_6:
|
||||
current:
|
||||
name: 'Current_6'
|
||||
power:
|
||||
name: 'Power_6'
|
||||
energy:
|
||||
name: 'Energy_6'
|
||||
total_energy:
|
||||
name: 'Total_Energy'
|
||||
total_power:
|
||||
name: 'Total_Power'
|
5
tests/components/bl0906/test.esp32-ard.yaml
Normal file
5
tests/components/bl0906/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bl0906/test.esp32-c3-ard.yaml
Normal file
5
tests/components/bl0906/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bl0906/test.esp32-c3-idf.yaml
Normal file
5
tests/components/bl0906/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO7
|
||||
rx_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bl0906/test.esp32-idf.yaml
Normal file
5
tests/components/bl0906/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bl0906/test.esp8266-ard.yaml
Normal file
5
tests/components/bl0906/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO1
|
||||
rx_pin: GPIO3
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bl0906/test.rp2040-ard.yaml
Normal file
5
tests/components/bl0906/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user