mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (H) (#8198)
This commit is contained in:
		
							
								
								
									
										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: | ||||
|   - id: uart_havells_solar | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|   flow_control_pin: GPIO13 | ||||
|  | ||||
| modbus: | ||||
|   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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,79 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_havells_solar | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|   flow_control_pin: GPIO3 | ||||
|  | ||||
| modbus: | ||||
|   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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,79 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_havells_solar | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|   flow_control_pin: GPIO3 | ||||
|  | ||||
| modbus: | ||||
|   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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,79 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_havells_solar | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|   flow_control_pin: GPIO13 | ||||
|  | ||||
| modbus: | ||||
|   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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,79 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_havells_solar | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|   flow_control_pin: GPIO13 | ||||
|  | ||||
| modbus: | ||||
|   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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,79 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_havells_solar | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|   flow_control_pin: GPIO3 | ||||
|  | ||||
| modbus: | ||||
|   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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_hdc1080 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hdc1080 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hdc1080 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hdc1080 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hdc1080 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hdc1080 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hdc1080 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hdc1080 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hdc1080 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hdc1080 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hdc1080 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hdc1080 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: uart_he60r | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 1200 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| cover: | ||||
|   - platform: he60r | ||||
|     id: garage_door | ||||
|     name: Garage Door | ||||
|     open_duration: 14s | ||||
|     close_duration: 14s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_he60r | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 1200 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| cover: | ||||
|   - platform: he60r | ||||
|     id: garage_door | ||||
|     name: Garage Door | ||||
|     open_duration: 14s | ||||
|     close_duration: 14s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_he60r | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 1200 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| cover: | ||||
|   - platform: he60r | ||||
|     id: garage_door | ||||
|     name: Garage Door | ||||
|     open_duration: 14s | ||||
|     close_duration: 14s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_he60r | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 1200 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| cover: | ||||
|   - platform: he60r | ||||
|     id: garage_door | ||||
|     name: Garage Door | ||||
|     open_duration: 14s | ||||
|     close_duration: 14s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_he60r | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 1200 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| cover: | ||||
|   - platform: he60r | ||||
|     id: garage_door | ||||
|     name: Garage Door | ||||
|     open_duration: 14s | ||||
|     close_duration: 14s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_he60r | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 1200 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| cover: | ||||
|   - platform: he60r | ||||
|     id: garage_door | ||||
|     name: Garage Door | ||||
|     open_duration: 14s | ||||
|     close_duration: 14s | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   pin: 6 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO6 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| 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: greeyt | ||||
|     horizontal_default: left | ||||
|     vertical_default: up | ||||
|     name: HeatpumpIR Climate | ||||
|     min_temperature: 18 | ||||
|     max_temperature: 30 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   pin: 5 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO5 | ||||
|  | ||||
| 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: greeyt | ||||
|     horizontal_default: left | ||||
|     vertical_default: up | ||||
|     name: HeatpumpIR Climate | ||||
|     min_temperature: 18 | ||||
|     max_temperature: 30 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac344 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac344 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac344 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac344 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 5 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO5 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac344 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac424 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac424 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac424 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac424 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,7 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 5 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO5 | ||||
|  | ||||
| climate: | ||||
|   - platform: hitachi_ac424 | ||||
|     name: Hitachi Climate | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - platform: hlw8012 | ||||
|     model: hlw8012 | ||||
|     sel_pin: 12 | ||||
|     cf_pin: 14 | ||||
|     cf1_pin: 13 | ||||
|     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 | ||||
| substitutions: | ||||
|   sel_pin: GPIO12 | ||||
|   cf_pin: GPIO13 | ||||
|   cf1_pin: GPIO14 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,21 +1,6 @@ | ||||
| sensor: | ||||
|   - platform: hlw8012 | ||||
|     model: hlw8012 | ||||
|     sel_pin: 2 | ||||
|     cf_pin: 4 | ||||
|     cf1_pin: 3 | ||||
|     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 | ||||
| substitutions: | ||||
|   sel_pin: GPIO2 | ||||
|   cf_pin: GPIO3 | ||||
|   cf1_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,21 +1,6 @@ | ||||
| sensor: | ||||
|   - platform: hlw8012 | ||||
|     model: hlw8012 | ||||
|     sel_pin: 2 | ||||
|     cf_pin: 4 | ||||
|     cf1_pin: 3 | ||||
|     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 | ||||
| substitutions: | ||||
|   sel_pin: GPIO2 | ||||
|   cf_pin: GPIO3 | ||||
|   cf1_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,21 +1,6 @@ | ||||
| sensor: | ||||
|   - platform: hlw8012 | ||||
|     model: hlw8012 | ||||
|     sel_pin: 12 | ||||
|     cf_pin: 14 | ||||
|     cf1_pin: 13 | ||||
|     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 | ||||
| substitutions: | ||||
|   sel_pin: GPIO12 | ||||
|   cf_pin: GPIO13 | ||||
|   cf1_pin: GPIO14 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,21 +1,6 @@ | ||||
| sensor: | ||||
|   - platform: hlw8012 | ||||
|     model: hlw8012 | ||||
|     sel_pin: 12 | ||||
|     cf_pin: 14 | ||||
|     cf1_pin: 13 | ||||
|     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 | ||||
| substitutions: | ||||
|   sel_pin: GPIO12 | ||||
|   cf_pin: GPIO13 | ||||
|   cf1_pin: GPIO14 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,21 +1,6 @@ | ||||
| sensor: | ||||
|   - platform: hlw8012 | ||||
|     model: hlw8012 | ||||
|     sel_pin: 2 | ||||
|     cf_pin: 4 | ||||
|     cf1_pin: 3 | ||||
|     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 | ||||
| substitutions: | ||||
|   sel_pin: GPIO2 | ||||
|   cf_pin: GPIO3 | ||||
|   cf1_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_hm3301 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hm3301 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hm3301 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hm3301 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hm3301 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hm3301 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_hmc5883l | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hmc5883l | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hmc5883l | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hmc5883l | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hmc5883l | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hmc5883l | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| 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 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_honeywell_hih | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywell_hih_i2c | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywell_hih | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywell_hih_i2c | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywell_hih | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywell_hih_i2c | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywell_hih | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywell_hih_i2c | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywell_hih | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywell_hih_i2c | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywell_hih | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywell_hih_i2c | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   miso_pin: GPIO15 | ||||
|   cs_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp | ||||
|     cs_pin: 12 | ||||
|     pressure: | ||||
|       name: Honeywell pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 15 | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_honeywellabp | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   miso_pin: GPIO5 | ||||
|   cs_pin: GPIO8 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp | ||||
|     cs_pin: 8 | ||||
|     pressure: | ||||
|       name: Honeywell pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 15 | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_honeywellabp | ||||
|     clk_pin: 6 | ||||
|     mosi_pin: 7 | ||||
|     miso_pin: 5 | ||||
| substitutions: | ||||
|   clk_pin: GPIO6 | ||||
|   mosi_pin: GPIO7 | ||||
|   miso_pin: GPIO5 | ||||
|   cs_pin: GPIO8 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp | ||||
|     cs_pin: 8 | ||||
|     pressure: | ||||
|       name: Honeywell pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 15 | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 16 | ||||
|     mosi_pin: 17 | ||||
|     miso_pin: 15 | ||||
| substitutions: | ||||
|   clk_pin: GPIO16 | ||||
|   mosi_pin: GPIO17 | ||||
|   miso_pin: GPIO15 | ||||
|   cs_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp | ||||
|     cs_pin: 12 | ||||
|     pressure: | ||||
|       name: Honeywell pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 15 | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 14 | ||||
|     mosi_pin: 13 | ||||
|     miso_pin: 12 | ||||
| substitutions: | ||||
|   clk_pin: GPIO14 | ||||
|   mosi_pin: GPIO13 | ||||
|   miso_pin: GPIO12 | ||||
|   cs_pin: GPIO15 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp | ||||
|     cs_pin: 15 | ||||
|     pressure: | ||||
|       name: Honeywell pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 15 | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,7 @@ | ||||
| spi: | ||||
|   - id: spi_bme280 | ||||
|     clk_pin: 2 | ||||
|     mosi_pin: 3 | ||||
|     miso_pin: 4 | ||||
| substitutions: | ||||
|   clk_pin: GPIO2 | ||||
|   mosi_pin: GPIO3 | ||||
|   miso_pin: GPIO4 | ||||
|   cs_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp | ||||
|     cs_pin: 6 | ||||
|     pressure: | ||||
|       name: Honeywell pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 15 | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_honeywellabp2 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp2_i2c | ||||
|     address: 0x28 | ||||
|     pressure: | ||||
|       name: Honeywell2 pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 16000 | ||||
|       transfer_function: A | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywellabp2 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp2_i2c | ||||
|     address: 0x28 | ||||
|     pressure: | ||||
|       name: Honeywell2 pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 16000 | ||||
|       transfer_function: A | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywellabp2 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp2_i2c | ||||
|     address: 0x28 | ||||
|     pressure: | ||||
|       name: Honeywell2 pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 16000 | ||||
|       transfer_function: A | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywellabp2 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp2_i2c | ||||
|     address: 0x28 | ||||
|     pressure: | ||||
|       name: Honeywell2 pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 16000 | ||||
|       transfer_function: A | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywellabp2 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp2_i2c | ||||
|     address: 0x28 | ||||
|     pressure: | ||||
|       name: Honeywell2 pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 16000 | ||||
|       transfer_function: A | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_honeywellabp2 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: honeywellabp2_i2c | ||||
|     address: 0x28 | ||||
|     pressure: | ||||
|       name: Honeywell2 pressure | ||||
|       min_pressure: 0 | ||||
|       max_pressure: 16000 | ||||
|       transfer_function: A | ||||
|     temperature: | ||||
|       name: Honeywell temperature | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: uart_hrxl_maxsonar_wr | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 115200 | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hrxl_maxsonar_wr | ||||
|     id: hrxl_maxsonar_wr_sensor | ||||
|     name: Rainwater Tank Level | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_hrxl_maxsonar_wr | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 115200 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hrxl_maxsonar_wr | ||||
|     id: hrxl_maxsonar_wr_sensor | ||||
|     name: Rainwater Tank Level | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_hrxl_maxsonar_wr | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 115200 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hrxl_maxsonar_wr | ||||
|     id: hrxl_maxsonar_wr_sensor | ||||
|     name: Rainwater Tank Level | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_hrxl_maxsonar_wr | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 115200 | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hrxl_maxsonar_wr | ||||
|     id: hrxl_maxsonar_wr_sensor | ||||
|     name: Rainwater Tank Level | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_hrxl_maxsonar_wr | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 115200 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hrxl_maxsonar_wr | ||||
|     id: hrxl_maxsonar_wr_sensor | ||||
|     name: Rainwater Tank Level | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_hrxl_maxsonar_wr | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 115200 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hrxl_maxsonar_wr | ||||
|     id: hrxl_maxsonar_wr_sensor | ||||
|     name: Rainwater Tank Level | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_hte501 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hte501 | ||||
|     address: 0x40 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hte501 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hte501 | ||||
|     address: 0x40 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hte501 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hte501 | ||||
|     address: 0x40 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hte501 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hte501 | ||||
|     address: 0x40 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hte501 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hte501 | ||||
|     address: 0x40 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_hte501 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: hte501 | ||||
|     address: 0x40 | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										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: | ||||
|   - id: i2c_htu21d | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: htu21d | ||||
|     model: htu21d | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     heater: | ||||
|       name: Heater | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_htu21d | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: htu21d | ||||
|     model: htu21d | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     heater: | ||||
|       name: Heater | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_htu21d | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: htu21d | ||||
|     model: htu21d | ||||
|     temperature: | ||||
|       name: Temperature | ||||
|     humidity: | ||||
|       name: Humidity | ||||
|     heater: | ||||
|       name: Heater | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user