mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
28
tests/components/pzemac/common.yaml
Normal file
28
tests/components/pzemac/common.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
@@ -1,28 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- pzemac.reset_energy: pzemac1
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
uart:
|
||||
- id: uart_pzemac
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
id: pzemac1
|
||||
voltage:
|
||||
name: PZEMAC Voltage
|
||||
current:
|
||||
name: PZEMAC Current
|
||||
power:
|
||||
name: PZEMAC Power
|
||||
energy:
|
||||
name: PZEMAC Energy
|
||||
frequency:
|
||||
name: PZEMAC Frequency
|
||||
power_factor:
|
||||
name: PZEMAC Power Factor
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user