Add tests for HLW8032

This commit is contained in:
Richard Kubíček 2024-08-11 11:56:16 +02:00
parent ebf2eb4fc6
commit ed3acb308a
6 changed files with 138 additions and 0 deletions

View 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

View 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

View 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

View 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

View 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

View 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