mirror of
https://github.com/esphome/esphome.git
synced 2025-02-14 08:58:14 +00:00
[CI] Consolidate some tests (H) (#8198)
This commit is contained in:
parent
211aee91e5
commit
f8fae676b1
79
tests/components/havells_solar/common.yaml
Normal file
79
tests/components/havells_solar/common.yaml
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_havells_solar
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
modbus:
|
||||||
|
flow_control_pin: ${flow_control_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: havells_solar
|
||||||
|
update_interval: 60s
|
||||||
|
phase_a:
|
||||||
|
voltage:
|
||||||
|
name: Phase A Voltage
|
||||||
|
current:
|
||||||
|
name: Phase A Current
|
||||||
|
phase_b:
|
||||||
|
voltage:
|
||||||
|
name: Voltage Phase B
|
||||||
|
current:
|
||||||
|
name: Current Phase B
|
||||||
|
phase_c:
|
||||||
|
voltage:
|
||||||
|
name: Voltage Phase C
|
||||||
|
current:
|
||||||
|
name: Current Phase C
|
||||||
|
pv1:
|
||||||
|
voltage:
|
||||||
|
name: PV1 Voltage
|
||||||
|
current:
|
||||||
|
name: PV1 Current
|
||||||
|
active_power:
|
||||||
|
name: PV1 Active Power
|
||||||
|
voltage_sampled_by_secondary_cpu:
|
||||||
|
name: PV1 Voltage Sampled By Secondary CPU
|
||||||
|
insulation_of_p_to_ground:
|
||||||
|
name: PV1 Insulation Of +VE To Ground
|
||||||
|
pv2:
|
||||||
|
voltage:
|
||||||
|
name: PV2 Voltage
|
||||||
|
current:
|
||||||
|
name: PV2 Current
|
||||||
|
active_power:
|
||||||
|
name: PV2 Active Power
|
||||||
|
voltage_sampled_by_secondary_cpu:
|
||||||
|
name: PV2 Voltage Sampled By Secondary CPU
|
||||||
|
insulation_of_p_to_ground:
|
||||||
|
name: PV2 Insulation Of +VE To Ground
|
||||||
|
active_power:
|
||||||
|
name: Active Power
|
||||||
|
reactive_power:
|
||||||
|
name: Reactive Power
|
||||||
|
frequency:
|
||||||
|
name: Frequency
|
||||||
|
energy_production_day:
|
||||||
|
name: Today's Generation
|
||||||
|
total_energy_production:
|
||||||
|
name: Total Energy Production
|
||||||
|
total_generation_time:
|
||||||
|
name: Total Generation Time
|
||||||
|
today_generation_time:
|
||||||
|
name: Today Generation Time
|
||||||
|
inverter_module_temp:
|
||||||
|
name: Inverter Module Temp
|
||||||
|
inverter_inner_temp:
|
||||||
|
name: Inverter Inner Temp
|
||||||
|
inverter_bus_voltage:
|
||||||
|
name: Inverter BUS Voltage
|
||||||
|
insulation_of_pv_n_to_ground:
|
||||||
|
name: Insulation Of PV- To Ground
|
||||||
|
gfci_value:
|
||||||
|
name: GFCI Value
|
||||||
|
dci_of_r:
|
||||||
|
name: DCI Of R
|
||||||
|
dci_of_s:
|
||||||
|
name: DCI Of S
|
||||||
|
dci_of_t:
|
||||||
|
name: DCI Of T
|
@ -1,79 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_havells_solar
|
tx_pin: GPIO12
|
||||||
tx_pin: 17
|
rx_pin: GPIO14
|
||||||
rx_pin: 16
|
flow_control_pin: GPIO13
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
<<: !include common.yaml
|
||||||
flow_control_pin: 3
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: havells_solar
|
|
||||||
update_interval: 60s
|
|
||||||
phase_a:
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
phase_b:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase B
|
|
||||||
current:
|
|
||||||
name: Current Phase B
|
|
||||||
phase_c:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase C
|
|
||||||
current:
|
|
||||||
name: Current Phase C
|
|
||||||
pv1:
|
|
||||||
voltage:
|
|
||||||
name: PV1 Voltage
|
|
||||||
current:
|
|
||||||
name: PV1 Current
|
|
||||||
active_power:
|
|
||||||
name: PV1 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV1 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV1 Insulation Of +VE To Ground
|
|
||||||
pv2:
|
|
||||||
voltage:
|
|
||||||
name: PV2 Voltage
|
|
||||||
current:
|
|
||||||
name: PV2 Current
|
|
||||||
active_power:
|
|
||||||
name: PV2 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV2 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV2 Insulation Of +VE To Ground
|
|
||||||
active_power:
|
|
||||||
name: Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: Reactive Power
|
|
||||||
frequency:
|
|
||||||
name: Frequency
|
|
||||||
energy_production_day:
|
|
||||||
name: Today's Generation
|
|
||||||
total_energy_production:
|
|
||||||
name: Total Energy Production
|
|
||||||
total_generation_time:
|
|
||||||
name: Total Generation Time
|
|
||||||
today_generation_time:
|
|
||||||
name: Today Generation Time
|
|
||||||
inverter_module_temp:
|
|
||||||
name: Inverter Module Temp
|
|
||||||
inverter_inner_temp:
|
|
||||||
name: Inverter Inner Temp
|
|
||||||
inverter_bus_voltage:
|
|
||||||
name: Inverter BUS Voltage
|
|
||||||
insulation_of_pv_n_to_ground:
|
|
||||||
name: Insulation Of PV- To Ground
|
|
||||||
gfci_value:
|
|
||||||
name: GFCI Value
|
|
||||||
dci_of_r:
|
|
||||||
name: DCI Of R
|
|
||||||
dci_of_s:
|
|
||||||
name: DCI Of S
|
|
||||||
dci_of_t:
|
|
||||||
name: DCI Of T
|
|
||||||
|
@ -1,79 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_havells_solar
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
flow_control_pin: GPIO3
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
<<: !include common.yaml
|
||||||
flow_control_pin: 3
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: havells_solar
|
|
||||||
update_interval: 60s
|
|
||||||
phase_a:
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
phase_b:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase B
|
|
||||||
current:
|
|
||||||
name: Current Phase B
|
|
||||||
phase_c:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase C
|
|
||||||
current:
|
|
||||||
name: Current Phase C
|
|
||||||
pv1:
|
|
||||||
voltage:
|
|
||||||
name: PV1 Voltage
|
|
||||||
current:
|
|
||||||
name: PV1 Current
|
|
||||||
active_power:
|
|
||||||
name: PV1 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV1 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV1 Insulation Of +VE To Ground
|
|
||||||
pv2:
|
|
||||||
voltage:
|
|
||||||
name: PV2 Voltage
|
|
||||||
current:
|
|
||||||
name: PV2 Current
|
|
||||||
active_power:
|
|
||||||
name: PV2 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV2 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV2 Insulation Of +VE To Ground
|
|
||||||
active_power:
|
|
||||||
name: Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: Reactive Power
|
|
||||||
frequency:
|
|
||||||
name: Frequency
|
|
||||||
energy_production_day:
|
|
||||||
name: Today's Generation
|
|
||||||
total_energy_production:
|
|
||||||
name: Total Energy Production
|
|
||||||
total_generation_time:
|
|
||||||
name: Total Generation Time
|
|
||||||
today_generation_time:
|
|
||||||
name: Today Generation Time
|
|
||||||
inverter_module_temp:
|
|
||||||
name: Inverter Module Temp
|
|
||||||
inverter_inner_temp:
|
|
||||||
name: Inverter Inner Temp
|
|
||||||
inverter_bus_voltage:
|
|
||||||
name: Inverter BUS Voltage
|
|
||||||
insulation_of_pv_n_to_ground:
|
|
||||||
name: Insulation Of PV- To Ground
|
|
||||||
gfci_value:
|
|
||||||
name: GFCI Value
|
|
||||||
dci_of_r:
|
|
||||||
name: DCI Of R
|
|
||||||
dci_of_s:
|
|
||||||
name: DCI Of S
|
|
||||||
dci_of_t:
|
|
||||||
name: DCI Of T
|
|
||||||
|
@ -1,79 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_havells_solar
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
flow_control_pin: GPIO3
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
<<: !include common.yaml
|
||||||
flow_control_pin: 3
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: havells_solar
|
|
||||||
update_interval: 60s
|
|
||||||
phase_a:
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
phase_b:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase B
|
|
||||||
current:
|
|
||||||
name: Current Phase B
|
|
||||||
phase_c:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase C
|
|
||||||
current:
|
|
||||||
name: Current Phase C
|
|
||||||
pv1:
|
|
||||||
voltage:
|
|
||||||
name: PV1 Voltage
|
|
||||||
current:
|
|
||||||
name: PV1 Current
|
|
||||||
active_power:
|
|
||||||
name: PV1 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV1 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV1 Insulation Of +VE To Ground
|
|
||||||
pv2:
|
|
||||||
voltage:
|
|
||||||
name: PV2 Voltage
|
|
||||||
current:
|
|
||||||
name: PV2 Current
|
|
||||||
active_power:
|
|
||||||
name: PV2 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV2 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV2 Insulation Of +VE To Ground
|
|
||||||
active_power:
|
|
||||||
name: Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: Reactive Power
|
|
||||||
frequency:
|
|
||||||
name: Frequency
|
|
||||||
energy_production_day:
|
|
||||||
name: Today's Generation
|
|
||||||
total_energy_production:
|
|
||||||
name: Total Energy Production
|
|
||||||
total_generation_time:
|
|
||||||
name: Total Generation Time
|
|
||||||
today_generation_time:
|
|
||||||
name: Today Generation Time
|
|
||||||
inverter_module_temp:
|
|
||||||
name: Inverter Module Temp
|
|
||||||
inverter_inner_temp:
|
|
||||||
name: Inverter Inner Temp
|
|
||||||
inverter_bus_voltage:
|
|
||||||
name: Inverter BUS Voltage
|
|
||||||
insulation_of_pv_n_to_ground:
|
|
||||||
name: Insulation Of PV- To Ground
|
|
||||||
gfci_value:
|
|
||||||
name: GFCI Value
|
|
||||||
dci_of_r:
|
|
||||||
name: DCI Of R
|
|
||||||
dci_of_s:
|
|
||||||
name: DCI Of S
|
|
||||||
dci_of_t:
|
|
||||||
name: DCI Of T
|
|
||||||
|
@ -1,79 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_havells_solar
|
tx_pin: GPIO12
|
||||||
tx_pin: 17
|
rx_pin: GPIO14
|
||||||
rx_pin: 16
|
flow_control_pin: GPIO13
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
<<: !include common.yaml
|
||||||
flow_control_pin: 3
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: havells_solar
|
|
||||||
update_interval: 60s
|
|
||||||
phase_a:
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
phase_b:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase B
|
|
||||||
current:
|
|
||||||
name: Current Phase B
|
|
||||||
phase_c:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase C
|
|
||||||
current:
|
|
||||||
name: Current Phase C
|
|
||||||
pv1:
|
|
||||||
voltage:
|
|
||||||
name: PV1 Voltage
|
|
||||||
current:
|
|
||||||
name: PV1 Current
|
|
||||||
active_power:
|
|
||||||
name: PV1 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV1 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV1 Insulation Of +VE To Ground
|
|
||||||
pv2:
|
|
||||||
voltage:
|
|
||||||
name: PV2 Voltage
|
|
||||||
current:
|
|
||||||
name: PV2 Current
|
|
||||||
active_power:
|
|
||||||
name: PV2 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV2 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV2 Insulation Of +VE To Ground
|
|
||||||
active_power:
|
|
||||||
name: Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: Reactive Power
|
|
||||||
frequency:
|
|
||||||
name: Frequency
|
|
||||||
energy_production_day:
|
|
||||||
name: Today's Generation
|
|
||||||
total_energy_production:
|
|
||||||
name: Total Energy Production
|
|
||||||
total_generation_time:
|
|
||||||
name: Total Generation Time
|
|
||||||
today_generation_time:
|
|
||||||
name: Today Generation Time
|
|
||||||
inverter_module_temp:
|
|
||||||
name: Inverter Module Temp
|
|
||||||
inverter_inner_temp:
|
|
||||||
name: Inverter Inner Temp
|
|
||||||
inverter_bus_voltage:
|
|
||||||
name: Inverter BUS Voltage
|
|
||||||
insulation_of_pv_n_to_ground:
|
|
||||||
name: Insulation Of PV- To Ground
|
|
||||||
gfci_value:
|
|
||||||
name: GFCI Value
|
|
||||||
dci_of_r:
|
|
||||||
name: DCI Of R
|
|
||||||
dci_of_s:
|
|
||||||
name: DCI Of S
|
|
||||||
dci_of_t:
|
|
||||||
name: DCI Of T
|
|
||||||
|
@ -1,79 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_havells_solar
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
flow_control_pin: GPIO13
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
<<: !include common.yaml
|
||||||
flow_control_pin: 3
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: havells_solar
|
|
||||||
update_interval: 60s
|
|
||||||
phase_a:
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
phase_b:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase B
|
|
||||||
current:
|
|
||||||
name: Current Phase B
|
|
||||||
phase_c:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase C
|
|
||||||
current:
|
|
||||||
name: Current Phase C
|
|
||||||
pv1:
|
|
||||||
voltage:
|
|
||||||
name: PV1 Voltage
|
|
||||||
current:
|
|
||||||
name: PV1 Current
|
|
||||||
active_power:
|
|
||||||
name: PV1 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV1 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV1 Insulation Of +VE To Ground
|
|
||||||
pv2:
|
|
||||||
voltage:
|
|
||||||
name: PV2 Voltage
|
|
||||||
current:
|
|
||||||
name: PV2 Current
|
|
||||||
active_power:
|
|
||||||
name: PV2 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV2 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV2 Insulation Of +VE To Ground
|
|
||||||
active_power:
|
|
||||||
name: Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: Reactive Power
|
|
||||||
frequency:
|
|
||||||
name: Frequency
|
|
||||||
energy_production_day:
|
|
||||||
name: Today's Generation
|
|
||||||
total_energy_production:
|
|
||||||
name: Total Energy Production
|
|
||||||
total_generation_time:
|
|
||||||
name: Total Generation Time
|
|
||||||
today_generation_time:
|
|
||||||
name: Today Generation Time
|
|
||||||
inverter_module_temp:
|
|
||||||
name: Inverter Module Temp
|
|
||||||
inverter_inner_temp:
|
|
||||||
name: Inverter Inner Temp
|
|
||||||
inverter_bus_voltage:
|
|
||||||
name: Inverter BUS Voltage
|
|
||||||
insulation_of_pv_n_to_ground:
|
|
||||||
name: Insulation Of PV- To Ground
|
|
||||||
gfci_value:
|
|
||||||
name: GFCI Value
|
|
||||||
dci_of_r:
|
|
||||||
name: DCI Of R
|
|
||||||
dci_of_s:
|
|
||||||
name: DCI Of S
|
|
||||||
dci_of_t:
|
|
||||||
name: DCI Of T
|
|
||||||
|
@ -1,79 +1,6 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_havells_solar
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
flow_control_pin: GPIO3
|
||||||
baud_rate: 9600
|
|
||||||
|
|
||||||
modbus:
|
<<: !include common.yaml
|
||||||
flow_control_pin: 3
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: havells_solar
|
|
||||||
update_interval: 60s
|
|
||||||
phase_a:
|
|
||||||
voltage:
|
|
||||||
name: Phase A Voltage
|
|
||||||
current:
|
|
||||||
name: Phase A Current
|
|
||||||
phase_b:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase B
|
|
||||||
current:
|
|
||||||
name: Current Phase B
|
|
||||||
phase_c:
|
|
||||||
voltage:
|
|
||||||
name: Voltage Phase C
|
|
||||||
current:
|
|
||||||
name: Current Phase C
|
|
||||||
pv1:
|
|
||||||
voltage:
|
|
||||||
name: PV1 Voltage
|
|
||||||
current:
|
|
||||||
name: PV1 Current
|
|
||||||
active_power:
|
|
||||||
name: PV1 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV1 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV1 Insulation Of +VE To Ground
|
|
||||||
pv2:
|
|
||||||
voltage:
|
|
||||||
name: PV2 Voltage
|
|
||||||
current:
|
|
||||||
name: PV2 Current
|
|
||||||
active_power:
|
|
||||||
name: PV2 Active Power
|
|
||||||
voltage_sampled_by_secondary_cpu:
|
|
||||||
name: PV2 Voltage Sampled By Secondary CPU
|
|
||||||
insulation_of_p_to_ground:
|
|
||||||
name: PV2 Insulation Of +VE To Ground
|
|
||||||
active_power:
|
|
||||||
name: Active Power
|
|
||||||
reactive_power:
|
|
||||||
name: Reactive Power
|
|
||||||
frequency:
|
|
||||||
name: Frequency
|
|
||||||
energy_production_day:
|
|
||||||
name: Today's Generation
|
|
||||||
total_energy_production:
|
|
||||||
name: Total Energy Production
|
|
||||||
total_generation_time:
|
|
||||||
name: Total Generation Time
|
|
||||||
today_generation_time:
|
|
||||||
name: Today Generation Time
|
|
||||||
inverter_module_temp:
|
|
||||||
name: Inverter Module Temp
|
|
||||||
inverter_inner_temp:
|
|
||||||
name: Inverter Inner Temp
|
|
||||||
inverter_bus_voltage:
|
|
||||||
name: Inverter BUS Voltage
|
|
||||||
insulation_of_pv_n_to_ground:
|
|
||||||
name: Insulation Of PV- To Ground
|
|
||||||
gfci_value:
|
|
||||||
name: GFCI Value
|
|
||||||
dci_of_r:
|
|
||||||
name: DCI Of R
|
|
||||||
dci_of_s:
|
|
||||||
name: DCI Of S
|
|
||||||
dci_of_t:
|
|
||||||
name: DCI Of T
|
|
||||||
|
12
tests/components/hdc1080/common.yaml
Normal file
12
tests/components/hdc1080/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_hdc1080
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: hdc1080
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
||||||
|
update_interval: 15s
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hdc1080
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hdc1080
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hdc1080
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hdc1080
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hdc1080
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hdc1080
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hdc1080
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hdc1080
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hdc1080
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hdc1080
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hdc1080
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hdc1080
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
13
tests/components/he60r/common.yaml
Normal file
13
tests/components/he60r/common.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_he60r
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 1200
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
|
cover:
|
||||||
|
- platform: he60r
|
||||||
|
id: garage_door
|
||||||
|
name: Garage Door
|
||||||
|
open_duration: 14s
|
||||||
|
close_duration: 14s
|
@ -1,13 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_he60r
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 1200
|
|
||||||
parity: EVEN
|
|
||||||
|
|
||||||
cover:
|
<<: !include common.yaml
|
||||||
- platform: he60r
|
|
||||||
id: garage_door
|
|
||||||
name: Garage Door
|
|
||||||
open_duration: 14s
|
|
||||||
close_duration: 14s
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_he60r
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 1200
|
|
||||||
parity: EVEN
|
|
||||||
|
|
||||||
cover:
|
<<: !include common.yaml
|
||||||
- platform: he60r
|
|
||||||
id: garage_door
|
|
||||||
name: Garage Door
|
|
||||||
open_duration: 14s
|
|
||||||
close_duration: 14s
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_he60r
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 1200
|
|
||||||
parity: EVEN
|
|
||||||
|
|
||||||
cover:
|
<<: !include common.yaml
|
||||||
- platform: he60r
|
|
||||||
id: garage_door
|
|
||||||
name: Garage Door
|
|
||||||
open_duration: 14s
|
|
||||||
close_duration: 14s
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_he60r
|
tx_pin: GPIO17
|
||||||
tx_pin: 17
|
rx_pin: GPIO16
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 1200
|
|
||||||
parity: EVEN
|
|
||||||
|
|
||||||
cover:
|
<<: !include common.yaml
|
||||||
- platform: he60r
|
|
||||||
id: garage_door
|
|
||||||
name: Garage Door
|
|
||||||
open_duration: 14s
|
|
||||||
close_duration: 14s
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_he60r
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 1200
|
|
||||||
parity: EVEN
|
|
||||||
|
|
||||||
cover:
|
<<: !include common.yaml
|
||||||
- platform: he60r
|
|
||||||
id: garage_door
|
|
||||||
name: Garage Door
|
|
||||||
open_duration: 14s
|
|
||||||
close_duration: 14s
|
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_he60r
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 1200
|
|
||||||
parity: EVEN
|
|
||||||
|
|
||||||
cover:
|
<<: !include common.yaml
|
||||||
- platform: he60r
|
|
||||||
id: garage_door
|
|
||||||
name: Garage Door
|
|
||||||
open_duration: 14s
|
|
||||||
close_duration: 14s
|
|
||||||
|
26
tests/components/heatpumpir/common.yaml
Normal file
26
tests/components/heatpumpir/common.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: mitsubishi_heavy_zm
|
||||||
|
horizontal_default: left
|
||||||
|
vertical_default: up
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: daikin
|
||||||
|
horizontal_default: mleft
|
||||||
|
vertical_default: mup
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: panasonic_altdke
|
||||||
|
horizontal_default: mright
|
||||||
|
vertical_default: mdown
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
@ -1,26 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 6
|
pin: GPIO6
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: mitsubishi_heavy_zm
|
|
||||||
horizontal_default: left
|
|
||||||
vertical_default: up
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: daikin
|
|
||||||
horizontal_default: mleft
|
|
||||||
vertical_default: mup
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: panasonic_altdke
|
|
||||||
horizontal_default: mright
|
|
||||||
vertical_default: mdown
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
|
@ -1,19 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: mitsubishi_heavy_zm
|
|
||||||
horizontal_default: left
|
|
||||||
vertical_default: up
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: greeyt
|
|
||||||
horizontal_default: left
|
|
||||||
vertical_default: up
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
|
4
tests/components/heatpumpir/test.esp32-c3-ard.yaml
Normal file
4
tests/components/heatpumpir/test.esp32-c3-ard.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
pin: GPIO2
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
@ -1,19 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: mitsubishi_heavy_zm
|
|
||||||
horizontal_default: left
|
|
||||||
vertical_default: up
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
- platform: heatpumpir
|
|
||||||
protocol: greeyt
|
|
||||||
horizontal_default: left
|
|
||||||
vertical_default: up
|
|
||||||
name: HeatpumpIR Climate
|
|
||||||
min_temperature: 18
|
|
||||||
max_temperature: 30
|
|
||||||
|
7
tests/components/hitachi_ac344/common.yaml
Normal file
7
tests/components/hitachi_ac344/common.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: hitachi_ac344
|
||||||
|
name: Hitachi Climate
|
4
tests/components/hitachi_ac344/test.bk72xx-ard.yaml
Normal file
4
tests/components/hitachi_ac344/test.bk72xx-ard.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
pin: GPIO6
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac344
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac344
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac344
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac344
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac344
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
7
tests/components/hitachi_ac424/common.yaml
Normal file
7
tests/components/hitachi_ac424/common.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: ${pin}
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: hitachi_ac424
|
||||||
|
name: Hitachi Climate
|
4
tests/components/hitachi_ac424/test.bk72xx-ard.yaml
Normal file
4
tests/components/hitachi_ac424/test.bk72xx-ard.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
pin: GPIO6
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac424
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac424
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac424
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac424
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: hitachi_ac424
|
|
||||||
name: Hitachi Climate
|
|
||||||
|
21
tests/components/hlw8012/common.yaml
Normal file
21
tests/components/hlw8012/common.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: hlw8012
|
||||||
|
model: hlw8012
|
||||||
|
sel_pin: ${sel_pin}
|
||||||
|
cf_pin: ${cf_pin}
|
||||||
|
cf1_pin: ${cf1_pin}
|
||||||
|
current:
|
||||||
|
name: HLW8012 Current
|
||||||
|
voltage:
|
||||||
|
name: HLW8012 Voltage
|
||||||
|
power:
|
||||||
|
name: HLW8012 Power
|
||||||
|
id: hlw8012_power
|
||||||
|
energy:
|
||||||
|
name: HLW8012 Energy
|
||||||
|
id: hlw8012_energy
|
||||||
|
update_interval: 15s
|
||||||
|
current_resistor: 0.001 ohm
|
||||||
|
voltage_divider: 2351
|
||||||
|
change_mode_every: "never"
|
||||||
|
initial_mode: VOLTAGE
|
@ -1,21 +1,6 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: hlw8012
|
sel_pin: GPIO12
|
||||||
model: hlw8012
|
cf_pin: GPIO13
|
||||||
sel_pin: 12
|
cf1_pin: GPIO14
|
||||||
cf_pin: 14
|
|
||||||
cf1_pin: 13
|
<<: !include common.yaml
|
||||||
current:
|
|
||||||
name: HLW8012 Current
|
|
||||||
voltage:
|
|
||||||
name: HLW8012 Voltage
|
|
||||||
power:
|
|
||||||
name: HLW8012 Power
|
|
||||||
id: hlw8012_power
|
|
||||||
energy:
|
|
||||||
name: HLW8012 Energy
|
|
||||||
id: hlw8012_energy
|
|
||||||
update_interval: 15s
|
|
||||||
current_resistor: 0.001 ohm
|
|
||||||
voltage_divider: 2351
|
|
||||||
change_mode_every: "never"
|
|
||||||
initial_mode: VOLTAGE
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: hlw8012
|
sel_pin: GPIO2
|
||||||
model: hlw8012
|
cf_pin: GPIO3
|
||||||
sel_pin: 2
|
cf1_pin: GPIO4
|
||||||
cf_pin: 4
|
|
||||||
cf1_pin: 3
|
<<: !include common.yaml
|
||||||
current:
|
|
||||||
name: HLW8012 Current
|
|
||||||
voltage:
|
|
||||||
name: HLW8012 Voltage
|
|
||||||
power:
|
|
||||||
name: HLW8012 Power
|
|
||||||
id: hlw8012_power
|
|
||||||
energy:
|
|
||||||
name: HLW8012 Energy
|
|
||||||
id: hlw8012_energy
|
|
||||||
update_interval: 15s
|
|
||||||
current_resistor: 0.001 ohm
|
|
||||||
voltage_divider: 2351
|
|
||||||
change_mode_every: "never"
|
|
||||||
initial_mode: VOLTAGE
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: hlw8012
|
sel_pin: GPIO2
|
||||||
model: hlw8012
|
cf_pin: GPIO3
|
||||||
sel_pin: 2
|
cf1_pin: GPIO4
|
||||||
cf_pin: 4
|
|
||||||
cf1_pin: 3
|
<<: !include common.yaml
|
||||||
current:
|
|
||||||
name: HLW8012 Current
|
|
||||||
voltage:
|
|
||||||
name: HLW8012 Voltage
|
|
||||||
power:
|
|
||||||
name: HLW8012 Power
|
|
||||||
id: hlw8012_power
|
|
||||||
energy:
|
|
||||||
name: HLW8012 Energy
|
|
||||||
id: hlw8012_energy
|
|
||||||
update_interval: 15s
|
|
||||||
current_resistor: 0.001 ohm
|
|
||||||
voltage_divider: 2351
|
|
||||||
change_mode_every: "never"
|
|
||||||
initial_mode: VOLTAGE
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: hlw8012
|
sel_pin: GPIO12
|
||||||
model: hlw8012
|
cf_pin: GPIO13
|
||||||
sel_pin: 12
|
cf1_pin: GPIO14
|
||||||
cf_pin: 14
|
|
||||||
cf1_pin: 13
|
<<: !include common.yaml
|
||||||
current:
|
|
||||||
name: HLW8012 Current
|
|
||||||
voltage:
|
|
||||||
name: HLW8012 Voltage
|
|
||||||
power:
|
|
||||||
name: HLW8012 Power
|
|
||||||
id: hlw8012_power
|
|
||||||
energy:
|
|
||||||
name: HLW8012 Energy
|
|
||||||
id: hlw8012_energy
|
|
||||||
update_interval: 15s
|
|
||||||
current_resistor: 0.001 ohm
|
|
||||||
voltage_divider: 2351
|
|
||||||
change_mode_every: "never"
|
|
||||||
initial_mode: VOLTAGE
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: hlw8012
|
sel_pin: GPIO12
|
||||||
model: hlw8012
|
cf_pin: GPIO13
|
||||||
sel_pin: 12
|
cf1_pin: GPIO14
|
||||||
cf_pin: 14
|
|
||||||
cf1_pin: 13
|
<<: !include common.yaml
|
||||||
current:
|
|
||||||
name: HLW8012 Current
|
|
||||||
voltage:
|
|
||||||
name: HLW8012 Voltage
|
|
||||||
power:
|
|
||||||
name: HLW8012 Power
|
|
||||||
id: hlw8012_power
|
|
||||||
energy:
|
|
||||||
name: HLW8012 Energy
|
|
||||||
id: hlw8012_energy
|
|
||||||
update_interval: 15s
|
|
||||||
current_resistor: 0.001 ohm
|
|
||||||
voltage_divider: 2351
|
|
||||||
change_mode_every: "never"
|
|
||||||
initial_mode: VOLTAGE
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: hlw8012
|
sel_pin: GPIO2
|
||||||
model: hlw8012
|
cf_pin: GPIO3
|
||||||
sel_pin: 2
|
cf1_pin: GPIO4
|
||||||
cf_pin: 4
|
|
||||||
cf1_pin: 3
|
<<: !include common.yaml
|
||||||
current:
|
|
||||||
name: HLW8012 Current
|
|
||||||
voltage:
|
|
||||||
name: HLW8012 Voltage
|
|
||||||
power:
|
|
||||||
name: HLW8012 Power
|
|
||||||
id: hlw8012_power
|
|
||||||
energy:
|
|
||||||
name: HLW8012 Energy
|
|
||||||
id: hlw8012_energy
|
|
||||||
update_interval: 15s
|
|
||||||
current_resistor: 0.001 ohm
|
|
||||||
voltage_divider: 2351
|
|
||||||
change_mode_every: "never"
|
|
||||||
initial_mode: VOLTAGE
|
|
||||||
|
16
tests/components/hm3301/common.yaml
Normal file
16
tests/components/hm3301/common.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_hm3301
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: hm3301
|
||||||
|
pm_1_0:
|
||||||
|
name: PM1.0
|
||||||
|
pm_2_5:
|
||||||
|
name: PM2.5
|
||||||
|
pm_10_0:
|
||||||
|
name: PM10.0
|
||||||
|
aqi:
|
||||||
|
name: AQI
|
||||||
|
calculation_type: CAQI
|
@ -1,16 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hm3301
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hm3301
|
|
||||||
pm_1_0:
|
|
||||||
name: PM1.0
|
|
||||||
pm_2_5:
|
|
||||||
name: PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: PM10.0
|
|
||||||
aqi:
|
|
||||||
name: AQI
|
|
||||||
calculation_type: CAQI
|
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hm3301
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hm3301
|
|
||||||
pm_1_0:
|
|
||||||
name: PM1.0
|
|
||||||
pm_2_5:
|
|
||||||
name: PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: PM10.0
|
|
||||||
aqi:
|
|
||||||
name: AQI
|
|
||||||
calculation_type: CAQI
|
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hm3301
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hm3301
|
|
||||||
pm_1_0:
|
|
||||||
name: PM1.0
|
|
||||||
pm_2_5:
|
|
||||||
name: PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: PM10.0
|
|
||||||
aqi:
|
|
||||||
name: AQI
|
|
||||||
calculation_type: CAQI
|
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hm3301
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hm3301
|
|
||||||
pm_1_0:
|
|
||||||
name: PM1.0
|
|
||||||
pm_2_5:
|
|
||||||
name: PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: PM10.0
|
|
||||||
aqi:
|
|
||||||
name: AQI
|
|
||||||
calculation_type: CAQI
|
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hm3301
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hm3301
|
|
||||||
pm_1_0:
|
|
||||||
name: PM1.0
|
|
||||||
pm_2_5:
|
|
||||||
name: PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: PM10.0
|
|
||||||
aqi:
|
|
||||||
name: AQI
|
|
||||||
calculation_type: CAQI
|
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hm3301
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hm3301
|
|
||||||
pm_1_0:
|
|
||||||
name: PM1.0
|
|
||||||
pm_2_5:
|
|
||||||
name: PM2.5
|
|
||||||
pm_10_0:
|
|
||||||
name: PM10.0
|
|
||||||
aqi:
|
|
||||||
name: AQI
|
|
||||||
calculation_type: CAQI
|
|
||||||
|
19
tests/components/hmc5883l/common.yaml
Normal file
19
tests/components/hmc5883l/common.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_hmc5883l
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: hmc5883l
|
||||||
|
address: 0x68
|
||||||
|
field_strength_x:
|
||||||
|
name: HMC5883L Field Strength X
|
||||||
|
field_strength_y:
|
||||||
|
name: HMC5883L Field Strength Y
|
||||||
|
field_strength_z:
|
||||||
|
name: HMC5883L Field Strength Z
|
||||||
|
heading:
|
||||||
|
name: HMC5883L Heading
|
||||||
|
range: 130uT
|
||||||
|
oversampling: 8x
|
||||||
|
update_interval: 15s
|
@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hmc5883l
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hmc5883l
|
|
||||||
address: 0x68
|
|
||||||
field_strength_x:
|
|
||||||
name: HMC5883L Field Strength X
|
|
||||||
field_strength_y:
|
|
||||||
name: HMC5883L Field Strength Y
|
|
||||||
field_strength_z:
|
|
||||||
name: HMC5883L Field Strength Z
|
|
||||||
heading:
|
|
||||||
name: HMC5883L Heading
|
|
||||||
range: 130uT
|
|
||||||
oversampling: 8x
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hmc5883l
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hmc5883l
|
|
||||||
address: 0x68
|
|
||||||
field_strength_x:
|
|
||||||
name: HMC5883L Field Strength X
|
|
||||||
field_strength_y:
|
|
||||||
name: HMC5883L Field Strength Y
|
|
||||||
field_strength_z:
|
|
||||||
name: HMC5883L Field Strength Z
|
|
||||||
heading:
|
|
||||||
name: HMC5883L Heading
|
|
||||||
range: 130uT
|
|
||||||
oversampling: 8x
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hmc5883l
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hmc5883l
|
|
||||||
address: 0x68
|
|
||||||
field_strength_x:
|
|
||||||
name: HMC5883L Field Strength X
|
|
||||||
field_strength_y:
|
|
||||||
name: HMC5883L Field Strength Y
|
|
||||||
field_strength_z:
|
|
||||||
name: HMC5883L Field Strength Z
|
|
||||||
heading:
|
|
||||||
name: HMC5883L Heading
|
|
||||||
range: 130uT
|
|
||||||
oversampling: 8x
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hmc5883l
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hmc5883l
|
|
||||||
address: 0x68
|
|
||||||
field_strength_x:
|
|
||||||
name: HMC5883L Field Strength X
|
|
||||||
field_strength_y:
|
|
||||||
name: HMC5883L Field Strength Y
|
|
||||||
field_strength_z:
|
|
||||||
name: HMC5883L Field Strength Z
|
|
||||||
heading:
|
|
||||||
name: HMC5883L Heading
|
|
||||||
range: 130uT
|
|
||||||
oversampling: 8x
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hmc5883l
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hmc5883l
|
|
||||||
address: 0x68
|
|
||||||
field_strength_x:
|
|
||||||
name: HMC5883L Field Strength X
|
|
||||||
field_strength_y:
|
|
||||||
name: HMC5883L Field Strength Y
|
|
||||||
field_strength_z:
|
|
||||||
name: HMC5883L Field Strength Z
|
|
||||||
heading:
|
|
||||||
name: HMC5883L Heading
|
|
||||||
range: 130uT
|
|
||||||
oversampling: 8x
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hmc5883l
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hmc5883l
|
|
||||||
address: 0x68
|
|
||||||
field_strength_x:
|
|
||||||
name: HMC5883L Field Strength X
|
|
||||||
field_strength_y:
|
|
||||||
name: HMC5883L Field Strength Y
|
|
||||||
field_strength_z:
|
|
||||||
name: HMC5883L Field Strength Z
|
|
||||||
heading:
|
|
||||||
name: HMC5883L Heading
|
|
||||||
range: 130uT
|
|
||||||
oversampling: 8x
|
|
||||||
update_interval: 15s
|
|
||||||
|
12
tests/components/honeywell_hih_i2c/common.yaml
Normal file
12
tests/components/honeywell_hih_i2c/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_honeywell_hih
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: honeywell_hih_i2c
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
||||||
|
update_interval: 15s
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywell_hih
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywell_hih_i2c
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywell_hih
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywell_hih_i2c
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywell_hih
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywell_hih_i2c
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywell_hih
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywell_hih_i2c
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywell_hih
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywell_hih_i2c
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywell_hih
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywell_hih_i2c
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
update_interval: 15s
|
|
||||||
|
15
tests/components/honeywellabp/common.yaml
Normal file
15
tests/components/honeywellabp/common.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_bme280
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: honeywellabp
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
pressure:
|
||||||
|
name: Honeywell pressure
|
||||||
|
min_pressure: 0
|
||||||
|
max_pressure: 15
|
||||||
|
temperature:
|
||||||
|
name: Honeywell temperature
|
@ -1,15 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp
|
|
||||||
cs_pin: 12
|
|
||||||
pressure:
|
|
||||||
name: Honeywell pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 15
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_honeywellabp
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp
|
|
||||||
cs_pin: 8
|
|
||||||
pressure:
|
|
||||||
name: Honeywell pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 15
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_honeywellabp
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp
|
|
||||||
cs_pin: 8
|
|
||||||
pressure:
|
|
||||||
name: Honeywell pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 15
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp
|
|
||||||
cs_pin: 12
|
|
||||||
pressure:
|
|
||||||
name: Honeywell pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 15
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin: GPIO15
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp
|
|
||||||
cs_pin: 15
|
|
||||||
pressure:
|
|
||||||
name: Honeywell pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 15
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_bme280
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp
|
|
||||||
cs_pin: 6
|
|
||||||
pressure:
|
|
||||||
name: Honeywell pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 15
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
15
tests/components/honeywellabp2_i2c/common.yaml
Normal file
15
tests/components/honeywellabp2_i2c/common.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_honeywellabp2
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: honeywellabp2_i2c
|
||||||
|
address: 0x28
|
||||||
|
pressure:
|
||||||
|
name: Honeywell2 pressure
|
||||||
|
min_pressure: 0
|
||||||
|
max_pressure: 16000
|
||||||
|
transfer_function: A
|
||||||
|
temperature:
|
||||||
|
name: Honeywell temperature
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywellabp2
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp2_i2c
|
|
||||||
address: 0x28
|
|
||||||
pressure:
|
|
||||||
name: Honeywell2 pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 16000
|
|
||||||
transfer_function: A
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywellabp2
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp2_i2c
|
|
||||||
address: 0x28
|
|
||||||
pressure:
|
|
||||||
name: Honeywell2 pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 16000
|
|
||||||
transfer_function: A
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywellabp2
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp2_i2c
|
|
||||||
address: 0x28
|
|
||||||
pressure:
|
|
||||||
name: Honeywell2 pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 16000
|
|
||||||
transfer_function: A
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywellabp2
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp2_i2c
|
|
||||||
address: 0x28
|
|
||||||
pressure:
|
|
||||||
name: Honeywell2 pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 16000
|
|
||||||
transfer_function: A
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywellabp2
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp2_i2c
|
|
||||||
address: 0x28
|
|
||||||
pressure:
|
|
||||||
name: Honeywell2 pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 16000
|
|
||||||
transfer_function: A
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_honeywellabp2
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: honeywellabp2_i2c
|
|
||||||
address: 0x28
|
|
||||||
pressure:
|
|
||||||
name: Honeywell2 pressure
|
|
||||||
min_pressure: 0
|
|
||||||
max_pressure: 16000
|
|
||||||
transfer_function: A
|
|
||||||
temperature:
|
|
||||||
name: Honeywell temperature
|
|
||||||
|
10
tests/components/hrxl_maxsonar_wr/common.yaml
Normal file
10
tests/components/hrxl_maxsonar_wr/common.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
uart:
|
||||||
|
- id: uart_hrxl_maxsonar_wr
|
||||||
|
tx_pin: ${tx_pin}
|
||||||
|
rx_pin: ${rx_pin}
|
||||||
|
baud_rate: 115200
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: hrxl_maxsonar_wr
|
||||||
|
id: hrxl_maxsonar_wr_sensor
|
||||||
|
name: Rainwater Tank Level
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_hrxl_maxsonar_wr
|
tx_pin: GPIO12
|
||||||
tx_pin: 17
|
rx_pin: GPIO14
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hrxl_maxsonar_wr
|
|
||||||
id: hrxl_maxsonar_wr_sensor
|
|
||||||
name: Rainwater Tank Level
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_hrxl_maxsonar_wr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hrxl_maxsonar_wr
|
|
||||||
id: hrxl_maxsonar_wr_sensor
|
|
||||||
name: Rainwater Tank Level
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_hrxl_maxsonar_wr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hrxl_maxsonar_wr
|
|
||||||
id: hrxl_maxsonar_wr_sensor
|
|
||||||
name: Rainwater Tank Level
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_hrxl_maxsonar_wr
|
tx_pin: GPIO12
|
||||||
tx_pin: 17
|
rx_pin: GPIO14
|
||||||
rx_pin: 16
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hrxl_maxsonar_wr
|
|
||||||
id: hrxl_maxsonar_wr_sensor
|
|
||||||
name: Rainwater Tank Level
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_hrxl_maxsonar_wr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hrxl_maxsonar_wr
|
|
||||||
id: hrxl_maxsonar_wr_sensor
|
|
||||||
name: Rainwater Tank Level
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
uart:
|
substitutions:
|
||||||
- id: uart_hrxl_maxsonar_wr
|
tx_pin: GPIO4
|
||||||
tx_pin: 4
|
rx_pin: GPIO5
|
||||||
rx_pin: 5
|
|
||||||
baud_rate: 115200
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hrxl_maxsonar_wr
|
|
||||||
id: hrxl_maxsonar_wr_sensor
|
|
||||||
name: Rainwater Tank Level
|
|
||||||
|
12
tests/components/hte501/common.yaml
Normal file
12
tests/components/hte501/common.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_hte501
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: hte501
|
||||||
|
address: 0x40
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hte501
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hte501
|
|
||||||
address: 0x40
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hte501
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hte501
|
|
||||||
address: 0x40
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hte501
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hte501
|
|
||||||
address: 0x40
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hte501
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hte501
|
|
||||||
address: 0x40
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hte501
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hte501
|
|
||||||
address: 0x40
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_hte501
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: hte501
|
|
||||||
address: 0x40
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
|
15
tests/components/htu21d/common.yaml
Normal file
15
tests/components/htu21d/common.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_htu21d
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: htu21d
|
||||||
|
model: htu21d
|
||||||
|
temperature:
|
||||||
|
name: Temperature
|
||||||
|
humidity:
|
||||||
|
name: Humidity
|
||||||
|
heater:
|
||||||
|
name: Heater
|
||||||
|
update_interval: 15s
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_htu21d
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: htu21d
|
|
||||||
model: htu21d
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
heater:
|
|
||||||
name: Heater
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_htu21d
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: htu21d
|
|
||||||
model: htu21d
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
heater:
|
|
||||||
name: Heater
|
|
||||||
update_interval: 15s
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_htu21d
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: htu21d
|
|
||||||
model: htu21d
|
|
||||||
temperature:
|
|
||||||
name: Temperature
|
|
||||||
humidity:
|
|
||||||
name: Humidity
|
|
||||||
heater:
|
|
||||||
name: Heater
|
|
||||||
update_interval: 15s
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user