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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user