1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +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:
Otto Winter
2018-10-20 15:19:59 +02:00
committed by GitHub
parent 8c5d12df51
commit 8bbfbc4cc1
4 changed files with 83 additions and 6 deletions

View File

@@ -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