mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	[CI] Consolidate some tests (E) (#8191)
This commit is contained in:
		
							
								
								
									
										14
									
								
								tests/components/e131/common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/components/e131/common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <<: !include common.yaml | ||||
|  | ||||
| light: | ||||
|   - platform: ${light_platform} | ||||
|     id: led_matrix_32x8 | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     rgb_order: GRB | ||||
|     num_leds: 256 | ||||
|     pin: ${pin} | ||||
|     rmt_channel: 0 | ||||
|     effects: | ||||
|       - e131: | ||||
|           universe: 1 | ||||
							
								
								
									
										13
									
								
								tests/components/e131/common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/e131/common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <<: !include common.yaml | ||||
|  | ||||
| light: | ||||
|   - platform: ${light_platform} | ||||
|     id: led_matrix_32x8 | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     rgb_order: GRB | ||||
|     num_leds: 256 | ||||
|     pin: ${pin} | ||||
|     effects: | ||||
|       - e131: | ||||
|           universe: 1 | ||||
							
								
								
									
										5
									
								
								tests/components/e131/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/e131/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
|  | ||||
| e131: | ||||
| @@ -1,18 +1,5 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| e131: | ||||
|  | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_matrix_32x8 | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     rgb_order: GRB | ||||
|     num_leds: 256 | ||||
|     pin: 2 | ||||
|     rmt_channel: 0 | ||||
|     effects: | ||||
|       - e131: | ||||
|           universe: 1 | ||||
| <<: !include common-ard.yaml | ||||
|   | ||||
| @@ -1,18 +1,5 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| e131: | ||||
|  | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_matrix_32x8 | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     rgb_order: GRB | ||||
|     num_leds: 256 | ||||
|     pin: 2 | ||||
|     rmt_channel: 0 | ||||
|     effects: | ||||
|       - e131: | ||||
|           universe: 1 | ||||
| <<: !include common-ard.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| e131: | ||||
|  | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_matrix_32x8 | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     rgb_order: GRB | ||||
|     num_leds: 256 | ||||
|     pin: 2 | ||||
|     effects: | ||||
|       - e131: | ||||
|           universe: 1 | ||||
| <<: !include common-idf.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
| substitutions: | ||||
|   light_platform: esp32_rmt_led_strip | ||||
|   pin: GPIO2 | ||||
|  | ||||
| e131: | ||||
|  | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_matrix_32x8 | ||||
|     default_transition_length: 500ms | ||||
|     chipset: ws2812 | ||||
|     rgb_order: GRB | ||||
|     num_leds: 256 | ||||
|     pin: 2 | ||||
|     effects: | ||||
|       - e131: | ||||
|           universe: 1 | ||||
| <<: !include common-idf.yaml | ||||
|   | ||||
| @@ -1,8 +1,4 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
|  | ||||
| e131: | ||||
| <<: !include common.yaml | ||||
|  | ||||
| light: | ||||
|   - platform: neopixelbus | ||||
|   | ||||
| @@ -1,8 +1,4 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
|  | ||||
| e131: | ||||
| <<: !include common.yaml | ||||
|  | ||||
| light: | ||||
|   - platform: rp2040_pio_led_strip | ||||
|   | ||||
							
								
								
									
										14
									
								
								tests/components/ee895/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/components/ee895/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| @@ -1,14 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ee895 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ee895 | ||||
|     address: 0x5F | ||||
|     co2: | ||||
|       name: EE895 CO2 | ||||
|     temperature: | ||||
|       name: EE895 Temperature | ||||
|     pressure: | ||||
|       name: EE895 Pressure | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										24
									
								
								tests/components/ektf2232/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/ektf2232/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: ${reset_pin} | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: ${interrupt_pin} | ||||
|     rts_pin: ${rts_pin} | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| @@ -1,24 +1,8 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|   reset_pin: GPIO13 | ||||
|   interrupt_pin: GPIO14 | ||||
|   rts_pin: GPIO15 | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: 13 | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: 14 | ||||
|     rts_pin: 15 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,24 +1,8 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO3 | ||||
|   interrupt_pin: GPIO6 | ||||
|   rts_pin: GPIO7 | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: 3 | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: 6 | ||||
|     rts_pin: 7 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,24 +1,8 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO3 | ||||
|   interrupt_pin: GPIO6 | ||||
|   rts_pin: GPIO7 | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: 3 | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: 6 | ||||
|     rts_pin: 7 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,24 +1,8 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|   reset_pin: GPIO13 | ||||
|   interrupt_pin: GPIO14 | ||||
|   rts_pin: GPIO15 | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: 13 | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: 14 | ||||
|     rts_pin: 15 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,24 +1,8 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO3 | ||||
|   interrupt_pin: GPIO12 | ||||
|   rts_pin: GPIO13 | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: 3 | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: 12 | ||||
|     rts_pin: 13 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,24 +1,8 @@ | ||||
| i2c: | ||||
|   - id: i2c_ektf2232 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO3 | ||||
|   interrupt_pin: GPIO6 | ||||
|   rts_pin: GPIO7 | ||||
|  | ||||
| display: | ||||
|   - platform: ssd1306_i2c | ||||
|     id: ssd1306_display | ||||
|     model: SSD1306_128X64 | ||||
|     reset_pin: 3 | ||||
|     pages: | ||||
|       - id: page1 | ||||
|         lambda: |- | ||||
|           it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| touchscreen: | ||||
|   - platform: ektf2232 | ||||
|     interrupt_pin: 6 | ||||
|     rts_pin: 7 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										25
									
								
								tests/components/emc2101/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/components/emc2101/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										12
									
								
								tests/components/ens210/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/components/ens210/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,12 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ens210 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ens210 | ||||
|     temperature: | ||||
|       name: ENS210 Temperature | ||||
|     humidity: | ||||
|       name: ENS210 Humidity | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										45
									
								
								tests/components/esp32_can/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								tests/components/esp32_can/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,45 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - canbus.send: | ||||
|           # Extended ID explicit | ||||
|           use_extended_id: true | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
|       - canbus.send: | ||||
|           # Standard ID by default | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
|  | ||||
| canbus: | ||||
|   - platform: esp32_can | ||||
|     id: esp32_internal_can | ||||
|     rx_pin: ${rx_pin} | ||||
|     tx_pin: ${tx_pin} | ||||
|     can_id: 4 | ||||
|     bit_rate: 50kbps | ||||
|     on_frame: | ||||
|       - can_id: 500 | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               std::string b(x.begin(), x.end()); | ||||
|               ESP_LOGD("canid 500", "%s", b.c_str() ); | ||||
|       - can_id: 0b00000000000000000000001000000 | ||||
|         can_id_mask: 0b11111000000000011111111000000 | ||||
|         use_extended_id: true | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               auto pdo_id = can_id >> 14; | ||||
|               switch (pdo_id) | ||||
|               { | ||||
|                 case 117: | ||||
|                   ESP_LOGD("canbus", "exhaust_fan_duty"); | ||||
|                   break; | ||||
|                 case 118: | ||||
|                   ESP_LOGD("canbus", "supply_fan_duty"); | ||||
|                   break; | ||||
|                 case 119: | ||||
|                   ESP_LOGD("canbus", "supply_fan_flow"); | ||||
|                   break; | ||||
|                 // to be continued... | ||||
|               } | ||||
| @@ -1,45 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - canbus.send: | ||||
|           # Extended ID explicit | ||||
|           use_extended_id: true | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
|       - canbus.send: | ||||
|           # Standard ID by default | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| canbus: | ||||
|   - platform: esp32_can | ||||
|     id: esp32_internal_can | ||||
|     rx_pin: 13 | ||||
|     tx_pin: 14 | ||||
|     can_id: 4 | ||||
|     bit_rate: 50kbps | ||||
|     on_frame: | ||||
|       - can_id: 500 | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               std::string b(x.begin(), x.end()); | ||||
|               ESP_LOGD("canid 500", "%s", b.c_str() ); | ||||
|       - can_id: 0b00000000000000000000001000000 | ||||
|         can_id_mask: 0b11111000000000011111111000000 | ||||
|         use_extended_id: true | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               auto pdo_id = can_id >> 14; | ||||
|               switch (pdo_id) | ||||
|               { | ||||
|                 case 117: | ||||
|                   ESP_LOGD("canbus", "exhaust_fan_duty"); | ||||
|                   break; | ||||
|                 case 118: | ||||
|                   ESP_LOGD("canbus", "supply_fan_duty"); | ||||
|                   break; | ||||
|                 case 119: | ||||
|                   ESP_LOGD("canbus", "supply_fan_flow"); | ||||
|                   break; | ||||
|                 // to be continued... | ||||
|               } | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,45 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - canbus.send: | ||||
|           # Extended ID explicit | ||||
|           use_extended_id: true | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
|       - canbus.send: | ||||
|           # Standard ID by default | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
| substitutions: | ||||
|   tx_pin: GPIO7 | ||||
|   rx_pin: GPIO8 | ||||
|  | ||||
| canbus: | ||||
|   - platform: esp32_can | ||||
|     id: esp32_internal_can | ||||
|     rx_pin: 4 | ||||
|     tx_pin: 5 | ||||
|     can_id: 4 | ||||
|     bit_rate: 50kbps | ||||
|     on_frame: | ||||
|       - can_id: 500 | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               std::string b(x.begin(), x.end()); | ||||
|               ESP_LOGD("canid 500", "%s", b.c_str() ); | ||||
|       - can_id: 0b00000000000000000000001000000 | ||||
|         can_id_mask: 0b11111000000000011111111000000 | ||||
|         use_extended_id: true | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               auto pdo_id = can_id >> 14; | ||||
|               switch (pdo_id) | ||||
|               { | ||||
|                 case 117: | ||||
|                   ESP_LOGD("canbus", "exhaust_fan_duty"); | ||||
|                   break; | ||||
|                 case 118: | ||||
|                   ESP_LOGD("canbus", "supply_fan_duty"); | ||||
|                   break; | ||||
|                 case 119: | ||||
|                   ESP_LOGD("canbus", "supply_fan_flow"); | ||||
|                   break; | ||||
|                 // to be continued... | ||||
|               } | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,45 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - canbus.send: | ||||
|           # Extended ID explicit | ||||
|           use_extended_id: true | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
|       - canbus.send: | ||||
|           # Standard ID by default | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
| substitutions: | ||||
|   tx_pin: GPIO7 | ||||
|   rx_pin: GPIO8 | ||||
|  | ||||
| canbus: | ||||
|   - platform: esp32_can | ||||
|     id: esp32_internal_can | ||||
|     rx_pin: 4 | ||||
|     tx_pin: 5 | ||||
|     can_id: 4 | ||||
|     bit_rate: 50kbps | ||||
|     on_frame: | ||||
|       - can_id: 500 | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               std::string b(x.begin(), x.end()); | ||||
|               ESP_LOGD("canid 500", "%s", b.c_str() ); | ||||
|       - can_id: 0b00000000000000000000001000000 | ||||
|         can_id_mask: 0b11111000000000011111111000000 | ||||
|         use_extended_id: true | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               auto pdo_id = can_id >> 14; | ||||
|               switch (pdo_id) | ||||
|               { | ||||
|                 case 117: | ||||
|                   ESP_LOGD("canbus", "exhaust_fan_duty"); | ||||
|                   break; | ||||
|                 case 118: | ||||
|                   ESP_LOGD("canbus", "supply_fan_duty"); | ||||
|                   break; | ||||
|                 case 119: | ||||
|                   ESP_LOGD("canbus", "supply_fan_flow"); | ||||
|                   break; | ||||
|                 // to be continued... | ||||
|               } | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,45 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - canbus.send: | ||||
|           # Extended ID explicit | ||||
|           use_extended_id: true | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
|       - canbus.send: | ||||
|           # Standard ID by default | ||||
|           can_id: 0x100 | ||||
|           data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| canbus: | ||||
|   - platform: esp32_can | ||||
|     id: esp32_internal_can | ||||
|     rx_pin: 13 | ||||
|     tx_pin: 14 | ||||
|     can_id: 4 | ||||
|     bit_rate: 50kbps | ||||
|     on_frame: | ||||
|       - can_id: 500 | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               std::string b(x.begin(), x.end()); | ||||
|               ESP_LOGD("canid 500", "%s", b.c_str() ); | ||||
|       - can_id: 0b00000000000000000000001000000 | ||||
|         can_id_mask: 0b11111000000000011111111000000 | ||||
|         use_extended_id: true | ||||
|         then: | ||||
|           - lambda: |- | ||||
|               auto pdo_id = can_id >> 14; | ||||
|               switch (pdo_id) | ||||
|               { | ||||
|                 case 117: | ||||
|                   ESP_LOGD("canbus", "exhaust_fan_duty"); | ||||
|                   break; | ||||
|                 case 118: | ||||
|                   ESP_LOGD("canbus", "supply_fan_duty"); | ||||
|                   break; | ||||
|                 case 119: | ||||
|                   ESP_LOGD("canbus", "supply_fan_flow"); | ||||
|                   break; | ||||
|                 // to be continued... | ||||
|               } | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										18
									
								
								tests/components/esp32_rmt_led_strip/common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tests/components/esp32_rmt_led_strip/common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip1 | ||||
|     pin: ${pin1} | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 0 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: ${pin2} | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 1 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100us | ||||
|     bit0_low: 100us | ||||
|     bit1_high: 100us | ||||
|     bit1_low: 100us | ||||
							
								
								
									
										16
									
								
								tests/components/esp32_rmt_led_strip/common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								tests/components/esp32_rmt_led_strip/common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip1 | ||||
|     pin: ${pin1} | ||||
|     num_leds: 60 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: ${pin2} | ||||
|     num_leds: 60 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100us | ||||
|     bit0_low: 100us | ||||
|     bit1_high: 100us | ||||
|     bit1_low: 100us | ||||
| @@ -1,18 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip | ||||
|     pin: 13 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 6 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: 14 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 2 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100us | ||||
|     bit0_low: 100us | ||||
|     bit1_high: 100us | ||||
|     bit1_low: 100us | ||||
| substitutions: | ||||
|   pin1: GPIO13 | ||||
|   pin2: GPIO14 | ||||
|  | ||||
| <<: !include common-ard.yaml | ||||
|   | ||||
| @@ -1,18 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip | ||||
|     pin: 4 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 0 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: 5 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 1 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100us | ||||
|     bit0_low: 100us | ||||
|     bit1_high: 100us | ||||
|     bit1_low: 100us | ||||
| substitutions: | ||||
|   pin1: GPIO3 | ||||
|   pin2: GPIO4 | ||||
|  | ||||
| <<: !include common-ard.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip | ||||
|     pin: 4 | ||||
|     num_leds: 60 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: 5 | ||||
|     num_leds: 60 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100µs | ||||
|     bit0_low: 100µs | ||||
|     bit1_high: 100µs | ||||
|     bit1_low: 100µs | ||||
| substitutions: | ||||
|   pin1: GPIO3 | ||||
|   pin2: GPIO4 | ||||
|  | ||||
| <<: !include common-idf.yaml | ||||
|   | ||||
| @@ -1,16 +1,5 @@ | ||||
| light: | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip | ||||
|     pin: 13 | ||||
|     num_leds: 60 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: 14 | ||||
|     num_leds: 60 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100µs | ||||
|     bit0_low: 100µs | ||||
|     bit1_high: 100µs | ||||
|     bit1_low: 100µs | ||||
| substitutions: | ||||
|   pin1: GPIO13 | ||||
|   pin2: GPIO14 | ||||
|  | ||||
| <<: !include common-idf.yaml | ||||
|   | ||||
							
								
								
									
										10
									
								
								tests/components/ezo/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/components/ezo/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: pH | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										61
									
								
								tests/components/ezo_pmp/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								tests/components/ezo_pmp/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,61 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| @@ -1,61 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,61 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,61 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,61 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,61 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,61 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ezo_pmp | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| ezo_pmp: | ||||
|   id: hcl_pump | ||||
|   update_interval: 1s | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     pump_state: | ||||
|       name: Pump State | ||||
|     is_paused: | ||||
|       name: Is Paused | ||||
|  | ||||
| sensor: | ||||
|   - platform: ezo_pmp | ||||
|     current_volume_dosed: | ||||
|       name: Current Volume Dosed | ||||
|     total_volume_dosed: | ||||
|       name: Total Volume Dosed | ||||
|     absolute_total_volume_dosed: | ||||
|       name: Absolute Total Volume Dosed | ||||
|     pump_voltage: | ||||
|       name: Pump Voltage | ||||
|     last_volume_requested: | ||||
|       name: Last Volume Requested | ||||
|     max_flow_rate: | ||||
|       name: Max Flow Rate | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ezo_pmp | ||||
|     dosing_mode: | ||||
|       name: Dosing Mode | ||||
|     calibration_status: | ||||
|       name: Calibration Status | ||||
|       on_value: | ||||
|         - ezo_pmp.dose_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.dose_volume_over_time: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.dose_with_constant_flow_rate: | ||||
|             id: hcl_pump | ||||
|             volume_per_minute: 10 | ||||
|             duration: 2 | ||||
|         - ezo_pmp.set_calibration_volume: | ||||
|             id: hcl_pump | ||||
|             volume: 10 | ||||
|         - ezo_pmp.find: hcl_pump | ||||
|         - ezo_pmp.dose_continuously: hcl_pump | ||||
|         - ezo_pmp.clear_total_volume_dosed: hcl_pump | ||||
|         - ezo_pmp.clear_calibration: hcl_pump | ||||
|         - ezo_pmp.pause_dosing: hcl_pump | ||||
|         - ezo_pmp.stop_dosing: hcl_pump | ||||
|         - ezo_pmp.arbitrary_command: | ||||
|             id: hcl_pump | ||||
|             command: D,? | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user