mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Add logger.log action (#198)
* Add logger.log Action * Simple schema * Validate printf * Improve error message * Undo unfix tests :)
This commit is contained in:
		| @@ -193,6 +193,11 @@ sensor: | ||||
|     on_raw_value: | ||||
|       - lambda: >- | ||||
|           ESP_LOGD("main", "Got raw value %f", x); | ||||
|       - logger.log: | ||||
|           level: DEBUG | ||||
|           format: "Got raw value %f" | ||||
|           args: ['x'] | ||||
|       - logger.log: "Got raw value NAN" | ||||
|       - mqtt.publish: | ||||
|           topic: some/topic | ||||
|           payload: Hello | ||||
|   | ||||
		Reference in New Issue
	
	Block a user