mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (G) (#8196)
This commit is contained in:
		
							
								
								
									
										25
									
								
								tests/components/gcja5/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/components/gcja5/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: ${tx_pin} | ||||
|     rx_pin: ${rx_pin} | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| @@ -1,25 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gcja5 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: gcja5 | ||||
|     pm_1_0: | ||||
|       name: "Particulate Matter <1.0µm Concentration" | ||||
|     pm_2_5: | ||||
|       name: "Particulate Matter <2.5µm Concentration" | ||||
|     pm_10_0: | ||||
|       name: "Particulate Matter <10.0µm Concentration" | ||||
|     pmc_0_5: | ||||
|       name: "PMC 0.5" | ||||
|     pmc_1_0: | ||||
|       name: "PMC 1.0" | ||||
|     pmc_2_5: | ||||
|       name: "PMC 2.5" | ||||
|     pmc_5_0: | ||||
|       name: "PMC 5.0" | ||||
|     pmc_10_0: | ||||
|       name: "PMC 10.0" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,11 +1,10 @@ | ||||
| i2c: | ||||
|   id: i2c_bus | ||||
|   sda: ${i2c_sda} | ||||
|   scl: ${i2c_scl} | ||||
|   - id: i2c_gdk101 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| gdk101: | ||||
|   id: my_gdk101 | ||||
|   i2c_id: i2c_bus | ||||
|  | ||||
| sensor: | ||||
|   - platform: gdk101 | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| substitutions: | ||||
|   i2c_scl: GPIO16 | ||||
|   i2c_sda: GPIO17 | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| substitutions: | ||||
|   i2c_scl: GPIO16 | ||||
|   i2c_sda: GPIO17 | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| substitutions: | ||||
|   i2c_scl: GPIO5 | ||||
|   i2c_sda: GPIO4 | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| substitutions: | ||||
|   i2c_scl: GPIO5 | ||||
|   i2c_sda: GPIO4 | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										15
									
								
								tests/components/gp2y1010au0f/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/components/gp2y1010au0f/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     id: adc_sensor | ||||
|     pin: ${adc_pin} | ||||
|   - platform: gp2y1010au0f | ||||
|     sensor: adc_sensor | ||||
|     name: Dust Sensor | ||||
|     adc_voltage_offset: 0.2 | ||||
|     adc_voltage_multiplier: 3.3 | ||||
|     output: dust_sensor_led | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: dust_sensor_led | ||||
|     pin: ${output_pin} | ||||
							
								
								
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp32-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp32-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   adc_pin: A0 | ||||
|   output_pin: GPIO14 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   adc_pin: GPIO0 | ||||
|   output_pin: GPIO1 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   adc_pin: GPIO0 | ||||
|   output_pin: GPIO1 | ||||
|  | ||||
| <<: !include common.yaml | ||||
| @@ -1,16 +1,5 @@ | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     pin: GPIO36 | ||||
|     id: adc_sensor | ||||
| substitutions: | ||||
|   adc_pin: A0 | ||||
|   output_pin: GPIO14 | ||||
|  | ||||
|   - platform: gp2y1010au0f | ||||
|     sensor: adc_sensor | ||||
|     name: Dust Sensor | ||||
|     adc_voltage_offset: 0.2 | ||||
|     adc_voltage_multiplier: 3.3 | ||||
|     output: dust_sensor_led | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: dust_sensor_led | ||||
|     pin: GPIO32 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp8266-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/gp2y1010au0f/test.esp8266-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   adc_pin: A0 | ||||
|   output_pin: GPIO5 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/gp2y1010au0f/test.rp2040-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/gp2y1010au0f/test.rp2040-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   adc_pin: GPIO26 | ||||
|   output_pin: GPIO5 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										20
									
								
								tests/components/gp8403/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/gp8403/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| @@ -1,20 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,20 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,20 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,20 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,20 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,20 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_gp8403 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| gp8403: | ||||
|   - id: gp8403_5v | ||||
|     voltage: 5V | ||||
|   - id: gp8403_10v | ||||
|     voltage: 10V | ||||
|  | ||||
| output: | ||||
|   - platform: gp8403 | ||||
|     id: gp8403_output_0 | ||||
|     gp8403_id: gp8403_5v | ||||
|     channel: 0 | ||||
|   - platform: gp8403 | ||||
|     gp8403_id: gp8403_10v | ||||
|     id: gp8403_output_1 | ||||
|     channel: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										14
									
								
								tests/components/gpio/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/components/gpio/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: ${binary_sensor_pin} | ||||
|     id: gpio_binary_sensor | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: ${output_pin} | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: ${switch_pin} | ||||
|     id: gpio_switch | ||||
| @@ -1,14 +1,6 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: 12 | ||||
|     id: gpio_binary_sensor | ||||
| substitutions: | ||||
|   binary_sensor_pin: GPIO12 | ||||
|   output_pin: GPIO13 | ||||
|   switch_pin: GPIO14 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: 13 | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: 14 | ||||
|     id: gpio_switch | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,6 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: 2 | ||||
|     id: gpio_binary_sensor | ||||
| substitutions: | ||||
|   binary_sensor_pin: GPIO2 | ||||
|   output_pin: GPIO3 | ||||
|   switch_pin: GPIO4 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: 3 | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: 4 | ||||
|     id: gpio_switch | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,6 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: 2 | ||||
|     id: gpio_binary_sensor | ||||
| substitutions: | ||||
|   binary_sensor_pin: GPIO2 | ||||
|   output_pin: GPIO3 | ||||
|   switch_pin: GPIO4 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: 3 | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: 4 | ||||
|     id: gpio_switch | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,6 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: 12 | ||||
|     id: gpio_binary_sensor | ||||
| substitutions: | ||||
|   binary_sensor_pin: GPIO12 | ||||
|   output_pin: GPIO13 | ||||
|   switch_pin: GPIO14 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: 13 | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: 14 | ||||
|     id: gpio_switch | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,6 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: 12 | ||||
|     id: gpio_binary_sensor | ||||
| substitutions: | ||||
|   binary_sensor_pin: GPIO12 | ||||
|   output_pin: GPIO13 | ||||
|   switch_pin: GPIO14 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: 13 | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: 14 | ||||
|     id: gpio_switch | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,6 @@ | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     pin: 2 | ||||
|     id: gpio_binary_sensor | ||||
| substitutions: | ||||
|   binary_sensor_pin: GPIO2 | ||||
|   output_pin: GPIO3 | ||||
|   switch_pin: GPIO4 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: 3 | ||||
|     id: gpio_output | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|     pin: 4 | ||||
|     id: gpio_switch | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										14
									
								
								tests/components/gps/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/components/gps/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| uart: | ||||
|   - id: uart_gps | ||||
|     tx_pin: ${tx_pin} | ||||
|     rx_pin: ${rx_pin} | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
|  | ||||
| gps: | ||||
|  | ||||
| time: | ||||
|   - platform: gps | ||||
|     on_time_sync: | ||||
|       then: | ||||
|         logger.log: "It's time!" | ||||
| @@ -1,14 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gps | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| gps: | ||||
|  | ||||
| time: | ||||
|   - platform: gps | ||||
|     on_time_sync: | ||||
|       then: | ||||
|         logger.log: "It's time!" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gps | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| gps: | ||||
|  | ||||
| time: | ||||
|   - platform: gps | ||||
|     on_time_sync: | ||||
|       then: | ||||
|         logger.log: "It's time!" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gps | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| gps: | ||||
|  | ||||
| time: | ||||
|   - platform: gps | ||||
|     on_time_sync: | ||||
|       then: | ||||
|         logger.log: "It's time!" | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_gps | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| gps: | ||||
|  | ||||
| time: | ||||
|   - platform: gps | ||||
|     on_time_sync: | ||||
|       then: | ||||
|         logger.log: "It's time!" | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										25
									
								
								tests/components/graph/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/components/graph/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| @@ -1,25 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|   reset_pin: GPIO15 | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO6 | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO6 | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|   reset_pin: GPIO15 | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO15 | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graph | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO6 | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: some_sensor | ||||
|  | ||||
| graph: | ||||
|   - id: some_graph | ||||
|     sensor: some_sensor | ||||
|     duration: 1h | ||||
|     width: 100 | ||||
|     height: 100 | ||||
|  | ||||
| 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()); | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										120
									
								
								tests/components/graphical_display_menu/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								tests/components/graphical_display_menu/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,120 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| @@ -1,120 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|   reset_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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,120 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO6 | ||||
|  | ||||
| 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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,120 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO6 | ||||
|  | ||||
| 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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,120 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|   reset_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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,120 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,120 +1,6 @@ | ||||
| i2c: | ||||
|   - id: i2c_graphical_display_menu | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|   reset_pin: GPIO6 | ||||
|  | ||||
| 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()); | ||||
|  | ||||
| font: | ||||
|   - file: "gfonts://Roboto" | ||||
|     id: roboto | ||||
|     size: 20 | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: test_switch | ||||
|     optimistic: true | ||||
|  | ||||
| graphical_display_menu: | ||||
|   id: test_graphical_display_menu | ||||
|   display: ssd1306_display | ||||
|   font: roboto | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("graphical_display_menu", "root leave");' | ||||
|   items: | ||||
|     - type: back | ||||
|       text: "Back" | ||||
|     - type: label | ||||
|     - type: menu | ||||
|       text: "Submenu 1" | ||||
|       items: | ||||
|         - type: back | ||||
|           text: "Back" | ||||
|         - type: menu | ||||
|           text: "Submenu 21" | ||||
|           items: | ||||
|             - type: back | ||||
|               text: "Back" | ||||
|             - type: command | ||||
|               text: "Show Main" | ||||
|               on_value: | ||||
|                 then: | ||||
|                   - display_menu.show_main: test_graphical_display_menu | ||||
|     - type: select | ||||
|       text: "Enum Item" | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: number | ||||
|       text: "Number" | ||||
|       number: test_number | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|     - type: command | ||||
|       text: "Hide" | ||||
|       on_value: | ||||
|         then: | ||||
|           - display_menu.hide: test_graphical_display_menu | ||||
|     - type: switch | ||||
|       text: "Switch" | ||||
|       switch: test_switch | ||||
|       on_text: "Bright" | ||||
|       off_text: "Dark" | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());' | ||||
|     - type: custom | ||||
|       text: !lambda 'return "Custom";' | ||||
|       value_lambda: 'return "Val";' | ||||
|       on_next: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());' | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										8
									
								
								tests/components/gree/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/components/gree/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| remote_transmitter: | ||||
|   pin: ${pin} | ||||
|   carrier_duty_percent: 50% | ||||
|  | ||||
| climate: | ||||
|   - platform: gree | ||||
|     name: GREE | ||||
|     model: generic | ||||
| @@ -1,8 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: gree | ||||
|     name: GREE | ||||
|     model: generic | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,8 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: gree | ||||
|     name: GREE | ||||
|     model: generic | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,8 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: gree | ||||
|     name: GREE | ||||
|     model: generic | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,8 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 2 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|  | ||||
| climate: | ||||
|   - platform: gree | ||||
|     name: GREE | ||||
|     model: generic | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,8 +1,4 @@ | ||||
| remote_transmitter: | ||||
|   pin: 5 | ||||
|   carrier_duty_percent: 50% | ||||
| substitutions: | ||||
|   pin: GPIO5 | ||||
|  | ||||
| climate: | ||||
|   - platform: gree | ||||
|     name: GREE | ||||
|     model: generic | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,6 +1,10 @@ | ||||
| i2c: | ||||
|   - id: i2c_grove_gas_mc_v2 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: grove_gas_mc_v2 | ||||
|     i2c_id: i2c_bus | ||||
|     nitrogen_dioxide: | ||||
|       name: "Nitrogen Dioxide" | ||||
|     ethanol: | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| i2c: | ||||
|   sda: 21 | ||||
|   scl: 22 | ||||
|   id: i2c_bus | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										5
									
								
								tests/components/grove_gas_mc_v2/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/grove_gas_mc_v2/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/grove_gas_mc_v2/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/grove_gas_mc_v2/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
| @@ -1,6 +1,5 @@ | ||||
| i2c: | ||||
|   sda: 21 | ||||
|   scl: 22 | ||||
|   id: i2c_bus | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| i2c: | ||||
|   sda: 4 | ||||
|   scl: 5 | ||||
|   id: i2c_bus | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| i2c: | ||||
|   sda: 21 | ||||
|   scl: 22 | ||||
|   id: i2c_bus | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										23
									
								
								tests/components/grove_tb6612fng/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tests/components/grove_tb6612fng/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| @@ -1,23 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,23 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,23 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,23 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,23 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,23 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - grove_tb6612fng.run: | ||||
|           channel: 1 | ||||
|           speed: 255 | ||||
|           direction: BACKWARD | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.stop: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
|       - grove_tb6612fng.break: | ||||
|           channel: 1 | ||||
|           id: test_motor | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| i2c: | ||||
|   - id: i2c_grove_tb6612fng | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| grove_tb6612fng: | ||||
|   id: test_motor | ||||
|   address: 0x14 | ||||
| <<: !include common.yaml | ||||
|   | ||||
							
								
								
									
										62
									
								
								tests/components/growatt_solar/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								tests/components/growatt_solar/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,62 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_solar | ||||
|     tx_pin: ${tx_pin} | ||||
|     rx_pin: ${rx_pin} | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| modbus: | ||||
|   flow_control_pin: ${flow_control_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| @@ -1,62 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_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: 13 | ||||
|  | ||||
| sensor: | ||||
|   - platform: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,62 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_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: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,62 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_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: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,62 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_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: 13 | ||||
|  | ||||
| sensor: | ||||
|   - platform: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,62 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_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: 13 | ||||
|  | ||||
| sensor: | ||||
|   - platform: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,62 +1,6 @@ | ||||
| uart: | ||||
|   - id: uart_growatt_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: growatt_solar | ||||
|     update_interval: 10s | ||||
|     protocol_version: RTU | ||||
|     inverter_status: | ||||
|       name: Growatt Status Code | ||||
|     phase_a: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase A | ||||
|       current: | ||||
|         name: Growatt Current Phase A | ||||
|       active_power: | ||||
|         name: Growatt Power Phase A | ||||
|     phase_b: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase B | ||||
|       current: | ||||
|         name: Growatt Current Phase B | ||||
|       active_power: | ||||
|         name: Growatt Power Phase B | ||||
|     phase_c: | ||||
|       voltage: | ||||
|         name: Growatt Voltage Phase C | ||||
|       current: | ||||
|         name: Growatt Current Phase C | ||||
|       active_power: | ||||
|         name: Growatt Power Phase C | ||||
|     pv1: | ||||
|       voltage: | ||||
|         name: Growatt PV1 Voltage | ||||
|       current: | ||||
|         name: Growatt PV1 Current | ||||
|       active_power: | ||||
|         name: Growatt PV1 Active Power | ||||
|     pv2: | ||||
|       voltage: | ||||
|         name: Growatt PV2 Voltage | ||||
|       current: | ||||
|         name: Growatt PV2 Current | ||||
|       active_power: | ||||
|         name: Growatt PV2 Active Power | ||||
|     active_power: | ||||
|       name: Growatt Grid Active Power | ||||
|     pv_active_power: | ||||
|       name: Growatt PV Active Power | ||||
|     frequency: | ||||
|       name: Growatt Frequency | ||||
|     energy_production_day: | ||||
|       name: Growatt Today's Generation | ||||
|     total_energy_production: | ||||
|       name: Growatt Total Energy Production | ||||
|     inverter_module_temp: | ||||
|       name: Growatt Inverter Module Temp | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user