mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Add some components to the new testing framework (L) (#6195)
This commit is contained in:
		
							
								
								
									
										13
									
								
								tests/components/lcd_gpio/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lcd_gpio/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 1 | ||||
|       - number: 2 | ||||
|       - number: 3 | ||||
|       - number: 4 | ||||
|     enable_pin: 5 | ||||
|     rs_pin: 6 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										13
									
								
								tests/components/lcd_gpio/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lcd_gpio/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 1 | ||||
|       - number: 2 | ||||
|       - number: 3 | ||||
|       - number: 4 | ||||
|     enable_pin: 5 | ||||
|     rs_pin: 6 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										13
									
								
								tests/components/lcd_gpio/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lcd_gpio/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 12 | ||||
|       - number: 13 | ||||
|       - number: 14 | ||||
|       - number: 15 | ||||
|     enable_pin: 16 | ||||
|     rs_pin: 5 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										13
									
								
								tests/components/lcd_gpio/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lcd_gpio/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 12 | ||||
|       - number: 13 | ||||
|       - number: 14 | ||||
|       - number: 15 | ||||
|     enable_pin: 16 | ||||
|     rs_pin: 5 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										13
									
								
								tests/components/lcd_gpio/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lcd_gpio/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 12 | ||||
|       - number: 13 | ||||
|       - number: 14 | ||||
|       - number: 15 | ||||
|     enable_pin: 16 | ||||
|     rs_pin: 5 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										13
									
								
								tests/components/lcd_gpio/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lcd_gpio/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 1 | ||||
|       - number: 2 | ||||
|       - number: 3 | ||||
|       - number: 4 | ||||
|     enable_pin: 5 | ||||
|     rs_pin: 6 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										118
									
								
								tests/components/lcd_menu/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								tests/components/lcd_menu/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| 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 | ||||
|     name: Template Switch | ||||
|     id: my_switch | ||||
|     optimistic: true | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 1 | ||||
|       - number: 2 | ||||
|       - number: 3 | ||||
|       - number: 4 | ||||
|     enable_pin: 5 | ||||
|     rs_pin: 6 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
|  | ||||
| lcd_menu: | ||||
|   id: test_lcd_menu | ||||
|   display_id: my_lcd_gpio | ||||
|   mark_back: 0x5e | ||||
|   mark_selected: 0x3e | ||||
|   mark_editing: 0x2a | ||||
|   mark_submenu: 0x7e | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: select | ||||
|       text: Enum Item | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: switch | ||||
|       text: Switch | ||||
|       switch: my_switch | ||||
|       on_text: Bright | ||||
|       off_text: Dark | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());' | ||||
							
								
								
									
										118
									
								
								tests/components/lcd_menu/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								tests/components/lcd_menu/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| 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 | ||||
|     name: Template Switch | ||||
|     id: my_switch | ||||
|     optimistic: true | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 1 | ||||
|       - number: 2 | ||||
|       - number: 3 | ||||
|       - number: 4 | ||||
|     enable_pin: 5 | ||||
|     rs_pin: 6 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
|  | ||||
| lcd_menu: | ||||
|   id: test_lcd_menu | ||||
|   display_id: my_lcd_gpio | ||||
|   mark_back: 0x5e | ||||
|   mark_selected: 0x3e | ||||
|   mark_editing: 0x2a | ||||
|   mark_submenu: 0x7e | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: select | ||||
|       text: Enum Item | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: switch | ||||
|       text: Switch | ||||
|       switch: my_switch | ||||
|       on_text: Bright | ||||
|       off_text: Dark | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());' | ||||
							
								
								
									
										118
									
								
								tests/components/lcd_menu/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								tests/components/lcd_menu/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| 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 | ||||
|     name: Template Switch | ||||
|     id: my_switch | ||||
|     optimistic: true | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 12 | ||||
|       - number: 13 | ||||
|       - number: 14 | ||||
|       - number: 15 | ||||
|     enable_pin: 16 | ||||
|     rs_pin: 5 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
|  | ||||
| lcd_menu: | ||||
|   id: test_lcd_menu | ||||
|   display_id: my_lcd_gpio | ||||
|   mark_back: 0x5e | ||||
|   mark_selected: 0x3e | ||||
|   mark_editing: 0x2a | ||||
|   mark_submenu: 0x7e | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: select | ||||
|       text: Enum Item | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: switch | ||||
|       text: Switch | ||||
|       switch: my_switch | ||||
|       on_text: Bright | ||||
|       off_text: Dark | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());' | ||||
							
								
								
									
										118
									
								
								tests/components/lcd_menu/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								tests/components/lcd_menu/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| 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 | ||||
|     name: Template Switch | ||||
|     id: my_switch | ||||
|     optimistic: true | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 12 | ||||
|       - number: 13 | ||||
|       - number: 14 | ||||
|       - number: 15 | ||||
|     enable_pin: 16 | ||||
|     rs_pin: 5 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
|  | ||||
| lcd_menu: | ||||
|   id: test_lcd_menu | ||||
|   display_id: my_lcd_gpio | ||||
|   mark_back: 0x5e | ||||
|   mark_selected: 0x3e | ||||
|   mark_editing: 0x2a | ||||
|   mark_submenu: 0x7e | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: select | ||||
|       text: Enum Item | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: switch | ||||
|       text: Switch | ||||
|       switch: my_switch | ||||
|       on_text: Bright | ||||
|       off_text: Dark | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());' | ||||
							
								
								
									
										118
									
								
								tests/components/lcd_menu/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								tests/components/lcd_menu/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| 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 | ||||
|     name: Template Switch | ||||
|     id: my_switch | ||||
|     optimistic: true | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 12 | ||||
|       - number: 13 | ||||
|       - number: 14 | ||||
|       - number: 15 | ||||
|     enable_pin: 16 | ||||
|     rs_pin: 5 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
|  | ||||
| lcd_menu: | ||||
|   id: test_lcd_menu | ||||
|   display_id: my_lcd_gpio | ||||
|   mark_back: 0x5e | ||||
|   mark_selected: 0x3e | ||||
|   mark_editing: 0x2a | ||||
|   mark_submenu: 0x7e | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: select | ||||
|       text: Enum Item | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: switch | ||||
|       text: Switch | ||||
|       switch: my_switch | ||||
|       on_text: Bright | ||||
|       off_text: Dark | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());' | ||||
							
								
								
									
										118
									
								
								tests/components/lcd_menu/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								tests/components/lcd_menu/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| 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 | ||||
|     name: Template Switch | ||||
|     id: my_switch | ||||
|     optimistic: true | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_gpio | ||||
|     id: my_lcd_gpio | ||||
|     dimensions: 18x4 | ||||
|     data_pins: | ||||
|       - number: 1 | ||||
|       - number: 2 | ||||
|       - number: 3 | ||||
|       - number: 4 | ||||
|     enable_pin: 5 | ||||
|     rs_pin: 6 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
|  | ||||
| lcd_menu: | ||||
|   id: test_lcd_menu | ||||
|   display_id: my_lcd_gpio | ||||
|   mark_back: 0x5e | ||||
|   mark_selected: 0x3e | ||||
|   mark_editing: 0x2a | ||||
|   mark_submenu: 0x7e | ||||
|   active: false | ||||
|   mode: rotary | ||||
|   on_enter: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_menu", "root enter");' | ||||
|   on_leave: | ||||
|     then: | ||||
|       lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: select | ||||
|       text: Enum Item | ||||
|       immediate_edit: true | ||||
|       select: test_select | ||||
|       on_enter: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_leave: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());' | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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_lcd_menu | ||||
|     - type: switch | ||||
|       text: Switch | ||||
|       switch: my_switch | ||||
|       on_text: Bright | ||||
|       off_text: Dark | ||||
|       immediate_edit: false | ||||
|       on_value: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_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("lcd_menu", "custom next: %s", it->get_text().c_str());' | ||||
|       on_prev: | ||||
|         then: | ||||
|           lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());' | ||||
							
								
								
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| i2c: | ||||
|   - id: i2c_lcd_pcf8574 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_pcf8574 | ||||
|     dimensions: 18x4 | ||||
|     address: 0x3F | ||||
|     user_characters: | ||||
|       - position: 0 | ||||
|         data: | ||||
|           - 0b00000 | ||||
|           - 0b01010 | ||||
|           - 0b00000 | ||||
|           - 0b00100 | ||||
|           - 0b00100 | ||||
|           - 0b10001 | ||||
|           - 0b01110 | ||||
|           - 0b00000 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| i2c: | ||||
|   - id: i2c_lcd_pcf8574 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_pcf8574 | ||||
|     dimensions: 18x4 | ||||
|     address: 0x3F | ||||
|     user_characters: | ||||
|       - position: 0 | ||||
|         data: | ||||
|           - 0b00000 | ||||
|           - 0b01010 | ||||
|           - 0b00000 | ||||
|           - 0b00100 | ||||
|           - 0b00100 | ||||
|           - 0b10001 | ||||
|           - 0b01110 | ||||
|           - 0b00000 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| i2c: | ||||
|   - id: i2c_lcd_pcf8574 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_pcf8574 | ||||
|     dimensions: 18x4 | ||||
|     address: 0x3F | ||||
|     user_characters: | ||||
|       - position: 0 | ||||
|         data: | ||||
|           - 0b00000 | ||||
|           - 0b01010 | ||||
|           - 0b00000 | ||||
|           - 0b00100 | ||||
|           - 0b00100 | ||||
|           - 0b10001 | ||||
|           - 0b01110 | ||||
|           - 0b00000 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| i2c: | ||||
|   - id: i2c_lcd_pcf8574 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_pcf8574 | ||||
|     dimensions: 18x4 | ||||
|     address: 0x3F | ||||
|     user_characters: | ||||
|       - position: 0 | ||||
|         data: | ||||
|           - 0b00000 | ||||
|           - 0b01010 | ||||
|           - 0b00000 | ||||
|           - 0b00100 | ||||
|           - 0b00100 | ||||
|           - 0b10001 | ||||
|           - 0b01110 | ||||
|           - 0b00000 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/lcd_pcf8574/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| i2c: | ||||
|   - id: i2c_lcd_pcf8574 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_pcf8574 | ||||
|     dimensions: 18x4 | ||||
|     address: 0x3F | ||||
|     user_characters: | ||||
|       - position: 0 | ||||
|         data: | ||||
|           - 0b00000 | ||||
|           - 0b01010 | ||||
|           - 0b00000 | ||||
|           - 0b00100 | ||||
|           - 0b00100 | ||||
|           - 0b10001 | ||||
|           - 0b01110 | ||||
|           - 0b00000 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										22
									
								
								tests/components/lcd_pcf8574/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/lcd_pcf8574/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| i2c: | ||||
|   - id: i2c_lcd_pcf8574 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| display: | ||||
|   - platform: lcd_pcf8574 | ||||
|     dimensions: 18x4 | ||||
|     address: 0x3F | ||||
|     user_characters: | ||||
|       - position: 0 | ||||
|         data: | ||||
|           - 0b00000 | ||||
|           - 0b01010 | ||||
|           - 0b00000 | ||||
|           - 0b00100 | ||||
|           - 0b00100 | ||||
|           - 0b10001 | ||||
|           - 0b01110 | ||||
|           - 0b00000 | ||||
|     lambda: |- | ||||
|       it.print("Hello World!"); | ||||
							
								
								
									
										169
									
								
								tests/components/ld2410/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								tests/components/ld2410/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,169 @@ | ||||
| uart: | ||||
|   - id: uart_ld2410 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2410: | ||||
|   id: my_ld2410 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2410 | ||||
|     has_target: | ||||
|       name: presence | ||||
|     has_moving_target: | ||||
|       name: movement | ||||
|     has_still_target: | ||||
|       name: still | ||||
|     out_pin_presence_status: | ||||
|       name: out pin presence status | ||||
|  | ||||
| button: | ||||
|   - platform: ld2410 | ||||
|     factory_reset: | ||||
|       name: factory reset | ||||
|     restart: | ||||
|       name: restart | ||||
|     query_params: | ||||
|       name: query params | ||||
|  | ||||
| number: | ||||
|   - platform: ld2410 | ||||
|     light_threshold: | ||||
|       name: light threshold | ||||
|     timeout: | ||||
|       name: timeout | ||||
|     max_move_distance_gate: | ||||
|       name: max move distance gate | ||||
|     max_still_distance_gate: | ||||
|       name: max still distance gate | ||||
|     g0: | ||||
|       move_threshold: | ||||
|         name: g0 move threshold | ||||
|       still_threshold: | ||||
|         name: g0 still threshold | ||||
|     g1: | ||||
|       move_threshold: | ||||
|         name: g1 move threshold | ||||
|       still_threshold: | ||||
|         name: g1 still threshold | ||||
|     g2: | ||||
|       move_threshold: | ||||
|         name: g2 move threshold | ||||
|       still_threshold: | ||||
|         name: g2 still threshold | ||||
|     g3: | ||||
|       move_threshold: | ||||
|         name: g3 move threshold | ||||
|       still_threshold: | ||||
|         name: g3 still threshold | ||||
|     g4: | ||||
|       move_threshold: | ||||
|         name: g4 move threshold | ||||
|       still_threshold: | ||||
|         name: g4 still threshold | ||||
|     g5: | ||||
|       move_threshold: | ||||
|         name: g5 move threshold | ||||
|       still_threshold: | ||||
|         name: g5 still threshold | ||||
|     g6: | ||||
|       move_threshold: | ||||
|         name: g6 move threshold | ||||
|       still_threshold: | ||||
|         name: g6 still threshold | ||||
|     g7: | ||||
|       move_threshold: | ||||
|         name: g7 move threshold | ||||
|       still_threshold: | ||||
|         name: g7 still threshold | ||||
|     g8: | ||||
|       move_threshold: | ||||
|         name: g8 move threshold | ||||
|       still_threshold: | ||||
|         name: g8 still threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2410 | ||||
|     distance_resolution: | ||||
|       name: distance resolution | ||||
|     baud_rate: | ||||
|       name: baud rate | ||||
|     light_function: | ||||
|       name: light function | ||||
|     out_pin_level: | ||||
|       name: out ping level | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2410 | ||||
|     light: | ||||
|       name: light | ||||
|     moving_distance: | ||||
|       name: Moving distance | ||||
|     still_distance: | ||||
|       name: Still Distance | ||||
|     moving_energy: | ||||
|       name: Move Energy | ||||
|     still_energy: | ||||
|       name: Still Energy | ||||
|     detection_distance: | ||||
|       name: Distance Detection | ||||
|     g0: | ||||
|       move_energy: | ||||
|         name: g0 move energy | ||||
|       still_energy: | ||||
|         name: g0 still energy | ||||
|     g1: | ||||
|       move_energy: | ||||
|         name: g1 move energy | ||||
|       still_energy: | ||||
|         name: g1 still energy | ||||
|     g2: | ||||
|       move_energy: | ||||
|         name: g2 move energy | ||||
|       still_energy: | ||||
|         name: g2 still energy | ||||
|     g3: | ||||
|       move_energy: | ||||
|         name: g3 move energy | ||||
|       still_energy: | ||||
|         name: g3 still energy | ||||
|     g4: | ||||
|       move_energy: | ||||
|         name: g4 move energy | ||||
|       still_energy: | ||||
|         name: g4 still energy | ||||
|     g5: | ||||
|       move_energy: | ||||
|         name: g5 move energy | ||||
|       still_energy: | ||||
|         name: g5 still energy | ||||
|     g6: | ||||
|       move_energy: | ||||
|         name: g6 move energy | ||||
|       still_energy: | ||||
|         name: g6 still energy | ||||
|     g7: | ||||
|       move_energy: | ||||
|         name: g7 move energy | ||||
|       still_energy: | ||||
|         name: g7 still energy | ||||
|     g8: | ||||
|       move_energy: | ||||
|         name: g8 move energy | ||||
|       still_energy: | ||||
|         name: g8 still energy | ||||
|  | ||||
| switch: | ||||
|   - platform: ld2410 | ||||
|     engineering_mode: | ||||
|       name: control ld2410 engineering mode | ||||
|     bluetooth: | ||||
|       name: control ld2410 bluetooth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2410 | ||||
|     version: | ||||
|       name: presenece sensor version | ||||
|     mac_address: | ||||
|       name: presenece sensor mac address | ||||
							
								
								
									
										169
									
								
								tests/components/ld2410/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								tests/components/ld2410/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,169 @@ | ||||
| uart: | ||||
|   - id: uart_ld2410 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2410: | ||||
|   id: my_ld2410 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2410 | ||||
|     has_target: | ||||
|       name: presence | ||||
|     has_moving_target: | ||||
|       name: movement | ||||
|     has_still_target: | ||||
|       name: still | ||||
|     out_pin_presence_status: | ||||
|       name: out pin presence status | ||||
|  | ||||
| button: | ||||
|   - platform: ld2410 | ||||
|     factory_reset: | ||||
|       name: factory reset | ||||
|     restart: | ||||
|       name: restart | ||||
|     query_params: | ||||
|       name: query params | ||||
|  | ||||
| number: | ||||
|   - platform: ld2410 | ||||
|     light_threshold: | ||||
|       name: light threshold | ||||
|     timeout: | ||||
|       name: timeout | ||||
|     max_move_distance_gate: | ||||
|       name: max move distance gate | ||||
|     max_still_distance_gate: | ||||
|       name: max still distance gate | ||||
|     g0: | ||||
|       move_threshold: | ||||
|         name: g0 move threshold | ||||
|       still_threshold: | ||||
|         name: g0 still threshold | ||||
|     g1: | ||||
|       move_threshold: | ||||
|         name: g1 move threshold | ||||
|       still_threshold: | ||||
|         name: g1 still threshold | ||||
|     g2: | ||||
|       move_threshold: | ||||
|         name: g2 move threshold | ||||
|       still_threshold: | ||||
|         name: g2 still threshold | ||||
|     g3: | ||||
|       move_threshold: | ||||
|         name: g3 move threshold | ||||
|       still_threshold: | ||||
|         name: g3 still threshold | ||||
|     g4: | ||||
|       move_threshold: | ||||
|         name: g4 move threshold | ||||
|       still_threshold: | ||||
|         name: g4 still threshold | ||||
|     g5: | ||||
|       move_threshold: | ||||
|         name: g5 move threshold | ||||
|       still_threshold: | ||||
|         name: g5 still threshold | ||||
|     g6: | ||||
|       move_threshold: | ||||
|         name: g6 move threshold | ||||
|       still_threshold: | ||||
|         name: g6 still threshold | ||||
|     g7: | ||||
|       move_threshold: | ||||
|         name: g7 move threshold | ||||
|       still_threshold: | ||||
|         name: g7 still threshold | ||||
|     g8: | ||||
|       move_threshold: | ||||
|         name: g8 move threshold | ||||
|       still_threshold: | ||||
|         name: g8 still threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2410 | ||||
|     distance_resolution: | ||||
|       name: distance resolution | ||||
|     baud_rate: | ||||
|       name: baud rate | ||||
|     light_function: | ||||
|       name: light function | ||||
|     out_pin_level: | ||||
|       name: out ping level | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2410 | ||||
|     light: | ||||
|       name: light | ||||
|     moving_distance: | ||||
|       name: Moving distance | ||||
|     still_distance: | ||||
|       name: Still Distance | ||||
|     moving_energy: | ||||
|       name: Move Energy | ||||
|     still_energy: | ||||
|       name: Still Energy | ||||
|     detection_distance: | ||||
|       name: Distance Detection | ||||
|     g0: | ||||
|       move_energy: | ||||
|         name: g0 move energy | ||||
|       still_energy: | ||||
|         name: g0 still energy | ||||
|     g1: | ||||
|       move_energy: | ||||
|         name: g1 move energy | ||||
|       still_energy: | ||||
|         name: g1 still energy | ||||
|     g2: | ||||
|       move_energy: | ||||
|         name: g2 move energy | ||||
|       still_energy: | ||||
|         name: g2 still energy | ||||
|     g3: | ||||
|       move_energy: | ||||
|         name: g3 move energy | ||||
|       still_energy: | ||||
|         name: g3 still energy | ||||
|     g4: | ||||
|       move_energy: | ||||
|         name: g4 move energy | ||||
|       still_energy: | ||||
|         name: g4 still energy | ||||
|     g5: | ||||
|       move_energy: | ||||
|         name: g5 move energy | ||||
|       still_energy: | ||||
|         name: g5 still energy | ||||
|     g6: | ||||
|       move_energy: | ||||
|         name: g6 move energy | ||||
|       still_energy: | ||||
|         name: g6 still energy | ||||
|     g7: | ||||
|       move_energy: | ||||
|         name: g7 move energy | ||||
|       still_energy: | ||||
|         name: g7 still energy | ||||
|     g8: | ||||
|       move_energy: | ||||
|         name: g8 move energy | ||||
|       still_energy: | ||||
|         name: g8 still energy | ||||
|  | ||||
| switch: | ||||
|   - platform: ld2410 | ||||
|     engineering_mode: | ||||
|       name: control ld2410 engineering mode | ||||
|     bluetooth: | ||||
|       name: control ld2410 bluetooth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2410 | ||||
|     version: | ||||
|       name: presenece sensor version | ||||
|     mac_address: | ||||
|       name: presenece sensor mac address | ||||
							
								
								
									
										169
									
								
								tests/components/ld2410/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								tests/components/ld2410/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,169 @@ | ||||
| uart: | ||||
|   - id: uart_ld2410 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2410: | ||||
|   id: my_ld2410 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2410 | ||||
|     has_target: | ||||
|       name: presence | ||||
|     has_moving_target: | ||||
|       name: movement | ||||
|     has_still_target: | ||||
|       name: still | ||||
|     out_pin_presence_status: | ||||
|       name: out pin presence status | ||||
|  | ||||
| button: | ||||
|   - platform: ld2410 | ||||
|     factory_reset: | ||||
|       name: factory reset | ||||
|     restart: | ||||
|       name: restart | ||||
|     query_params: | ||||
|       name: query params | ||||
|  | ||||
| number: | ||||
|   - platform: ld2410 | ||||
|     light_threshold: | ||||
|       name: light threshold | ||||
|     timeout: | ||||
|       name: timeout | ||||
|     max_move_distance_gate: | ||||
|       name: max move distance gate | ||||
|     max_still_distance_gate: | ||||
|       name: max still distance gate | ||||
|     g0: | ||||
|       move_threshold: | ||||
|         name: g0 move threshold | ||||
|       still_threshold: | ||||
|         name: g0 still threshold | ||||
|     g1: | ||||
|       move_threshold: | ||||
|         name: g1 move threshold | ||||
|       still_threshold: | ||||
|         name: g1 still threshold | ||||
|     g2: | ||||
|       move_threshold: | ||||
|         name: g2 move threshold | ||||
|       still_threshold: | ||||
|         name: g2 still threshold | ||||
|     g3: | ||||
|       move_threshold: | ||||
|         name: g3 move threshold | ||||
|       still_threshold: | ||||
|         name: g3 still threshold | ||||
|     g4: | ||||
|       move_threshold: | ||||
|         name: g4 move threshold | ||||
|       still_threshold: | ||||
|         name: g4 still threshold | ||||
|     g5: | ||||
|       move_threshold: | ||||
|         name: g5 move threshold | ||||
|       still_threshold: | ||||
|         name: g5 still threshold | ||||
|     g6: | ||||
|       move_threshold: | ||||
|         name: g6 move threshold | ||||
|       still_threshold: | ||||
|         name: g6 still threshold | ||||
|     g7: | ||||
|       move_threshold: | ||||
|         name: g7 move threshold | ||||
|       still_threshold: | ||||
|         name: g7 still threshold | ||||
|     g8: | ||||
|       move_threshold: | ||||
|         name: g8 move threshold | ||||
|       still_threshold: | ||||
|         name: g8 still threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2410 | ||||
|     distance_resolution: | ||||
|       name: distance resolution | ||||
|     baud_rate: | ||||
|       name: baud rate | ||||
|     light_function: | ||||
|       name: light function | ||||
|     out_pin_level: | ||||
|       name: out ping level | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2410 | ||||
|     light: | ||||
|       name: light | ||||
|     moving_distance: | ||||
|       name: Moving distance | ||||
|     still_distance: | ||||
|       name: Still Distance | ||||
|     moving_energy: | ||||
|       name: Move Energy | ||||
|     still_energy: | ||||
|       name: Still Energy | ||||
|     detection_distance: | ||||
|       name: Distance Detection | ||||
|     g0: | ||||
|       move_energy: | ||||
|         name: g0 move energy | ||||
|       still_energy: | ||||
|         name: g0 still energy | ||||
|     g1: | ||||
|       move_energy: | ||||
|         name: g1 move energy | ||||
|       still_energy: | ||||
|         name: g1 still energy | ||||
|     g2: | ||||
|       move_energy: | ||||
|         name: g2 move energy | ||||
|       still_energy: | ||||
|         name: g2 still energy | ||||
|     g3: | ||||
|       move_energy: | ||||
|         name: g3 move energy | ||||
|       still_energy: | ||||
|         name: g3 still energy | ||||
|     g4: | ||||
|       move_energy: | ||||
|         name: g4 move energy | ||||
|       still_energy: | ||||
|         name: g4 still energy | ||||
|     g5: | ||||
|       move_energy: | ||||
|         name: g5 move energy | ||||
|       still_energy: | ||||
|         name: g5 still energy | ||||
|     g6: | ||||
|       move_energy: | ||||
|         name: g6 move energy | ||||
|       still_energy: | ||||
|         name: g6 still energy | ||||
|     g7: | ||||
|       move_energy: | ||||
|         name: g7 move energy | ||||
|       still_energy: | ||||
|         name: g7 still energy | ||||
|     g8: | ||||
|       move_energy: | ||||
|         name: g8 move energy | ||||
|       still_energy: | ||||
|         name: g8 still energy | ||||
|  | ||||
| switch: | ||||
|   - platform: ld2410 | ||||
|     engineering_mode: | ||||
|       name: control ld2410 engineering mode | ||||
|     bluetooth: | ||||
|       name: control ld2410 bluetooth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2410 | ||||
|     version: | ||||
|       name: presenece sensor version | ||||
|     mac_address: | ||||
|       name: presenece sensor mac address | ||||
							
								
								
									
										169
									
								
								tests/components/ld2410/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								tests/components/ld2410/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,169 @@ | ||||
| uart: | ||||
|   - id: uart_ld2410 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2410: | ||||
|   id: my_ld2410 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2410 | ||||
|     has_target: | ||||
|       name: presence | ||||
|     has_moving_target: | ||||
|       name: movement | ||||
|     has_still_target: | ||||
|       name: still | ||||
|     out_pin_presence_status: | ||||
|       name: out pin presence status | ||||
|  | ||||
| button: | ||||
|   - platform: ld2410 | ||||
|     factory_reset: | ||||
|       name: factory reset | ||||
|     restart: | ||||
|       name: restart | ||||
|     query_params: | ||||
|       name: query params | ||||
|  | ||||
| number: | ||||
|   - platform: ld2410 | ||||
|     light_threshold: | ||||
|       name: light threshold | ||||
|     timeout: | ||||
|       name: timeout | ||||
|     max_move_distance_gate: | ||||
|       name: max move distance gate | ||||
|     max_still_distance_gate: | ||||
|       name: max still distance gate | ||||
|     g0: | ||||
|       move_threshold: | ||||
|         name: g0 move threshold | ||||
|       still_threshold: | ||||
|         name: g0 still threshold | ||||
|     g1: | ||||
|       move_threshold: | ||||
|         name: g1 move threshold | ||||
|       still_threshold: | ||||
|         name: g1 still threshold | ||||
|     g2: | ||||
|       move_threshold: | ||||
|         name: g2 move threshold | ||||
|       still_threshold: | ||||
|         name: g2 still threshold | ||||
|     g3: | ||||
|       move_threshold: | ||||
|         name: g3 move threshold | ||||
|       still_threshold: | ||||
|         name: g3 still threshold | ||||
|     g4: | ||||
|       move_threshold: | ||||
|         name: g4 move threshold | ||||
|       still_threshold: | ||||
|         name: g4 still threshold | ||||
|     g5: | ||||
|       move_threshold: | ||||
|         name: g5 move threshold | ||||
|       still_threshold: | ||||
|         name: g5 still threshold | ||||
|     g6: | ||||
|       move_threshold: | ||||
|         name: g6 move threshold | ||||
|       still_threshold: | ||||
|         name: g6 still threshold | ||||
|     g7: | ||||
|       move_threshold: | ||||
|         name: g7 move threshold | ||||
|       still_threshold: | ||||
|         name: g7 still threshold | ||||
|     g8: | ||||
|       move_threshold: | ||||
|         name: g8 move threshold | ||||
|       still_threshold: | ||||
|         name: g8 still threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2410 | ||||
|     distance_resolution: | ||||
|       name: distance resolution | ||||
|     baud_rate: | ||||
|       name: baud rate | ||||
|     light_function: | ||||
|       name: light function | ||||
|     out_pin_level: | ||||
|       name: out ping level | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2410 | ||||
|     light: | ||||
|       name: light | ||||
|     moving_distance: | ||||
|       name: Moving distance | ||||
|     still_distance: | ||||
|       name: Still Distance | ||||
|     moving_energy: | ||||
|       name: Move Energy | ||||
|     still_energy: | ||||
|       name: Still Energy | ||||
|     detection_distance: | ||||
|       name: Distance Detection | ||||
|     g0: | ||||
|       move_energy: | ||||
|         name: g0 move energy | ||||
|       still_energy: | ||||
|         name: g0 still energy | ||||
|     g1: | ||||
|       move_energy: | ||||
|         name: g1 move energy | ||||
|       still_energy: | ||||
|         name: g1 still energy | ||||
|     g2: | ||||
|       move_energy: | ||||
|         name: g2 move energy | ||||
|       still_energy: | ||||
|         name: g2 still energy | ||||
|     g3: | ||||
|       move_energy: | ||||
|         name: g3 move energy | ||||
|       still_energy: | ||||
|         name: g3 still energy | ||||
|     g4: | ||||
|       move_energy: | ||||
|         name: g4 move energy | ||||
|       still_energy: | ||||
|         name: g4 still energy | ||||
|     g5: | ||||
|       move_energy: | ||||
|         name: g5 move energy | ||||
|       still_energy: | ||||
|         name: g5 still energy | ||||
|     g6: | ||||
|       move_energy: | ||||
|         name: g6 move energy | ||||
|       still_energy: | ||||
|         name: g6 still energy | ||||
|     g7: | ||||
|       move_energy: | ||||
|         name: g7 move energy | ||||
|       still_energy: | ||||
|         name: g7 still energy | ||||
|     g8: | ||||
|       move_energy: | ||||
|         name: g8 move energy | ||||
|       still_energy: | ||||
|         name: g8 still energy | ||||
|  | ||||
| switch: | ||||
|   - platform: ld2410 | ||||
|     engineering_mode: | ||||
|       name: control ld2410 engineering mode | ||||
|     bluetooth: | ||||
|       name: control ld2410 bluetooth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2410 | ||||
|     version: | ||||
|       name: presenece sensor version | ||||
|     mac_address: | ||||
|       name: presenece sensor mac address | ||||
							
								
								
									
										169
									
								
								tests/components/ld2410/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								tests/components/ld2410/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,169 @@ | ||||
| uart: | ||||
|   - id: uart_ld2410 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2410: | ||||
|   id: my_ld2410 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2410 | ||||
|     has_target: | ||||
|       name: presence | ||||
|     has_moving_target: | ||||
|       name: movement | ||||
|     has_still_target: | ||||
|       name: still | ||||
|     out_pin_presence_status: | ||||
|       name: out pin presence status | ||||
|  | ||||
| button: | ||||
|   - platform: ld2410 | ||||
|     factory_reset: | ||||
|       name: factory reset | ||||
|     restart: | ||||
|       name: restart | ||||
|     query_params: | ||||
|       name: query params | ||||
|  | ||||
| number: | ||||
|   - platform: ld2410 | ||||
|     light_threshold: | ||||
|       name: light threshold | ||||
|     timeout: | ||||
|       name: timeout | ||||
|     max_move_distance_gate: | ||||
|       name: max move distance gate | ||||
|     max_still_distance_gate: | ||||
|       name: max still distance gate | ||||
|     g0: | ||||
|       move_threshold: | ||||
|         name: g0 move threshold | ||||
|       still_threshold: | ||||
|         name: g0 still threshold | ||||
|     g1: | ||||
|       move_threshold: | ||||
|         name: g1 move threshold | ||||
|       still_threshold: | ||||
|         name: g1 still threshold | ||||
|     g2: | ||||
|       move_threshold: | ||||
|         name: g2 move threshold | ||||
|       still_threshold: | ||||
|         name: g2 still threshold | ||||
|     g3: | ||||
|       move_threshold: | ||||
|         name: g3 move threshold | ||||
|       still_threshold: | ||||
|         name: g3 still threshold | ||||
|     g4: | ||||
|       move_threshold: | ||||
|         name: g4 move threshold | ||||
|       still_threshold: | ||||
|         name: g4 still threshold | ||||
|     g5: | ||||
|       move_threshold: | ||||
|         name: g5 move threshold | ||||
|       still_threshold: | ||||
|         name: g5 still threshold | ||||
|     g6: | ||||
|       move_threshold: | ||||
|         name: g6 move threshold | ||||
|       still_threshold: | ||||
|         name: g6 still threshold | ||||
|     g7: | ||||
|       move_threshold: | ||||
|         name: g7 move threshold | ||||
|       still_threshold: | ||||
|         name: g7 still threshold | ||||
|     g8: | ||||
|       move_threshold: | ||||
|         name: g8 move threshold | ||||
|       still_threshold: | ||||
|         name: g8 still threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2410 | ||||
|     distance_resolution: | ||||
|       name: distance resolution | ||||
|     baud_rate: | ||||
|       name: baud rate | ||||
|     light_function: | ||||
|       name: light function | ||||
|     out_pin_level: | ||||
|       name: out ping level | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2410 | ||||
|     light: | ||||
|       name: light | ||||
|     moving_distance: | ||||
|       name: Moving distance | ||||
|     still_distance: | ||||
|       name: Still Distance | ||||
|     moving_energy: | ||||
|       name: Move Energy | ||||
|     still_energy: | ||||
|       name: Still Energy | ||||
|     detection_distance: | ||||
|       name: Distance Detection | ||||
|     g0: | ||||
|       move_energy: | ||||
|         name: g0 move energy | ||||
|       still_energy: | ||||
|         name: g0 still energy | ||||
|     g1: | ||||
|       move_energy: | ||||
|         name: g1 move energy | ||||
|       still_energy: | ||||
|         name: g1 still energy | ||||
|     g2: | ||||
|       move_energy: | ||||
|         name: g2 move energy | ||||
|       still_energy: | ||||
|         name: g2 still energy | ||||
|     g3: | ||||
|       move_energy: | ||||
|         name: g3 move energy | ||||
|       still_energy: | ||||
|         name: g3 still energy | ||||
|     g4: | ||||
|       move_energy: | ||||
|         name: g4 move energy | ||||
|       still_energy: | ||||
|         name: g4 still energy | ||||
|     g5: | ||||
|       move_energy: | ||||
|         name: g5 move energy | ||||
|       still_energy: | ||||
|         name: g5 still energy | ||||
|     g6: | ||||
|       move_energy: | ||||
|         name: g6 move energy | ||||
|       still_energy: | ||||
|         name: g6 still energy | ||||
|     g7: | ||||
|       move_energy: | ||||
|         name: g7 move energy | ||||
|       still_energy: | ||||
|         name: g7 still energy | ||||
|     g8: | ||||
|       move_energy: | ||||
|         name: g8 move energy | ||||
|       still_energy: | ||||
|         name: g8 still energy | ||||
|  | ||||
| switch: | ||||
|   - platform: ld2410 | ||||
|     engineering_mode: | ||||
|       name: control ld2410 engineering mode | ||||
|     bluetooth: | ||||
|       name: control ld2410 bluetooth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2410 | ||||
|     version: | ||||
|       name: presenece sensor version | ||||
|     mac_address: | ||||
|       name: presenece sensor mac address | ||||
							
								
								
									
										169
									
								
								tests/components/ld2410/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								tests/components/ld2410/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,169 @@ | ||||
| uart: | ||||
|   - id: uart_ld2410 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2410: | ||||
|   id: my_ld2410 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2410 | ||||
|     has_target: | ||||
|       name: presence | ||||
|     has_moving_target: | ||||
|       name: movement | ||||
|     has_still_target: | ||||
|       name: still | ||||
|     out_pin_presence_status: | ||||
|       name: out pin presence status | ||||
|  | ||||
| button: | ||||
|   - platform: ld2410 | ||||
|     factory_reset: | ||||
|       name: factory reset | ||||
|     restart: | ||||
|       name: restart | ||||
|     query_params: | ||||
|       name: query params | ||||
|  | ||||
| number: | ||||
|   - platform: ld2410 | ||||
|     light_threshold: | ||||
|       name: light threshold | ||||
|     timeout: | ||||
|       name: timeout | ||||
|     max_move_distance_gate: | ||||
|       name: max move distance gate | ||||
|     max_still_distance_gate: | ||||
|       name: max still distance gate | ||||
|     g0: | ||||
|       move_threshold: | ||||
|         name: g0 move threshold | ||||
|       still_threshold: | ||||
|         name: g0 still threshold | ||||
|     g1: | ||||
|       move_threshold: | ||||
|         name: g1 move threshold | ||||
|       still_threshold: | ||||
|         name: g1 still threshold | ||||
|     g2: | ||||
|       move_threshold: | ||||
|         name: g2 move threshold | ||||
|       still_threshold: | ||||
|         name: g2 still threshold | ||||
|     g3: | ||||
|       move_threshold: | ||||
|         name: g3 move threshold | ||||
|       still_threshold: | ||||
|         name: g3 still threshold | ||||
|     g4: | ||||
|       move_threshold: | ||||
|         name: g4 move threshold | ||||
|       still_threshold: | ||||
|         name: g4 still threshold | ||||
|     g5: | ||||
|       move_threshold: | ||||
|         name: g5 move threshold | ||||
|       still_threshold: | ||||
|         name: g5 still threshold | ||||
|     g6: | ||||
|       move_threshold: | ||||
|         name: g6 move threshold | ||||
|       still_threshold: | ||||
|         name: g6 still threshold | ||||
|     g7: | ||||
|       move_threshold: | ||||
|         name: g7 move threshold | ||||
|       still_threshold: | ||||
|         name: g7 still threshold | ||||
|     g8: | ||||
|       move_threshold: | ||||
|         name: g8 move threshold | ||||
|       still_threshold: | ||||
|         name: g8 still threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2410 | ||||
|     distance_resolution: | ||||
|       name: distance resolution | ||||
|     baud_rate: | ||||
|       name: baud rate | ||||
|     light_function: | ||||
|       name: light function | ||||
|     out_pin_level: | ||||
|       name: out ping level | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2410 | ||||
|     light: | ||||
|       name: light | ||||
|     moving_distance: | ||||
|       name: Moving distance | ||||
|     still_distance: | ||||
|       name: Still Distance | ||||
|     moving_energy: | ||||
|       name: Move Energy | ||||
|     still_energy: | ||||
|       name: Still Energy | ||||
|     detection_distance: | ||||
|       name: Distance Detection | ||||
|     g0: | ||||
|       move_energy: | ||||
|         name: g0 move energy | ||||
|       still_energy: | ||||
|         name: g0 still energy | ||||
|     g1: | ||||
|       move_energy: | ||||
|         name: g1 move energy | ||||
|       still_energy: | ||||
|         name: g1 still energy | ||||
|     g2: | ||||
|       move_energy: | ||||
|         name: g2 move energy | ||||
|       still_energy: | ||||
|         name: g2 still energy | ||||
|     g3: | ||||
|       move_energy: | ||||
|         name: g3 move energy | ||||
|       still_energy: | ||||
|         name: g3 still energy | ||||
|     g4: | ||||
|       move_energy: | ||||
|         name: g4 move energy | ||||
|       still_energy: | ||||
|         name: g4 still energy | ||||
|     g5: | ||||
|       move_energy: | ||||
|         name: g5 move energy | ||||
|       still_energy: | ||||
|         name: g5 still energy | ||||
|     g6: | ||||
|       move_energy: | ||||
|         name: g6 move energy | ||||
|       still_energy: | ||||
|         name: g6 still energy | ||||
|     g7: | ||||
|       move_energy: | ||||
|         name: g7 move energy | ||||
|       still_energy: | ||||
|         name: g7 still energy | ||||
|     g8: | ||||
|       move_energy: | ||||
|         name: g8 move energy | ||||
|       still_energy: | ||||
|         name: g8 still energy | ||||
|  | ||||
| switch: | ||||
|   - platform: ld2410 | ||||
|     engineering_mode: | ||||
|       name: control ld2410 engineering mode | ||||
|     bluetooth: | ||||
|       name: control ld2410 bluetooth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2410 | ||||
|     version: | ||||
|       name: presenece sensor version | ||||
|     mac_address: | ||||
|       name: presenece sensor mac address | ||||
							
								
								
									
										132
									
								
								tests/components/ld2420/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/ld2420/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| uart: | ||||
|   - id: uart_ld2420 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2420: | ||||
|   id: my_ld2420 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2420 | ||||
|     has_target: | ||||
|       name: Presence | ||||
|  | ||||
| button: | ||||
|   - platform: ld2420 | ||||
|     apply_config: | ||||
|       name: Apply Config | ||||
|     factory_reset: | ||||
|       name: Factory Reset | ||||
|     restart_module: | ||||
|       name: Restart Module | ||||
|     revert_config: | ||||
|       name: Undo Edits | ||||
|  | ||||
| number: | ||||
|   - platform: ld2420 | ||||
|     presence_timeout: | ||||
|       name: Detection Presence Timeout | ||||
|     min_gate_distance: | ||||
|       name: Detection Gate Minimum | ||||
|     max_gate_distance: | ||||
|       name: Detection Gate Maximum | ||||
|     gate_move_sensitivity: | ||||
|       name: Move Calibration Sensitivity Factor | ||||
|     gate_still_sensitivity: | ||||
|       name: Still Calibration Sensitivity Factor | ||||
|     gate_0: | ||||
|       move_threshold: | ||||
|         name: Gate 0 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 0 Still Threshold | ||||
|     gate_1: | ||||
|       move_threshold: | ||||
|         name: Gate 1 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 1 Still Threshold | ||||
|     gate_2: | ||||
|       move_threshold: | ||||
|         name: Gate 2 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 2 Still Threshold | ||||
|     gate_3: | ||||
|       move_threshold: | ||||
|         name: Gate 3 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 3 Still Threshold | ||||
|     gate_4: | ||||
|       move_threshold: | ||||
|         name: Gate 4 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 4 Still Threshold | ||||
|     gate_5: | ||||
|       move_threshold: | ||||
|         name: Gate 5 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 5 Still Threshold | ||||
|     gate_6: | ||||
|       move_threshold: | ||||
|         name: Gate 6 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 6 Still Threshold | ||||
|     gate_7: | ||||
|       move_threshold: | ||||
|         name: Gate 7 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 7 Still Threshold | ||||
|     gate_8: | ||||
|       move_threshold: | ||||
|         name: Gate 8 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 8 Still Threshold | ||||
|     gate_9: | ||||
|       move_threshold: | ||||
|         name: Gate 9 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 9 Still Threshold | ||||
|     gate_10: | ||||
|       move_threshold: | ||||
|         name: Gate 10 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 10 Still Threshold | ||||
|     gate_11: | ||||
|       move_threshold: | ||||
|         name: Gate 11 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 11 Still Threshold | ||||
|     gate_12: | ||||
|       move_threshold: | ||||
|         name: Gate 12 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 12 Still Threshold | ||||
|     gate_13: | ||||
|       move_threshold: | ||||
|         name: Gate 13 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 13 Still Threshold | ||||
|     gate_14: | ||||
|       move_threshold: | ||||
|         name: Gate 14 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 14 Still Threshold | ||||
|     gate_15: | ||||
|       move_threshold: | ||||
|         name: Gate 15 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 15 Still Threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2420 | ||||
|     operating_mode: | ||||
|       name: Operating Mode | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2420 | ||||
|     moving_distance: | ||||
|       name: "Moving distance (cm)" | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2420 | ||||
|     fw_version: | ||||
|       name: LD2420 Firmware | ||||
							
								
								
									
										132
									
								
								tests/components/ld2420/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/ld2420/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| uart: | ||||
|   - id: uart_ld2420 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2420: | ||||
|   id: my_ld2420 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2420 | ||||
|     has_target: | ||||
|       name: Presence | ||||
|  | ||||
| button: | ||||
|   - platform: ld2420 | ||||
|     apply_config: | ||||
|       name: Apply Config | ||||
|     factory_reset: | ||||
|       name: Factory Reset | ||||
|     restart_module: | ||||
|       name: Restart Module | ||||
|     revert_config: | ||||
|       name: Undo Edits | ||||
|  | ||||
| number: | ||||
|   - platform: ld2420 | ||||
|     presence_timeout: | ||||
|       name: Detection Presence Timeout | ||||
|     min_gate_distance: | ||||
|       name: Detection Gate Minimum | ||||
|     max_gate_distance: | ||||
|       name: Detection Gate Maximum | ||||
|     gate_move_sensitivity: | ||||
|       name: Move Calibration Sensitivity Factor | ||||
|     gate_still_sensitivity: | ||||
|       name: Still Calibration Sensitivity Factor | ||||
|     gate_0: | ||||
|       move_threshold: | ||||
|         name: Gate 0 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 0 Still Threshold | ||||
|     gate_1: | ||||
|       move_threshold: | ||||
|         name: Gate 1 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 1 Still Threshold | ||||
|     gate_2: | ||||
|       move_threshold: | ||||
|         name: Gate 2 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 2 Still Threshold | ||||
|     gate_3: | ||||
|       move_threshold: | ||||
|         name: Gate 3 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 3 Still Threshold | ||||
|     gate_4: | ||||
|       move_threshold: | ||||
|         name: Gate 4 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 4 Still Threshold | ||||
|     gate_5: | ||||
|       move_threshold: | ||||
|         name: Gate 5 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 5 Still Threshold | ||||
|     gate_6: | ||||
|       move_threshold: | ||||
|         name: Gate 6 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 6 Still Threshold | ||||
|     gate_7: | ||||
|       move_threshold: | ||||
|         name: Gate 7 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 7 Still Threshold | ||||
|     gate_8: | ||||
|       move_threshold: | ||||
|         name: Gate 8 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 8 Still Threshold | ||||
|     gate_9: | ||||
|       move_threshold: | ||||
|         name: Gate 9 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 9 Still Threshold | ||||
|     gate_10: | ||||
|       move_threshold: | ||||
|         name: Gate 10 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 10 Still Threshold | ||||
|     gate_11: | ||||
|       move_threshold: | ||||
|         name: Gate 11 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 11 Still Threshold | ||||
|     gate_12: | ||||
|       move_threshold: | ||||
|         name: Gate 12 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 12 Still Threshold | ||||
|     gate_13: | ||||
|       move_threshold: | ||||
|         name: Gate 13 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 13 Still Threshold | ||||
|     gate_14: | ||||
|       move_threshold: | ||||
|         name: Gate 14 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 14 Still Threshold | ||||
|     gate_15: | ||||
|       move_threshold: | ||||
|         name: Gate 15 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 15 Still Threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2420 | ||||
|     operating_mode: | ||||
|       name: Operating Mode | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2420 | ||||
|     moving_distance: | ||||
|       name: "Moving distance (cm)" | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2420 | ||||
|     fw_version: | ||||
|       name: LD2420 Firmware | ||||
							
								
								
									
										132
									
								
								tests/components/ld2420/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/ld2420/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| uart: | ||||
|   - id: uart_ld2420 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2420: | ||||
|   id: my_ld2420 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2420 | ||||
|     has_target: | ||||
|       name: Presence | ||||
|  | ||||
| button: | ||||
|   - platform: ld2420 | ||||
|     apply_config: | ||||
|       name: Apply Config | ||||
|     factory_reset: | ||||
|       name: Factory Reset | ||||
|     restart_module: | ||||
|       name: Restart Module | ||||
|     revert_config: | ||||
|       name: Undo Edits | ||||
|  | ||||
| number: | ||||
|   - platform: ld2420 | ||||
|     presence_timeout: | ||||
|       name: Detection Presence Timeout | ||||
|     min_gate_distance: | ||||
|       name: Detection Gate Minimum | ||||
|     max_gate_distance: | ||||
|       name: Detection Gate Maximum | ||||
|     gate_move_sensitivity: | ||||
|       name: Move Calibration Sensitivity Factor | ||||
|     gate_still_sensitivity: | ||||
|       name: Still Calibration Sensitivity Factor | ||||
|     gate_0: | ||||
|       move_threshold: | ||||
|         name: Gate 0 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 0 Still Threshold | ||||
|     gate_1: | ||||
|       move_threshold: | ||||
|         name: Gate 1 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 1 Still Threshold | ||||
|     gate_2: | ||||
|       move_threshold: | ||||
|         name: Gate 2 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 2 Still Threshold | ||||
|     gate_3: | ||||
|       move_threshold: | ||||
|         name: Gate 3 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 3 Still Threshold | ||||
|     gate_4: | ||||
|       move_threshold: | ||||
|         name: Gate 4 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 4 Still Threshold | ||||
|     gate_5: | ||||
|       move_threshold: | ||||
|         name: Gate 5 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 5 Still Threshold | ||||
|     gate_6: | ||||
|       move_threshold: | ||||
|         name: Gate 6 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 6 Still Threshold | ||||
|     gate_7: | ||||
|       move_threshold: | ||||
|         name: Gate 7 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 7 Still Threshold | ||||
|     gate_8: | ||||
|       move_threshold: | ||||
|         name: Gate 8 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 8 Still Threshold | ||||
|     gate_9: | ||||
|       move_threshold: | ||||
|         name: Gate 9 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 9 Still Threshold | ||||
|     gate_10: | ||||
|       move_threshold: | ||||
|         name: Gate 10 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 10 Still Threshold | ||||
|     gate_11: | ||||
|       move_threshold: | ||||
|         name: Gate 11 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 11 Still Threshold | ||||
|     gate_12: | ||||
|       move_threshold: | ||||
|         name: Gate 12 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 12 Still Threshold | ||||
|     gate_13: | ||||
|       move_threshold: | ||||
|         name: Gate 13 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 13 Still Threshold | ||||
|     gate_14: | ||||
|       move_threshold: | ||||
|         name: Gate 14 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 14 Still Threshold | ||||
|     gate_15: | ||||
|       move_threshold: | ||||
|         name: Gate 15 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 15 Still Threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2420 | ||||
|     operating_mode: | ||||
|       name: Operating Mode | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2420 | ||||
|     moving_distance: | ||||
|       name: "Moving distance (cm)" | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2420 | ||||
|     fw_version: | ||||
|       name: LD2420 Firmware | ||||
							
								
								
									
										132
									
								
								tests/components/ld2420/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/ld2420/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| uart: | ||||
|   - id: uart_ld2420 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2420: | ||||
|   id: my_ld2420 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2420 | ||||
|     has_target: | ||||
|       name: Presence | ||||
|  | ||||
| button: | ||||
|   - platform: ld2420 | ||||
|     apply_config: | ||||
|       name: Apply Config | ||||
|     factory_reset: | ||||
|       name: Factory Reset | ||||
|     restart_module: | ||||
|       name: Restart Module | ||||
|     revert_config: | ||||
|       name: Undo Edits | ||||
|  | ||||
| number: | ||||
|   - platform: ld2420 | ||||
|     presence_timeout: | ||||
|       name: Detection Presence Timeout | ||||
|     min_gate_distance: | ||||
|       name: Detection Gate Minimum | ||||
|     max_gate_distance: | ||||
|       name: Detection Gate Maximum | ||||
|     gate_move_sensitivity: | ||||
|       name: Move Calibration Sensitivity Factor | ||||
|     gate_still_sensitivity: | ||||
|       name: Still Calibration Sensitivity Factor | ||||
|     gate_0: | ||||
|       move_threshold: | ||||
|         name: Gate 0 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 0 Still Threshold | ||||
|     gate_1: | ||||
|       move_threshold: | ||||
|         name: Gate 1 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 1 Still Threshold | ||||
|     gate_2: | ||||
|       move_threshold: | ||||
|         name: Gate 2 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 2 Still Threshold | ||||
|     gate_3: | ||||
|       move_threshold: | ||||
|         name: Gate 3 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 3 Still Threshold | ||||
|     gate_4: | ||||
|       move_threshold: | ||||
|         name: Gate 4 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 4 Still Threshold | ||||
|     gate_5: | ||||
|       move_threshold: | ||||
|         name: Gate 5 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 5 Still Threshold | ||||
|     gate_6: | ||||
|       move_threshold: | ||||
|         name: Gate 6 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 6 Still Threshold | ||||
|     gate_7: | ||||
|       move_threshold: | ||||
|         name: Gate 7 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 7 Still Threshold | ||||
|     gate_8: | ||||
|       move_threshold: | ||||
|         name: Gate 8 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 8 Still Threshold | ||||
|     gate_9: | ||||
|       move_threshold: | ||||
|         name: Gate 9 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 9 Still Threshold | ||||
|     gate_10: | ||||
|       move_threshold: | ||||
|         name: Gate 10 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 10 Still Threshold | ||||
|     gate_11: | ||||
|       move_threshold: | ||||
|         name: Gate 11 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 11 Still Threshold | ||||
|     gate_12: | ||||
|       move_threshold: | ||||
|         name: Gate 12 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 12 Still Threshold | ||||
|     gate_13: | ||||
|       move_threshold: | ||||
|         name: Gate 13 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 13 Still Threshold | ||||
|     gate_14: | ||||
|       move_threshold: | ||||
|         name: Gate 14 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 14 Still Threshold | ||||
|     gate_15: | ||||
|       move_threshold: | ||||
|         name: Gate 15 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 15 Still Threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2420 | ||||
|     operating_mode: | ||||
|       name: Operating Mode | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2420 | ||||
|     moving_distance: | ||||
|       name: "Moving distance (cm)" | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2420 | ||||
|     fw_version: | ||||
|       name: LD2420 Firmware | ||||
							
								
								
									
										132
									
								
								tests/components/ld2420/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/ld2420/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| uart: | ||||
|   - id: uart_ld2420 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2420: | ||||
|   id: my_ld2420 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2420 | ||||
|     has_target: | ||||
|       name: Presence | ||||
|  | ||||
| button: | ||||
|   - platform: ld2420 | ||||
|     apply_config: | ||||
|       name: Apply Config | ||||
|     factory_reset: | ||||
|       name: Factory Reset | ||||
|     restart_module: | ||||
|       name: Restart Module | ||||
|     revert_config: | ||||
|       name: Undo Edits | ||||
|  | ||||
| number: | ||||
|   - platform: ld2420 | ||||
|     presence_timeout: | ||||
|       name: Detection Presence Timeout | ||||
|     min_gate_distance: | ||||
|       name: Detection Gate Minimum | ||||
|     max_gate_distance: | ||||
|       name: Detection Gate Maximum | ||||
|     gate_move_sensitivity: | ||||
|       name: Move Calibration Sensitivity Factor | ||||
|     gate_still_sensitivity: | ||||
|       name: Still Calibration Sensitivity Factor | ||||
|     gate_0: | ||||
|       move_threshold: | ||||
|         name: Gate 0 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 0 Still Threshold | ||||
|     gate_1: | ||||
|       move_threshold: | ||||
|         name: Gate 1 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 1 Still Threshold | ||||
|     gate_2: | ||||
|       move_threshold: | ||||
|         name: Gate 2 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 2 Still Threshold | ||||
|     gate_3: | ||||
|       move_threshold: | ||||
|         name: Gate 3 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 3 Still Threshold | ||||
|     gate_4: | ||||
|       move_threshold: | ||||
|         name: Gate 4 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 4 Still Threshold | ||||
|     gate_5: | ||||
|       move_threshold: | ||||
|         name: Gate 5 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 5 Still Threshold | ||||
|     gate_6: | ||||
|       move_threshold: | ||||
|         name: Gate 6 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 6 Still Threshold | ||||
|     gate_7: | ||||
|       move_threshold: | ||||
|         name: Gate 7 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 7 Still Threshold | ||||
|     gate_8: | ||||
|       move_threshold: | ||||
|         name: Gate 8 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 8 Still Threshold | ||||
|     gate_9: | ||||
|       move_threshold: | ||||
|         name: Gate 9 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 9 Still Threshold | ||||
|     gate_10: | ||||
|       move_threshold: | ||||
|         name: Gate 10 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 10 Still Threshold | ||||
|     gate_11: | ||||
|       move_threshold: | ||||
|         name: Gate 11 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 11 Still Threshold | ||||
|     gate_12: | ||||
|       move_threshold: | ||||
|         name: Gate 12 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 12 Still Threshold | ||||
|     gate_13: | ||||
|       move_threshold: | ||||
|         name: Gate 13 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 13 Still Threshold | ||||
|     gate_14: | ||||
|       move_threshold: | ||||
|         name: Gate 14 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 14 Still Threshold | ||||
|     gate_15: | ||||
|       move_threshold: | ||||
|         name: Gate 15 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 15 Still Threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2420 | ||||
|     operating_mode: | ||||
|       name: Operating Mode | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2420 | ||||
|     moving_distance: | ||||
|       name: "Moving distance (cm)" | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2420 | ||||
|     fw_version: | ||||
|       name: LD2420 Firmware | ||||
							
								
								
									
										132
									
								
								tests/components/ld2420/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/ld2420/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| uart: | ||||
|   - id: uart_ld2420 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| ld2420: | ||||
|   id: my_ld2420 | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: ld2420 | ||||
|     has_target: | ||||
|       name: Presence | ||||
|  | ||||
| button: | ||||
|   - platform: ld2420 | ||||
|     apply_config: | ||||
|       name: Apply Config | ||||
|     factory_reset: | ||||
|       name: Factory Reset | ||||
|     restart_module: | ||||
|       name: Restart Module | ||||
|     revert_config: | ||||
|       name: Undo Edits | ||||
|  | ||||
| number: | ||||
|   - platform: ld2420 | ||||
|     presence_timeout: | ||||
|       name: Detection Presence Timeout | ||||
|     min_gate_distance: | ||||
|       name: Detection Gate Minimum | ||||
|     max_gate_distance: | ||||
|       name: Detection Gate Maximum | ||||
|     gate_move_sensitivity: | ||||
|       name: Move Calibration Sensitivity Factor | ||||
|     gate_still_sensitivity: | ||||
|       name: Still Calibration Sensitivity Factor | ||||
|     gate_0: | ||||
|       move_threshold: | ||||
|         name: Gate 0 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 0 Still Threshold | ||||
|     gate_1: | ||||
|       move_threshold: | ||||
|         name: Gate 1 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 1 Still Threshold | ||||
|     gate_2: | ||||
|       move_threshold: | ||||
|         name: Gate 2 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 2 Still Threshold | ||||
|     gate_3: | ||||
|       move_threshold: | ||||
|         name: Gate 3 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 3 Still Threshold | ||||
|     gate_4: | ||||
|       move_threshold: | ||||
|         name: Gate 4 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 4 Still Threshold | ||||
|     gate_5: | ||||
|       move_threshold: | ||||
|         name: Gate 5 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 5 Still Threshold | ||||
|     gate_6: | ||||
|       move_threshold: | ||||
|         name: Gate 6 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 6 Still Threshold | ||||
|     gate_7: | ||||
|       move_threshold: | ||||
|         name: Gate 7 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 7 Still Threshold | ||||
|     gate_8: | ||||
|       move_threshold: | ||||
|         name: Gate 8 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 8 Still Threshold | ||||
|     gate_9: | ||||
|       move_threshold: | ||||
|         name: Gate 9 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 9 Still Threshold | ||||
|     gate_10: | ||||
|       move_threshold: | ||||
|         name: Gate 10 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 10 Still Threshold | ||||
|     gate_11: | ||||
|       move_threshold: | ||||
|         name: Gate 11 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 11 Still Threshold | ||||
|     gate_12: | ||||
|       move_threshold: | ||||
|         name: Gate 12 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 12 Still Threshold | ||||
|     gate_13: | ||||
|       move_threshold: | ||||
|         name: Gate 13 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 13 Still Threshold | ||||
|     gate_14: | ||||
|       move_threshold: | ||||
|         name: Gate 14 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 14 Still Threshold | ||||
|     gate_15: | ||||
|       move_threshold: | ||||
|         name: Gate 15 Move Threshold | ||||
|       still_threshold: | ||||
|         name: Gate 15 Still Threshold | ||||
|  | ||||
| select: | ||||
|   - platform: ld2420 | ||||
|     operating_mode: | ||||
|       name: Operating Mode | ||||
|  | ||||
| sensor: | ||||
|   - platform: ld2420 | ||||
|     moving_distance: | ||||
|       name: "Moving distance (cm)" | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: ld2420 | ||||
|     fw_version: | ||||
|       name: LD2420 Firmware | ||||
							
								
								
									
										11
									
								
								tests/components/ledc/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/ledc/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.ledc.set_frequency: | ||||
|           id: test_ledc | ||||
|           frequency: 100Hz | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: test_ledc | ||||
|     pin: 4 | ||||
							
								
								
									
										11
									
								
								tests/components/ledc/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/ledc/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.ledc.set_frequency: | ||||
|           id: test_ledc | ||||
|           frequency: 100Hz | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: test_ledc | ||||
|     pin: 4 | ||||
							
								
								
									
										11
									
								
								tests/components/ledc/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/ledc/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.ledc.set_frequency: | ||||
|           id: test_ledc | ||||
|           frequency: 100Hz | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: test_ledc | ||||
|     pin: 4 | ||||
							
								
								
									
										11
									
								
								tests/components/ledc/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/ledc/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.ledc.set_frequency: | ||||
|           id: test_ledc | ||||
|           frequency: 100Hz | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: test_ledc | ||||
|     pin: 4 | ||||
							
								
								
									
										132
									
								
								tests/components/light/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/light/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - light.toggle: test_binary_light | ||||
|       - light.turn_off: test_rgb_light | ||||
|       - light.turn_on: | ||||
|           id: test_rgb_light | ||||
|           brightness: 100% | ||||
|           red: 100% | ||||
|           green: 100% | ||||
|           blue: 1.0 | ||||
|       - light.control: | ||||
|           id: test_monochromatic_light | ||||
|           state: on | ||||
|       - light.dim_relative: | ||||
|           id: test_monochromatic_light | ||||
|           relative_brightness: 5% | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 0 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_1 | ||||
|     pin: 1 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_2 | ||||
|     pin: 2 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_3 | ||||
|     pin: 3 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_4 | ||||
|     pin: 4 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_5 | ||||
|     pin: 5 | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
|     id: test_binary_light | ||||
|     name: Binary Light | ||||
|     output: test_binary | ||||
|     effects: | ||||
|       - strobe: | ||||
|     on_state: | ||||
|       - logger.log: Binary light state changed | ||||
|   - platform: monochromatic | ||||
|     id: test_monochromatic_light | ||||
|     name: Monochromatic Light | ||||
|     output: test_ledc_1 | ||||
|     gamma_correct: 2.8 | ||||
|     default_transition_length: 2s | ||||
|     effects: | ||||
|       - strobe: | ||||
|       - flicker: | ||||
|       - flicker: | ||||
|           name: My Flicker | ||||
|           alpha: 98% | ||||
|           intensity: 1.5% | ||||
|       - lambda: | ||||
|           name: My Custom Effect | ||||
|           update_interval: 1s | ||||
|           lambda: |- | ||||
|             static int state = 0; | ||||
|             state += 1; | ||||
|             if (state == 4) | ||||
|               state = 0; | ||||
|       - pulse: | ||||
|           transition_length: 10s | ||||
|           update_interval: 20s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|       - pulse: | ||||
|           name: pulse2 | ||||
|           transition_length: | ||||
|             on_length: 10s | ||||
|             off_length: 5s | ||||
|           update_interval: 15s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|   - platform: rgb | ||||
|     id: test_rgb_light | ||||
|     name: RGB Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|   - platform: rgbw | ||||
|     id: test_rgbw_light | ||||
|     name: RGBW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     white: test_ledc_4 | ||||
|     color_interlock: true | ||||
|   - platform: rgbww | ||||
|     id: test_rgbww_light | ||||
|     name: RGBWW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     cold_white: test_ledc_4 | ||||
|     warm_white: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: rgbct | ||||
|     id: test_rgbct_light | ||||
|     name: RGBCT Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     color_temperature: test_ledc_4 | ||||
|     white_brightness: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: cwww | ||||
|     id: test_cwww_light | ||||
|     name: CWWW Light | ||||
|     cold_white: test_ledc_1 | ||||
|     warm_white: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     constant_brightness: true | ||||
|   - platform: color_temperature | ||||
|     id: test_color_temperature_light | ||||
|     name: CT Light | ||||
|     color_temperature: test_ledc_1 | ||||
|     brightness: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
							
								
								
									
										132
									
								
								tests/components/light/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/light/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - light.toggle: test_binary_light | ||||
|       - light.turn_off: test_rgb_light | ||||
|       - light.turn_on: | ||||
|           id: test_rgb_light | ||||
|           brightness: 100% | ||||
|           red: 100% | ||||
|           green: 100% | ||||
|           blue: 1.0 | ||||
|       - light.control: | ||||
|           id: test_monochromatic_light | ||||
|           state: on | ||||
|       - light.dim_relative: | ||||
|           id: test_monochromatic_light | ||||
|           relative_brightness: 5% | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 0 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_1 | ||||
|     pin: 1 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_2 | ||||
|     pin: 2 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_3 | ||||
|     pin: 3 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_4 | ||||
|     pin: 4 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_5 | ||||
|     pin: 5 | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
|     id: test_binary_light | ||||
|     name: Binary Light | ||||
|     output: test_binary | ||||
|     effects: | ||||
|       - strobe: | ||||
|     on_state: | ||||
|       - logger.log: Binary light state changed | ||||
|   - platform: monochromatic | ||||
|     id: test_monochromatic_light | ||||
|     name: Monochromatic Light | ||||
|     output: test_ledc_1 | ||||
|     gamma_correct: 2.8 | ||||
|     default_transition_length: 2s | ||||
|     effects: | ||||
|       - strobe: | ||||
|       - flicker: | ||||
|       - flicker: | ||||
|           name: My Flicker | ||||
|           alpha: 98% | ||||
|           intensity: 1.5% | ||||
|       - lambda: | ||||
|           name: My Custom Effect | ||||
|           update_interval: 1s | ||||
|           lambda: |- | ||||
|             static int state = 0; | ||||
|             state += 1; | ||||
|             if (state == 4) | ||||
|               state = 0; | ||||
|       - pulse: | ||||
|           transition_length: 10s | ||||
|           update_interval: 20s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|       - pulse: | ||||
|           name: pulse2 | ||||
|           transition_length: | ||||
|             on_length: 10s | ||||
|             off_length: 5s | ||||
|           update_interval: 15s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|   - platform: rgb | ||||
|     id: test_rgb_light | ||||
|     name: RGB Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|   - platform: rgbw | ||||
|     id: test_rgbw_light | ||||
|     name: RGBW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     white: test_ledc_4 | ||||
|     color_interlock: true | ||||
|   - platform: rgbww | ||||
|     id: test_rgbww_light | ||||
|     name: RGBWW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     cold_white: test_ledc_4 | ||||
|     warm_white: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: rgbct | ||||
|     id: test_rgbct_light | ||||
|     name: RGBCT Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     color_temperature: test_ledc_4 | ||||
|     white_brightness: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: cwww | ||||
|     id: test_cwww_light | ||||
|     name: CWWW Light | ||||
|     cold_white: test_ledc_1 | ||||
|     warm_white: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     constant_brightness: true | ||||
|   - platform: color_temperature | ||||
|     id: test_color_temperature_light | ||||
|     name: CT Light | ||||
|     color_temperature: test_ledc_1 | ||||
|     brightness: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
							
								
								
									
										132
									
								
								tests/components/light/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/light/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - light.toggle: test_binary_light | ||||
|       - light.turn_off: test_rgb_light | ||||
|       - light.turn_on: | ||||
|           id: test_rgb_light | ||||
|           brightness: 100% | ||||
|           red: 100% | ||||
|           green: 100% | ||||
|           blue: 1.0 | ||||
|       - light.control: | ||||
|           id: test_monochromatic_light | ||||
|           state: on | ||||
|       - light.dim_relative: | ||||
|           id: test_monochromatic_light | ||||
|           relative_brightness: 5% | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 12 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_1 | ||||
|     pin: 13 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_2 | ||||
|     pin: 14 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_3 | ||||
|     pin: 15 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_4 | ||||
|     pin: 16 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_5 | ||||
|     pin: 17 | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
|     id: test_binary_light | ||||
|     name: Binary Light | ||||
|     output: test_binary | ||||
|     effects: | ||||
|       - strobe: | ||||
|     on_state: | ||||
|       - logger.log: Binary light state changed | ||||
|   - platform: monochromatic | ||||
|     id: test_monochromatic_light | ||||
|     name: Monochromatic Light | ||||
|     output: test_ledc_1 | ||||
|     gamma_correct: 2.8 | ||||
|     default_transition_length: 2s | ||||
|     effects: | ||||
|       - strobe: | ||||
|       - flicker: | ||||
|       - flicker: | ||||
|           name: My Flicker | ||||
|           alpha: 98% | ||||
|           intensity: 1.5% | ||||
|       - lambda: | ||||
|           name: My Custom Effect | ||||
|           update_interval: 1s | ||||
|           lambda: |- | ||||
|             static int state = 0; | ||||
|             state += 1; | ||||
|             if (state == 4) | ||||
|               state = 0; | ||||
|       - pulse: | ||||
|           transition_length: 10s | ||||
|           update_interval: 20s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|       - pulse: | ||||
|           name: pulse2 | ||||
|           transition_length: | ||||
|             on_length: 10s | ||||
|             off_length: 5s | ||||
|           update_interval: 15s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|   - platform: rgb | ||||
|     id: test_rgb_light | ||||
|     name: RGB Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|   - platform: rgbw | ||||
|     id: test_rgbw_light | ||||
|     name: RGBW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     white: test_ledc_4 | ||||
|     color_interlock: true | ||||
|   - platform: rgbww | ||||
|     id: test_rgbww_light | ||||
|     name: RGBWW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     cold_white: test_ledc_4 | ||||
|     warm_white: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: rgbct | ||||
|     id: test_rgbct_light | ||||
|     name: RGBCT Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     color_temperature: test_ledc_4 | ||||
|     white_brightness: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: cwww | ||||
|     id: test_cwww_light | ||||
|     name: CWWW Light | ||||
|     cold_white: test_ledc_1 | ||||
|     warm_white: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     constant_brightness: true | ||||
|   - platform: color_temperature | ||||
|     id: test_color_temperature_light | ||||
|     name: CT Light | ||||
|     color_temperature: test_ledc_1 | ||||
|     brightness: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
							
								
								
									
										132
									
								
								tests/components/light/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/light/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - light.toggle: test_binary_light | ||||
|       - light.turn_off: test_rgb_light | ||||
|       - light.turn_on: | ||||
|           id: test_rgb_light | ||||
|           brightness: 100% | ||||
|           red: 100% | ||||
|           green: 100% | ||||
|           blue: 1.0 | ||||
|       - light.control: | ||||
|           id: test_monochromatic_light | ||||
|           state: on | ||||
|       - light.dim_relative: | ||||
|           id: test_monochromatic_light | ||||
|           relative_brightness: 5% | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 12 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_1 | ||||
|     pin: 13 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_2 | ||||
|     pin: 14 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_3 | ||||
|     pin: 15 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_4 | ||||
|     pin: 16 | ||||
|   - platform: ledc | ||||
|     id: test_ledc_5 | ||||
|     pin: 17 | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
|     id: test_binary_light | ||||
|     name: Binary Light | ||||
|     output: test_binary | ||||
|     effects: | ||||
|       - strobe: | ||||
|     on_state: | ||||
|       - logger.log: Binary light state changed | ||||
|   - platform: monochromatic | ||||
|     id: test_monochromatic_light | ||||
|     name: Monochromatic Light | ||||
|     output: test_ledc_1 | ||||
|     gamma_correct: 2.8 | ||||
|     default_transition_length: 2s | ||||
|     effects: | ||||
|       - strobe: | ||||
|       - flicker: | ||||
|       - flicker: | ||||
|           name: My Flicker | ||||
|           alpha: 98% | ||||
|           intensity: 1.5% | ||||
|       - lambda: | ||||
|           name: My Custom Effect | ||||
|           update_interval: 1s | ||||
|           lambda: |- | ||||
|             static int state = 0; | ||||
|             state += 1; | ||||
|             if (state == 4) | ||||
|               state = 0; | ||||
|       - pulse: | ||||
|           transition_length: 10s | ||||
|           update_interval: 20s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|       - pulse: | ||||
|           name: pulse2 | ||||
|           transition_length: | ||||
|             on_length: 10s | ||||
|             off_length: 5s | ||||
|           update_interval: 15s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|   - platform: rgb | ||||
|     id: test_rgb_light | ||||
|     name: RGB Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|   - platform: rgbw | ||||
|     id: test_rgbw_light | ||||
|     name: RGBW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     white: test_ledc_4 | ||||
|     color_interlock: true | ||||
|   - platform: rgbww | ||||
|     id: test_rgbww_light | ||||
|     name: RGBWW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     cold_white: test_ledc_4 | ||||
|     warm_white: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: rgbct | ||||
|     id: test_rgbct_light | ||||
|     name: RGBCT Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     color_temperature: test_ledc_4 | ||||
|     white_brightness: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: cwww | ||||
|     id: test_cwww_light | ||||
|     name: CWWW Light | ||||
|     cold_white: test_ledc_1 | ||||
|     warm_white: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     constant_brightness: true | ||||
|   - platform: color_temperature | ||||
|     id: test_color_temperature_light | ||||
|     name: CT Light | ||||
|     color_temperature: test_ledc_1 | ||||
|     brightness: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
							
								
								
									
										132
									
								
								tests/components/light/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/light/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - light.toggle: test_binary_light | ||||
|       - light.turn_off: test_rgb_light | ||||
|       - light.turn_on: | ||||
|           id: test_rgb_light | ||||
|           brightness: 100% | ||||
|           red: 100% | ||||
|           green: 100% | ||||
|           blue: 1.0 | ||||
|       - light.control: | ||||
|           id: test_monochromatic_light | ||||
|           state: on | ||||
|       - light.dim_relative: | ||||
|           id: test_monochromatic_light | ||||
|           relative_brightness: 5% | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|   - platform: esp8266_pwm | ||||
|     id: test_ledc_1 | ||||
|     pin: 12 | ||||
|   - platform: esp8266_pwm | ||||
|     id: test_ledc_2 | ||||
|     pin: 13 | ||||
|   - platform: esp8266_pwm | ||||
|     id: test_ledc_3 | ||||
|     pin: 14 | ||||
|   - platform: esp8266_pwm | ||||
|     id: test_ledc_4 | ||||
|     pin: 15 | ||||
|   - platform: esp8266_pwm | ||||
|     id: test_ledc_5 | ||||
|     pin: 16 | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
|     id: test_binary_light | ||||
|     name: Binary Light | ||||
|     output: test_binary | ||||
|     effects: | ||||
|       - strobe: | ||||
|     on_state: | ||||
|       - logger.log: Binary light state changed | ||||
|   - platform: monochromatic | ||||
|     id: test_monochromatic_light | ||||
|     name: Monochromatic Light | ||||
|     output: test_ledc_1 | ||||
|     gamma_correct: 2.8 | ||||
|     default_transition_length: 2s | ||||
|     effects: | ||||
|       - strobe: | ||||
|       - flicker: | ||||
|       - flicker: | ||||
|           name: My Flicker | ||||
|           alpha: 98% | ||||
|           intensity: 1.5% | ||||
|       - lambda: | ||||
|           name: My Custom Effect | ||||
|           update_interval: 1s | ||||
|           lambda: |- | ||||
|             static int state = 0; | ||||
|             state += 1; | ||||
|             if (state == 4) | ||||
|               state = 0; | ||||
|       - pulse: | ||||
|           transition_length: 10s | ||||
|           update_interval: 20s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|       - pulse: | ||||
|           name: pulse2 | ||||
|           transition_length: | ||||
|             on_length: 10s | ||||
|             off_length: 5s | ||||
|           update_interval: 15s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|   - platform: rgb | ||||
|     id: test_rgb_light | ||||
|     name: RGB Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|   - platform: rgbw | ||||
|     id: test_rgbw_light | ||||
|     name: RGBW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     white: test_ledc_4 | ||||
|     color_interlock: true | ||||
|   - platform: rgbww | ||||
|     id: test_rgbww_light | ||||
|     name: RGBWW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     cold_white: test_ledc_4 | ||||
|     warm_white: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: rgbct | ||||
|     id: test_rgbct_light | ||||
|     name: RGBCT Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     color_temperature: test_ledc_4 | ||||
|     white_brightness: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: cwww | ||||
|     id: test_cwww_light | ||||
|     name: CWWW Light | ||||
|     cold_white: test_ledc_1 | ||||
|     warm_white: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     constant_brightness: true | ||||
|   - platform: color_temperature | ||||
|     id: test_color_temperature_light | ||||
|     name: CT Light | ||||
|     color_temperature: test_ledc_1 | ||||
|     brightness: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
							
								
								
									
										132
									
								
								tests/components/light/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								tests/components/light/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - light.toggle: test_binary_light | ||||
|       - light.turn_off: test_rgb_light | ||||
|       - light.turn_on: | ||||
|           id: test_rgb_light | ||||
|           brightness: 100% | ||||
|           red: 100% | ||||
|           green: 100% | ||||
|           blue: 1.0 | ||||
|       - light.control: | ||||
|           id: test_monochromatic_light | ||||
|           state: on | ||||
|       - light.dim_relative: | ||||
|           id: test_monochromatic_light | ||||
|           relative_brightness: 5% | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 0 | ||||
|   - platform: rp2040_pwm | ||||
|     id: test_ledc_1 | ||||
|     pin: 1 | ||||
|   - platform: rp2040_pwm | ||||
|     id: test_ledc_2 | ||||
|     pin: 2 | ||||
|   - platform: rp2040_pwm | ||||
|     id: test_ledc_3 | ||||
|     pin: 3 | ||||
|   - platform: rp2040_pwm | ||||
|     id: test_ledc_4 | ||||
|     pin: 4 | ||||
|   - platform: rp2040_pwm | ||||
|     id: test_ledc_5 | ||||
|     pin: 5 | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
|     id: test_binary_light | ||||
|     name: Binary Light | ||||
|     output: test_binary | ||||
|     effects: | ||||
|       - strobe: | ||||
|     on_state: | ||||
|       - logger.log: Binary light state changed | ||||
|   - platform: monochromatic | ||||
|     id: test_monochromatic_light | ||||
|     name: Monochromatic Light | ||||
|     output: test_ledc_1 | ||||
|     gamma_correct: 2.8 | ||||
|     default_transition_length: 2s | ||||
|     effects: | ||||
|       - strobe: | ||||
|       - flicker: | ||||
|       - flicker: | ||||
|           name: My Flicker | ||||
|           alpha: 98% | ||||
|           intensity: 1.5% | ||||
|       - lambda: | ||||
|           name: My Custom Effect | ||||
|           update_interval: 1s | ||||
|           lambda: |- | ||||
|             static int state = 0; | ||||
|             state += 1; | ||||
|             if (state == 4) | ||||
|               state = 0; | ||||
|       - pulse: | ||||
|           transition_length: 10s | ||||
|           update_interval: 20s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|       - pulse: | ||||
|           name: pulse2 | ||||
|           transition_length: | ||||
|             on_length: 10s | ||||
|             off_length: 5s | ||||
|           update_interval: 15s | ||||
|           min_brightness: 10% | ||||
|           max_brightness: 90% | ||||
|   - platform: rgb | ||||
|     id: test_rgb_light | ||||
|     name: RGB Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|   - platform: rgbw | ||||
|     id: test_rgbw_light | ||||
|     name: RGBW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     white: test_ledc_4 | ||||
|     color_interlock: true | ||||
|   - platform: rgbww | ||||
|     id: test_rgbww_light | ||||
|     name: RGBWW Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     cold_white: test_ledc_4 | ||||
|     warm_white: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: rgbct | ||||
|     id: test_rgbct_light | ||||
|     name: RGBCT Light | ||||
|     red: test_ledc_1 | ||||
|     green: test_ledc_2 | ||||
|     blue: test_ledc_3 | ||||
|     color_temperature: test_ledc_4 | ||||
|     white_brightness: test_ledc_5 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     color_interlock: true | ||||
|   - platform: cwww | ||||
|     id: test_cwww_light | ||||
|     name: CWWW Light | ||||
|     cold_white: test_ledc_1 | ||||
|     warm_white: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
|     constant_brightness: true | ||||
|   - platform: color_temperature | ||||
|     id: test_color_temperature_light | ||||
|     name: CT Light | ||||
|     color_temperature: test_ledc_1 | ||||
|     brightness: test_ledc_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
							
								
								
									
										13
									
								
								tests/components/lightwaverf/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/lightwaverf/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| lightwaverf: | ||||
|   read_pin: 5 | ||||
|   write_pin: 4 | ||||
|  | ||||
| button: | ||||
|   - platform: template | ||||
|     name: "Turn off sofa" | ||||
|     id: light_off_ceiling_sofa | ||||
|     on_press: | ||||
|       lightwaverf.send_raw: | ||||
|         code:  [0x04, 0x00, 0x00, 0x00, 0x0f, 0x03, 0x0d, 0x09, 0x08, 0x08] | ||||
|         name: "Sofa" | ||||
|         repeat: 1 | ||||
							
								
								
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_lilygo_t5_47 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| 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: lilygo_t5_47 | ||||
|     id: lilygo_touchscreen | ||||
|     interrupt_pin: 6 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
							
								
								
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_lilygo_t5_47 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| 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: lilygo_t5_47 | ||||
|     id: lilygo_touchscreen | ||||
|     interrupt_pin: 6 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
							
								
								
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_lilygo_t5_47 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| 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: lilygo_t5_47 | ||||
|     id: lilygo_touchscreen | ||||
|     interrupt_pin: 14 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
							
								
								
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_lilygo_t5_47 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| 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: lilygo_t5_47 | ||||
|     id: lilygo_touchscreen | ||||
|     interrupt_pin: 14 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
							
								
								
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/lilygo_t5_47/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_lilygo_t5_47 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| 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: lilygo_t5_47 | ||||
|     id: lilygo_touchscreen | ||||
|     interrupt_pin: 12 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
							
								
								
									
										24
									
								
								tests/components/lilygo_t5_47/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tests/components/lilygo_t5_47/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| i2c: | ||||
|   - id: i2c_lilygo_t5_47 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| 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: lilygo_t5_47 | ||||
|     id: lilygo_touchscreen | ||||
|     interrupt_pin: 6 | ||||
|     display: ssd1306_display | ||||
|     on_touch: | ||||
|       - logger.log: | ||||
|           format: Touch at (%d, %d) | ||||
|           args: [touch.x, touch.y] | ||||
							
								
								
									
										36
									
								
								tests/components/lock/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tests/components/lock/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - lock.lock: test_lock1 | ||||
|       - lock.unlock: test_lock1 | ||||
|       - lock.open: test_lock1 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|  | ||||
| lock: | ||||
|   - platform: template | ||||
|     id: test_lock1 | ||||
|     name: Template Lock | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return LOCK_STATE_LOCKED; | ||||
|       } else { | ||||
|         return LOCK_STATE_UNLOCKED; | ||||
|       } | ||||
|     optimistic: true | ||||
|     assumed_state: false | ||||
|     on_unlock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_UNLOCKED;" | ||||
|     on_lock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_LOCKED;" | ||||
|   - platform: output | ||||
|     name: Generic Output Lock | ||||
|     id: test_lock2 | ||||
|     output: test_binary | ||||
							
								
								
									
										36
									
								
								tests/components/lock/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tests/components/lock/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - lock.lock: test_lock1 | ||||
|       - lock.unlock: test_lock1 | ||||
|       - lock.open: test_lock1 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|  | ||||
| lock: | ||||
|   - platform: template | ||||
|     id: test_lock1 | ||||
|     name: Template Lock | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return LOCK_STATE_LOCKED; | ||||
|       } else { | ||||
|         return LOCK_STATE_UNLOCKED; | ||||
|       } | ||||
|     optimistic: true | ||||
|     assumed_state: false | ||||
|     on_unlock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_UNLOCKED;" | ||||
|     on_lock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_LOCKED;" | ||||
|   - platform: output | ||||
|     name: Generic Output Lock | ||||
|     id: test_lock2 | ||||
|     output: test_binary | ||||
							
								
								
									
										36
									
								
								tests/components/lock/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tests/components/lock/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - lock.lock: test_lock1 | ||||
|       - lock.unlock: test_lock1 | ||||
|       - lock.open: test_lock1 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|  | ||||
| lock: | ||||
|   - platform: template | ||||
|     id: test_lock1 | ||||
|     name: Template Lock | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return LOCK_STATE_LOCKED; | ||||
|       } else { | ||||
|         return LOCK_STATE_UNLOCKED; | ||||
|       } | ||||
|     optimistic: true | ||||
|     assumed_state: false | ||||
|     on_unlock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_UNLOCKED;" | ||||
|     on_lock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_LOCKED;" | ||||
|   - platform: output | ||||
|     name: Generic Output Lock | ||||
|     id: test_lock2 | ||||
|     output: test_binary | ||||
							
								
								
									
										36
									
								
								tests/components/lock/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tests/components/lock/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - lock.lock: test_lock1 | ||||
|       - lock.unlock: test_lock1 | ||||
|       - lock.open: test_lock1 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|  | ||||
| lock: | ||||
|   - platform: template | ||||
|     id: test_lock1 | ||||
|     name: Template Lock | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return LOCK_STATE_LOCKED; | ||||
|       } else { | ||||
|         return LOCK_STATE_UNLOCKED; | ||||
|       } | ||||
|     optimistic: true | ||||
|     assumed_state: false | ||||
|     on_unlock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_UNLOCKED;" | ||||
|     on_lock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_LOCKED;" | ||||
|   - platform: output | ||||
|     name: Generic Output Lock | ||||
|     id: test_lock2 | ||||
|     output: test_binary | ||||
							
								
								
									
										36
									
								
								tests/components/lock/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tests/components/lock/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - lock.lock: test_lock1 | ||||
|       - lock.unlock: test_lock1 | ||||
|       - lock.open: test_lock1 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|  | ||||
| lock: | ||||
|   - platform: template | ||||
|     id: test_lock1 | ||||
|     name: Template Lock | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return LOCK_STATE_LOCKED; | ||||
|       } else { | ||||
|         return LOCK_STATE_UNLOCKED; | ||||
|       } | ||||
|     optimistic: true | ||||
|     assumed_state: false | ||||
|     on_unlock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_UNLOCKED;" | ||||
|     on_lock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_LOCKED;" | ||||
|   - platform: output | ||||
|     name: Generic Output Lock | ||||
|     id: test_lock2 | ||||
|     output: test_binary | ||||
							
								
								
									
										36
									
								
								tests/components/lock/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tests/components/lock/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - lock.lock: test_lock1 | ||||
|       - lock.unlock: test_lock1 | ||||
|       - lock.open: test_lock1 | ||||
|  | ||||
| output: | ||||
|   - platform: gpio | ||||
|     id: test_binary | ||||
|     pin: 4 | ||||
|  | ||||
| lock: | ||||
|   - platform: template | ||||
|     id: test_lock1 | ||||
|     name: Template Lock | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return LOCK_STATE_LOCKED; | ||||
|       } else { | ||||
|         return LOCK_STATE_UNLOCKED; | ||||
|       } | ||||
|     optimistic: true | ||||
|     assumed_state: false | ||||
|     on_unlock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_UNLOCKED;" | ||||
|     on_lock: | ||||
|       - lock.template.publish: | ||||
|           id: test_lock1 | ||||
|           state: !lambda "return LOCK_STATE_LOCKED;" | ||||
|   - platform: output | ||||
|     name: Generic Output Lock | ||||
|     id: test_lock2 | ||||
|     output: test_binary | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										20
									
								
								tests/components/ltr390/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/ltr390/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_ltr390 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ltr390 | ||||
|     uv: | ||||
|       name: LTR390 UV | ||||
|     uv_index: | ||||
|       name: LTR390 UVI | ||||
|     light: | ||||
|       name: LTR390 Light | ||||
|     ambient_light: | ||||
|       name: LTR390 ALS | ||||
|     gain: X3 | ||||
|     resolution: 18 | ||||
|     window_correction_factor: 1.0 | ||||
|     address: 0x53 | ||||
|     update_interval: 60s | ||||
							
								
								
									
										20
									
								
								tests/components/ltr390/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/ltr390/test.esp32-c3.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_ltr390 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ltr390 | ||||
|     uv: | ||||
|       name: LTR390 UV | ||||
|     uv_index: | ||||
|       name: LTR390 UVI | ||||
|     light: | ||||
|       name: LTR390 Light | ||||
|     ambient_light: | ||||
|       name: LTR390 ALS | ||||
|     gain: X3 | ||||
|     resolution: 18 | ||||
|     window_correction_factor: 1.0 | ||||
|     address: 0x53 | ||||
|     update_interval: 60s | ||||
							
								
								
									
										20
									
								
								tests/components/ltr390/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/ltr390/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_ltr390 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ltr390 | ||||
|     uv: | ||||
|       name: LTR390 UV | ||||
|     uv_index: | ||||
|       name: LTR390 UVI | ||||
|     light: | ||||
|       name: LTR390 Light | ||||
|     ambient_light: | ||||
|       name: LTR390 ALS | ||||
|     gain: X3 | ||||
|     resolution: 18 | ||||
|     window_correction_factor: 1.0 | ||||
|     address: 0x53 | ||||
|     update_interval: 60s | ||||
							
								
								
									
										20
									
								
								tests/components/ltr390/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/ltr390/test.esp32.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_ltr390 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ltr390 | ||||
|     uv: | ||||
|       name: LTR390 UV | ||||
|     uv_index: | ||||
|       name: LTR390 UVI | ||||
|     light: | ||||
|       name: LTR390 Light | ||||
|     ambient_light: | ||||
|       name: LTR390 ALS | ||||
|     gain: X3 | ||||
|     resolution: 18 | ||||
|     window_correction_factor: 1.0 | ||||
|     address: 0x53 | ||||
|     update_interval: 60s | ||||
							
								
								
									
										20
									
								
								tests/components/ltr390/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/ltr390/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_ltr390 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ltr390 | ||||
|     uv: | ||||
|       name: LTR390 UV | ||||
|     uv_index: | ||||
|       name: LTR390 UVI | ||||
|     light: | ||||
|       name: LTR390 Light | ||||
|     ambient_light: | ||||
|       name: LTR390 ALS | ||||
|     gain: X3 | ||||
|     resolution: 18 | ||||
|     window_correction_factor: 1.0 | ||||
|     address: 0x53 | ||||
|     update_interval: 60s | ||||
							
								
								
									
										20
									
								
								tests/components/ltr390/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								tests/components/ltr390/test.rp2040.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| i2c: | ||||
|   - id: i2c_ltr390 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ltr390 | ||||
|     uv: | ||||
|       name: LTR390 UV | ||||
|     uv_index: | ||||
|       name: LTR390 UVI | ||||
|     light: | ||||
|       name: LTR390 Light | ||||
|     ambient_light: | ||||
|       name: LTR390 ALS | ||||
|     gain: X3 | ||||
|     resolution: 18 | ||||
|     window_correction_factor: 1.0 | ||||
|     address: 0x53 | ||||
|     update_interval: 60s | ||||
		Reference in New Issue
	
	Block a user