mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			531 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			531 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| esphome:
 | |
|   on_boot:
 | |
|     then:
 | |
|       - ufire_ec.calibrate_probe:
 | |
|           id: ufire_ec_board
 | |
|           solution: 0.146
 | |
|           temperature: !lambda "return id(test_sensor).state;"
 | |
|       - ufire_ec.reset:
 | |
| 
 | |
| i2c:
 | |
|   - id: i2c_ufire_ec
 | |
|     scl: ${scl_pin}
 | |
|     sda: ${sda_pin}
 | |
| 
 | |
| sensor:
 | |
|   - platform: template
 | |
|     id: test_sensor
 | |
|     lambda: "return 21;"
 | |
|   - platform: ufire_ec
 | |
|     id: ufire_ec_board
 | |
|     ec:
 | |
|       name: Ufire EC
 | |
|     temperature_sensor: test_sensor
 | |
|     temperature_compensation: 20.0
 | |
|     temperature_coefficient: 0.019
 |