1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Add text_sensor.template.publish action (#433)

* Add text_sensor.template.publish action

* Fix

* Add test
This commit is contained in:
Otto Winter
2019-02-16 16:47:05 +01:00
committed by GitHub
parent 52c0b45f41
commit 4da0e0c223
3 changed files with 37 additions and 3 deletions

View File

@@ -1130,3 +1130,14 @@ text_sensor:
name: "MQTT Subscribe Text"
topic: "the/topic"
qos: 2
on_value:
- text_sensor.template.publish:
id: template_text
state: Hello World
- text_sensor.template.publish:
id: template_text
state: |-
return "Hello World2";
- platform: template
name: Template Text Sensor
id: template_text