mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			931 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			931 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| esphome:
 | |
|   on_boot:
 | |
|     then:
 | |
|       - dfrobot_sen0395.settings:
 | |
|           id: mmwave
 | |
|           factory_reset: true
 | |
|           detection_segments:
 | |
|             - [0cm, 5m]
 | |
|             - 600cm
 | |
|             - !lambda "return 7;"
 | |
|           output_latency:
 | |
|             delay_after_detect: 0s
 | |
|             delay_after_disappear: 0s
 | |
|           sensitivity: 6
 | |
|       - dfrobot_sen0395.reset
 | |
| 
 | |
| uart:
 | |
|   - id: uart_dfrobot_sen0395
 | |
|     tx_pin: ${tx_pin}
 | |
|     rx_pin: ${rx_pin}
 | |
|     baud_rate: 9600
 | |
| 
 | |
| dfrobot_sen0395:
 | |
|   - id: mmwave
 | |
| 
 | |
| binary_sensor:
 | |
|   - platform: dfrobot_sen0395
 | |
|     id: mmwave_detected
 | |
| 
 | |
| switch:
 | |
|   - platform: dfrobot_sen0395
 | |
|     type: sensor_active
 | |
|     id: mmwave_sensor_active
 | |
|   - platform: dfrobot_sen0395
 | |
|     type: turn_on_led
 | |
|     id: mmwave_turn_on_led
 | |
|   - platform: dfrobot_sen0395
 | |
|     type: presence_via_uart
 | |
|     id: mmwave_presence_via_uart
 | |
|   - platform: dfrobot_sen0395
 | |
|     type: start_after_boot
 | |
|     id: mmwave_start_after_boot
 |