Add homeassistant.service test

This commit is contained in:
Otto Winter 2019-01-14 11:09:32 +01:00
parent 8a61c21051
commit 4f5389998f
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 9 additions and 0 deletions

View File

@ -202,6 +202,15 @@ text_sensor:
- lambda: !lambda |-
ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str());
- script.execute: my_script
- homeassistant.service:
service: notify.html5
data:
title: New Humidity
data_template:
message: The humidity is {{ my_variable }}%.
variables:
my_variable: |-
return id(version_sensor).state;
- platform: mqtt_subscribe
name: "MQTT Subscribe Text"
topic: "the/topic"