mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[espnow] Add transport platform for packet_transport (#11025)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							03def13917
						
					
				
				
					commit
					ca2fe994a1
				
			| @@ -1,4 +1,5 @@ | ||||
| espnow: | ||||
|   id: espnow_component | ||||
|   auto_add_peer: false | ||||
|   channel: 1 | ||||
|   peers: | ||||
| @@ -50,3 +51,26 @@ espnow: | ||||
|           - format_mac_address_pretty(info.src_addr).c_str() | ||||
|           - format_hex_pretty(data, size).c_str() | ||||
|           - info.rx_ctrl->rssi | ||||
|  | ||||
| packet_transport: | ||||
|   - platform: espnow | ||||
|     id: transport1 | ||||
|     espnow_id: espnow_component | ||||
|     peer_address: "FF:FF:FF:FF:FF:FF" | ||||
|     encryption: | ||||
|       key: "0123456789abcdef0123456789abcdef" | ||||
|     sensors: | ||||
|       - temp_sensor | ||||
|     providers: | ||||
|       - name: test_provider | ||||
|         encryption: | ||||
|           key: "0123456789abcdef0123456789abcdef" | ||||
|  | ||||
| sensor: | ||||
|   - platform: internal_temperature | ||||
|     id: temp_sensor | ||||
|  | ||||
|   - platform: packet_transport | ||||
|     provider: test_provider | ||||
|     remote_id: temp_sensor | ||||
|     id: remote_temp | ||||
|   | ||||
		Reference in New Issue
	
	Block a user