mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Merge branch 'dev' into vornado-ir
This commit is contained in:
		
							
								
								
									
										4
									
								
								tests/components/adc/test.bk72xx-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/components/adc/test.bk72xx-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     pin: P23 | ||||
|     name: Basic ADC Test | ||||
| @@ -3,14 +3,12 @@ light: | ||||
|     id: led_strip | ||||
|     pin: 4 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 0 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: 5 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 1 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100µs | ||||
|     bit0_low: 100µs | ||||
|   | ||||
| @@ -3,14 +3,12 @@ light: | ||||
|     id: led_strip | ||||
|     pin: 13 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 6 | ||||
|     rgb_order: GRB | ||||
|     chipset: ws2812 | ||||
|   - platform: esp32_rmt_led_strip | ||||
|     id: led_strip2 | ||||
|     pin: 14 | ||||
|     num_leds: 60 | ||||
|     rmt_channel: 2 | ||||
|     rgb_order: RGB | ||||
|     bit0_high: 100µs | ||||
|     bit0_low: 100µs | ||||
|   | ||||
| @@ -165,6 +165,11 @@ lvgl: | ||||
|               - Nov | ||||
|               - Dec | ||||
|             selected_index: 1 | ||||
|             on_change: | ||||
|               then: | ||||
|                 - logger.log: | ||||
|                     format: "Roller changed = %d: %s" | ||||
|                     args: [x, text.c_str()] | ||||
|             on_value: | ||||
|               then: | ||||
|                 - logger.log: | ||||
| @@ -451,6 +456,7 @@ lvgl: | ||||
|             src: cat_image | ||||
|             align: top_left | ||||
|             y: "50" | ||||
|             mode: real | ||||
|         - tileview: | ||||
|             id: tileview_id | ||||
|             scrollbar_mode: active | ||||
| @@ -647,6 +653,7 @@ lvgl: | ||||
|                       grid_cell_row_pos: 0 | ||||
|                       grid_cell_column_pos: 0 | ||||
|                       src: !lambda return dog_image; | ||||
|                       mode: virtual | ||||
|                       on_click: | ||||
|                         then: | ||||
|                           - lvgl.tabview.select: | ||||
|   | ||||
| @@ -1,5 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     - lambda: 'ESP_LOGD("display","is_connected(): %s", YESNO(id(main_lcd).is_connected()));' | ||||
|  | ||||
|     # Binary sensor publish action tests | ||||
|     - binary_sensor.nextion.publish: | ||||
|         id: r0_sensor | ||||
|   | ||||
| @@ -16,6 +16,19 @@ opentherm: | ||||
|   summer_mode_active: true | ||||
|   dhw_block: true | ||||
|   sync_mode: true | ||||
|   controller_product_type: 63 | ||||
|   controller_product_version: 1 | ||||
|   opentherm_version_controller: 2.2 | ||||
|   controller_id: 1 | ||||
|   controller_configuration: 1 | ||||
|   before_send: | ||||
|     then: | ||||
|       - lambda: |- | ||||
|           ESP_LOGW("OT", ">> Sending message %d", x.id); | ||||
|   before_process_response: | ||||
|     then: | ||||
|       - lambda: |- | ||||
|           ESP_LOGW("OT", "<< Processing response %d", x.id); | ||||
|  | ||||
| output: | ||||
|   - platform: opentherm | ||||
|   | ||||
							
								
								
									
										144
									
								
								tests/components/remote_receiver/common-actions.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										144
									
								
								tests/components/remote_receiver/common-actions.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,144 @@ | ||||
| on_abbwelcome: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_abbwelcome: %u" | ||||
|         args: ["x.data()[0]"] | ||||
| on_aeha: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_aeha: %u %u" | ||||
|         args: ["x.address", "x.data.front()"] | ||||
| on_byronsx: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_byronsx: %u %u" | ||||
|         args: ["x.address", "x.command"] | ||||
| on_canalsat: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_canalsat: %u %u" | ||||
|         args: ["x.address", "x.command"] | ||||
| # on_canalsatld: | ||||
| #   then: | ||||
| #     - logger.log: | ||||
| #         format: "on_canalsatld: %u %u" | ||||
| #         args: ["x.address", "x.command"] | ||||
| on_coolix: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_coolix: %lu %lu" | ||||
|         args: ["long(x.first)", "long(x.second)"] | ||||
| on_dish: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_dish: %u %u" | ||||
|         args: ["x.address", "x.command"] | ||||
| on_dooya: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_dooya: %u %u %u" | ||||
|         args: ["x.channel", "x.button", "x.check"] | ||||
| on_drayton: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_drayton: %u %u %u" | ||||
|         args: ["x.address", "x.channel", "x.command"] | ||||
| on_jvc: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_jvc: %lu" | ||||
|         args: ["long(x.data)"] | ||||
| on_keeloq: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_keeloq: %lu %lu %u" | ||||
|         args: ["long(x.encrypted)", "long(x.address)", "x.command"] | ||||
| on_haier: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_haier: %u" | ||||
|         args: ["x.data.front()"] | ||||
| on_lg: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_lg: %lu %u" | ||||
|         args: ["long(x.data)", "x.nbits"] | ||||
| on_magiquest: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_magiquest: %u %lu" | ||||
|         args: ["x.magnitude", "long(x.wand_id)"] | ||||
| on_midea: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_midea: %u %u" | ||||
|         args: ["x.size()", "x.data()[0]"] | ||||
| on_nec: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_nec: %u %u" | ||||
|         args: ["x.address", "x.command"] | ||||
| on_nexa: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_nexa: %lu %u %u %u %u" | ||||
|         args: ["long(x.device)", "x.group", "x.state", "x.channel", "x.level"] | ||||
| on_panasonic: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_panasonic: %u %lu" | ||||
|         args: ["x.address", "long(x.command)"] | ||||
| on_pioneer: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_pioneer: %u %u" | ||||
|         args: ["x.rc_code_1", "x.rc_code_2"] | ||||
| on_pronto: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_pronto: %s" | ||||
|         args: ["x.data.c_str()"] | ||||
| on_raw: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_raw: %lu" | ||||
|         args: ["long(x.front())"] | ||||
| on_rc5: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_rc5: %u %u" | ||||
|         args: ["x.address", "x.command"] | ||||
| on_rc6: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_rc6: %u %u" | ||||
|         args: ["x.address", "x.command"] | ||||
| on_rc_switch: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_rc_switch: %llu %u" | ||||
|         args: ["x.code", "x.protocol"] | ||||
| on_samsung: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_samsung: %llu %u" | ||||
|         args: ["x.data", "x.nbits"] | ||||
| on_samsung36: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_samsung36: %u %lu" | ||||
|         args: ["x.address", "long(x.command)"] | ||||
| on_sony: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_sony: %lu %u" | ||||
|         args: ["long(x.data)", "x.nbits"] | ||||
| on_toshiba_ac: | ||||
|   then: | ||||
|     - logger.log: | ||||
|         format: "on_toshiba_ac: %llu %llu" | ||||
|         args: ["x.rc_code_1", "x.rc_code_2"] | ||||
| on_mirage: | ||||
|   then: | ||||
|     - lambda: |- | ||||
|         ESP_LOGD("mirage", "Mirage data: %s", format_hex(x.data).c_str()); | ||||
							
								
								
									
										14
									
								
								tests/components/remote_receiver/esp32-common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tests/components/remote_receiver/esp32-common-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| remote_receiver: | ||||
|   - id: rcvr | ||||
|     pin: ${pin} | ||||
|     rmt_channel: ${rmt_channel} | ||||
|     dump: all | ||||
|     tolerance: 25% | ||||
|     <<: !include common-actions.yaml | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: remote_receiver | ||||
|     name: Panasonic Remote Input | ||||
|     panasonic: | ||||
|       address: 0x4004 | ||||
|       command: 0x100BCBD | ||||
							
								
								
									
										18
									
								
								tests/components/remote_receiver/esp32-common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tests/components/remote_receiver/esp32-common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| remote_receiver: | ||||
|   - id: rcvr | ||||
|     pin: ${pin} | ||||
|     dump: all | ||||
|     tolerance: 25% | ||||
|     clock_resolution: ${clock_resolution} | ||||
|     filter_symbols: ${filter_symbols} | ||||
|     receive_symbols: ${receive_symbols} | ||||
|     rmt_symbols: ${rmt_symbols} | ||||
|     use_dma: ${use_dma} | ||||
|     <<: !include common-actions.yaml | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: remote_receiver | ||||
|     name: Panasonic Remote Input | ||||
|     panasonic: | ||||
|       address: 0x4004 | ||||
|       command: 0x100BCBD | ||||
| @@ -1,157 +0,0 @@ | ||||
| remote_receiver: | ||||
|   id: rcvr | ||||
|   pin: ${pin} | ||||
|   rmt_channel: ${rmt_channel} | ||||
|   dump: all | ||||
|   tolerance: 25% | ||||
|   on_abbwelcome: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_abbwelcome: %u" | ||||
|           args: ["x.data()[0]"] | ||||
|   on_aeha: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_aeha: %u %u" | ||||
|           args: ["x.address", "x.data.front()"] | ||||
|   on_byronsx: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_byronsx: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_canalsat: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_canalsat: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   # on_canalsatld: | ||||
|   #   then: | ||||
|   #     - logger.log: | ||||
|   #         format: "on_canalsatld: %u %u" | ||||
|   #         args: ["x.address", "x.command"] | ||||
|   on_coolix: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_coolix: %lu %lu" | ||||
|           args: ["long(x.first)", "long(x.second)"] | ||||
|   on_dish: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_dish: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_dooya: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_dooya: %u %u %u" | ||||
|           args: ["x.channel", "x.button", "x.check"] | ||||
|   on_drayton: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_drayton: %u %u %u" | ||||
|           args: ["x.address", "x.channel", "x.command"] | ||||
|   on_jvc: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_jvc: %lu" | ||||
|           args: ["long(x.data)"] | ||||
|   on_keeloq: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_keeloq: %lu %lu %u" | ||||
|           args: ["long(x.encrypted)", "long(x.address)", "x.command"] | ||||
|   on_haier: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_haier: %u" | ||||
|           args: ["x.data.front()"] | ||||
|   on_lg: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_lg: %lu %u" | ||||
|           args: ["long(x.data)", "x.nbits"] | ||||
|   on_magiquest: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_magiquest: %u %lu" | ||||
|           args: ["x.magnitude", "long(x.wand_id)"] | ||||
|   on_midea: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_midea: %u %u" | ||||
|           args: ["x.size()", "x.data()[0]"] | ||||
|   on_nec: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_nec: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_nexa: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_nexa: %lu %u %u %u %u" | ||||
|           args: ["long(x.device)", "x.group", "x.state", "x.channel", "x.level"] | ||||
|   on_panasonic: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_panasonic: %u %lu" | ||||
|           args: ["x.address", "long(x.command)"] | ||||
|   on_pioneer: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_pioneer: %u %u" | ||||
|           args: ["x.rc_code_1", "x.rc_code_2"] | ||||
|   on_pronto: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_pronto: %s" | ||||
|           args: ["x.data.c_str()"] | ||||
|   on_raw: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_raw: %lu" | ||||
|           args: ["long(x.front())"] | ||||
|   on_rc5: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_rc5: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_rc6: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_rc6: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_rc_switch: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_rc_switch: %llu %u" | ||||
|           args: ["x.code", "x.protocol"] | ||||
|   on_samsung: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_samsung: %llu %u" | ||||
|           args: ["x.data", "x.nbits"] | ||||
|   on_samsung36: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_samsung36: %u %lu" | ||||
|           args: ["x.address", "long(x.command)"] | ||||
|   on_sony: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_sony: %lu %u" | ||||
|           args: ["long(x.data)", "x.nbits"] | ||||
|   on_toshiba_ac: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_toshiba_ac: %llu %llu" | ||||
|           args: ["x.rc_code_1", "x.rc_code_2"] | ||||
|   on_mirage: | ||||
|     then: | ||||
|       - lambda: |- | ||||
|           ESP_LOGD("mirage", "Mirage data: %s", format_hex(x.data).c_str()); | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: remote_receiver | ||||
|     name: Panasonic Remote Input | ||||
|     panasonic: | ||||
|       address: 0x4004 | ||||
|       command: 0x100BCBD | ||||
| @@ -3,4 +3,4 @@ substitutions: | ||||
|   rmt_channel: "2" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-ard.yaml | ||||
|   | ||||
| @@ -3,4 +3,4 @@ substitutions: | ||||
|   rmt_channel: "2" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-ard.yaml | ||||
|   | ||||
| @@ -1,6 +1,10 @@ | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|   rmt_channel: "2" | ||||
|   clock_resolution: "2000000" | ||||
|   filter_symbols: "2" | ||||
|   receive_symbols: "4" | ||||
|   rmt_symbols: "64" | ||||
|   use_dma: "true" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-idf.yaml | ||||
|   | ||||
| @@ -1,6 +1,10 @@ | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|   rmt_channel: "2" | ||||
|   clock_resolution: "2000000" | ||||
|   filter_symbols: "2" | ||||
|   receive_symbols: "4" | ||||
|   rmt_symbols: "64" | ||||
|   use_dma: "true" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-idf.yaml | ||||
|   | ||||
| @@ -1,6 +1,10 @@ | ||||
| substitutions: | ||||
|   pin: GPIO38 | ||||
|   rmt_channel: "5" | ||||
|   clock_resolution: "2000000" | ||||
|   filter_symbols: "2" | ||||
|   receive_symbols: "4" | ||||
|   rmt_symbols: "64" | ||||
|   use_dma: "true" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-idf.yaml | ||||
|   | ||||
| @@ -2,150 +2,7 @@ remote_receiver: | ||||
|   id: rcvr | ||||
|   pin: GPIO5 | ||||
|   dump: all | ||||
|   on_abbwelcome: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_abbwelcome: %u" | ||||
|           args: ["x.data()[0]"] | ||||
|   on_aeha: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_aeha: %u %u" | ||||
|           args: ["x.address", "x.data.front()"] | ||||
|   on_byronsx: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_byronsx: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_canalsat: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_canalsat: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   # on_canalsatld: | ||||
|   #   then: | ||||
|   #     - logger.log: | ||||
|   #         format: "on_canalsatld: %u %u" | ||||
|   #         args: ["x.address", "x.command"] | ||||
|   on_coolix: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_coolix: %u %u" | ||||
|           args: ["x.first", "x.second"] | ||||
|   on_dish: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_dish: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_dooya: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_dooya: %u %u %u" | ||||
|           args: ["x.channel", "x.button", "x.check"] | ||||
|   on_drayton: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_drayton: %u %u %u" | ||||
|           args: ["x.address", "x.channel", "x.command"] | ||||
|   on_jvc: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_jvc: %u" | ||||
|           args: ["x.data"] | ||||
|   on_keeloq: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_keeloq: %u %u %u" | ||||
|           args: ["x.encrypted", "x.address", "x.command"] | ||||
|   on_haier: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_haier: %u" | ||||
|           args: ["x.data.front()"] | ||||
|   on_lg: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_lg: %u %u" | ||||
|           args: ["x.data", "x.nbits"] | ||||
|   on_magiquest: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_magiquest: %u %u" | ||||
|           args: ["x.magnitude", "x.wand_id"] | ||||
|   on_midea: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_midea: %u %u" | ||||
|           args: ["x.size()", "x.data()[0]"] | ||||
|   on_nec: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_nec: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_nexa: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_nexa: %u %u %u %u %u" | ||||
|           args: ["x.device", "x.group", "x.state", "x.channel", "x.level"] | ||||
|   on_panasonic: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_panasonic: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_pioneer: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_pioneer: %u %u" | ||||
|           args: ["x.rc_code_1", "x.rc_code_2"] | ||||
|   on_pronto: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_pronto: %s" | ||||
|           args: ["x.data.c_str()"] | ||||
|   on_raw: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_raw: %u" | ||||
|           args: ["x.front()"] | ||||
|   on_rc5: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_rc5: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_rc6: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_rc6: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_rc_switch: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_rc_switch: %llu %u" | ||||
|           args: ["x.code", "x.protocol"] | ||||
|   on_samsung: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_samsung: %llu %u" | ||||
|           args: ["x.data", "x.nbits"] | ||||
|   on_samsung36: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_samsung36: %u %u" | ||||
|           args: ["x.address", "x.command"] | ||||
|   on_sony: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_sony: %u %u" | ||||
|           args: ["x.data", "x.nbits"] | ||||
|   on_toshiba_ac: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "on_toshiba_ac: %llu %llu" | ||||
|           args: ["x.rc_code_1", "x.rc_code_2"] | ||||
|   on_mirage: | ||||
|     then: | ||||
|       - lambda: |- | ||||
|           ESP_LOGD("mirage", "Mirage data: %s", format_hex(x.data).c_str()); | ||||
|   <<: !include common-actions.yaml | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: remote_receiver | ||||
|   | ||||
| @@ -0,0 +1,8 @@ | ||||
| remote_transmitter: | ||||
|   - id: xmitr | ||||
|     pin: ${pin} | ||||
|     rmt_channel: ${rmt_channel} | ||||
|     carrier_duty_percent: 50% | ||||
|  | ||||
| packages: | ||||
|   buttons: !include common-buttons.yaml | ||||
							
								
								
									
										11
									
								
								tests/components/remote_transmitter/esp32-common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/remote_transmitter/esp32-common-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| remote_transmitter: | ||||
|   - id: xmitr | ||||
|     pin: ${pin} | ||||
|     carrier_duty_percent: 50% | ||||
|     clock_resolution: ${clock_resolution} | ||||
|     one_wire: ${one_wire} | ||||
|     rmt_symbols: ${rmt_symbols} | ||||
|     use_dma: ${use_dma} | ||||
|  | ||||
| packages: | ||||
|   buttons: !include common-buttons.yaml | ||||
| @@ -1,8 +0,0 @@ | ||||
| remote_transmitter: | ||||
|   id: rcvr | ||||
|   pin: ${pin} | ||||
|   rmt_channel: ${rmt_channel} | ||||
|   carrier_duty_percent: 50% | ||||
|  | ||||
| packages: | ||||
|   buttons: !include common-buttons.yaml | ||||
| @@ -3,4 +3,4 @@ substitutions: | ||||
|   rmt_channel: "2" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-ard.yaml | ||||
|   | ||||
| @@ -3,4 +3,4 @@ substitutions: | ||||
|   rmt_channel: "1" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-ard.yaml | ||||
|   | ||||
| @@ -1,6 +1,9 @@ | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|   rmt_channel: "1" | ||||
|   clock_resolution: "2000000" | ||||
|   one_wire: "true" | ||||
|   rmt_symbols: "64" | ||||
|   use_dma: "true" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-idf.yaml | ||||
|   | ||||
| @@ -1,6 +1,9 @@ | ||||
| substitutions: | ||||
|   pin: GPIO2 | ||||
|   rmt_channel: "2" | ||||
|   clock_resolution: "2000000" | ||||
|   one_wire: "true" | ||||
|   rmt_symbols: "64" | ||||
|   use_dma: "true" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-idf.yaml | ||||
|   | ||||
| @@ -1,6 +1,9 @@ | ||||
| substitutions: | ||||
|   pin: GPIO38 | ||||
|   rmt_channel: "3" | ||||
|   clock_resolution: "2000000" | ||||
|   one_wire: "true" | ||||
|   rmt_symbols: "64" | ||||
|   use_dma: "true" | ||||
|  | ||||
| packages: | ||||
|   common: !include esp32-common.yaml | ||||
|   common: !include esp32-common-idf.yaml | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| remote_transmitter: | ||||
|   id: trns | ||||
|   id: xmitr | ||||
|   pin: GPIO5 | ||||
|   carrier_duty_percent: 50% | ||||
|  | ||||
|   | ||||
							
								
								
									
										19
									
								
								tests/components/seeed_mr60bha2/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/components/seeed_mr60bha2/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| uart: | ||||
|   - id: seeed_mr60fda2_uart | ||||
|     tx_pin: ${uart_tx_pin} | ||||
|     rx_pin: ${uart_rx_pin} | ||||
|     baud_rate: 115200 | ||||
|     parity: NONE | ||||
|     stop_bits: 1 | ||||
|  | ||||
| seeed_mr60bha2: | ||||
|   id: my_seeed_mr60bha2 | ||||
|  | ||||
| sensor: | ||||
|   - platform: seeed_mr60bha2 | ||||
|     breath_rate: | ||||
|       name: "Real-time respiratory rate" | ||||
|     heart_rate: | ||||
|       name: "Real-time heart rate" | ||||
|     distance: | ||||
|       name: "Distance to detection object" | ||||
							
								
								
									
										5
									
								
								tests/components/seeed_mr60bha2/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/seeed_mr60bha2/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   uart_tx_pin: GPIO5 | ||||
|   uart_rx_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/seeed_mr60bha2/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/seeed_mr60bha2/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   uart_tx_pin: GPIO5 | ||||
|   uart_rx_pin: GPIO4 | ||||
|  | ||||
| <<: !include common.yaml | ||||
		Reference in New Issue
	
	Block a user