mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Add tests for HLW8032
This commit is contained in:
parent
ebf2eb4fc6
commit
ed3acb308a
6 changed files with 138 additions and 0 deletions
23
tests/components/hlw8032/test.esp32-ard.yaml
Normal file
23
tests/components/hlw8032/test.esp32-ard.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uart:
|
||||
id: uart_hlw8032
|
||||
rx_pin: GPIO13
|
||||
baud_rate: 4800
|
||||
parity: EVEN
|
||||
|
||||
sensor:
|
||||
- platform: hlw8032
|
||||
voltage:
|
||||
name: HLW8032 Voltage
|
||||
id: hlw8032_voltage
|
||||
current:
|
||||
name: HLW8032 Current
|
||||
id: hlw8032_current
|
||||
power:
|
||||
name: HLW8032 Power
|
||||
id: hlw8032_power
|
||||
apparent_power:
|
||||
name: HLW8032 Apparent Power
|
||||
id: hlw8032_apparent_power
|
||||
power_factor:
|
||||
name: HLW8032 Power Factor
|
||||
id: hlw8032_power_factor
|
23
tests/components/hlw8032/test.esp32-c3-ard.yaml
Normal file
23
tests/components/hlw8032/test.esp32-c3-ard.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uart:
|
||||
id: uart_hlw8032
|
||||
rx_pin: GPIO13
|
||||
baud_rate: 4800
|
||||
parity: EVEN
|
||||
|
||||
sensor:
|
||||
- platform: hlw8032
|
||||
voltage:
|
||||
name: HLW8032 Voltage
|
||||
id: hlw8032_voltage
|
||||
current:
|
||||
name: HLW8032 Current
|
||||
id: hlw8032_current
|
||||
power:
|
||||
name: HLW8032 Power
|
||||
id: hlw8032_power
|
||||
apparent_power:
|
||||
name: HLW8032 Apparent Power
|
||||
id: hlw8032_apparent_power
|
||||
power_factor:
|
||||
name: HLW8032 Power Factor
|
||||
id: hlw8032_power_factor
|
23
tests/components/hlw8032/test.esp32-c3-idf.yaml
Normal file
23
tests/components/hlw8032/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uart:
|
||||
id: uart_hlw8032
|
||||
rx_pin: GPIO13
|
||||
baud_rate: 4800
|
||||
parity: EVEN
|
||||
|
||||
sensor:
|
||||
- platform: hlw8032
|
||||
voltage:
|
||||
name: HLW8032 Voltage
|
||||
id: hlw8032_voltage
|
||||
current:
|
||||
name: HLW8032 Current
|
||||
id: hlw8032_current
|
||||
power:
|
||||
name: HLW8032 Power
|
||||
id: hlw8032_power
|
||||
apparent_power:
|
||||
name: HLW8032 Apparent Power
|
||||
id: hlw8032_apparent_power
|
||||
power_factor:
|
||||
name: HLW8032 Power Factor
|
||||
id: hlw8032_power_factor
|
23
tests/components/hlw8032/test.esp32-idf.yaml
Normal file
23
tests/components/hlw8032/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uart:
|
||||
id: uart_hlw8032
|
||||
rx_pin: GPIO13
|
||||
baud_rate: 4800
|
||||
parity: EVEN
|
||||
|
||||
sensor:
|
||||
- platform: hlw8032
|
||||
voltage:
|
||||
name: HLW8032 Voltage
|
||||
id: hlw8032_voltage
|
||||
current:
|
||||
name: HLW8032 Current
|
||||
id: hlw8032_current
|
||||
power:
|
||||
name: HLW8032 Power
|
||||
id: hlw8032_power
|
||||
apparent_power:
|
||||
name: HLW8032 Apparent Power
|
||||
id: hlw8032_apparent_power
|
||||
power_factor:
|
||||
name: HLW8032 Power Factor
|
||||
id: hlw8032_power_factor
|
23
tests/components/hlw8032/test.esp8266-ard.yaml
Normal file
23
tests/components/hlw8032/test.esp8266-ard.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uart:
|
||||
id: uart_hlw8032
|
||||
rx_pin: GPIO13
|
||||
baud_rate: 4800
|
||||
parity: EVEN
|
||||
|
||||
sensor:
|
||||
- platform: hlw8032
|
||||
voltage:
|
||||
name: HLW8032 Voltage
|
||||
id: hlw8032_voltage
|
||||
current:
|
||||
name: HLW8032 Current
|
||||
id: hlw8032_current
|
||||
power:
|
||||
name: HLW8032 Power
|
||||
id: hlw8032_power
|
||||
apparent_power:
|
||||
name: HLW8032 Apparent Power
|
||||
id: hlw8032_apparent_power
|
||||
power_factor:
|
||||
name: HLW8032 Power Factor
|
||||
id: hlw8032_power_factor
|
23
tests/components/hlw8032/test.rp2040-ard.yaml
Normal file
23
tests/components/hlw8032/test.rp2040-ard.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uart:
|
||||
id: uart_hlw8032
|
||||
rx_pin: GPIO13
|
||||
baud_rate: 4800
|
||||
parity: EVEN
|
||||
|
||||
sensor:
|
||||
- platform: hlw8032
|
||||
voltage:
|
||||
name: HLW8032 Voltage
|
||||
id: hlw8032_voltage
|
||||
current:
|
||||
name: HLW8032 Current
|
||||
id: hlw8032_current
|
||||
power:
|
||||
name: HLW8032 Power
|
||||
id: hlw8032_power
|
||||
apparent_power:
|
||||
name: HLW8032 Apparent Power
|
||||
id: hlw8032_apparent_power
|
||||
power_factor:
|
||||
name: HLW8032 Power Factor
|
||||
id: hlw8032_power_factor
|
Loading…
Reference in a new issue