From 4f5389998fee8e61520c48a4a4e2ddb960649f01 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 14 Jan 2019 11:09:32 +0100 Subject: [PATCH] Add homeassistant.service test --- tests/test2.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test2.yaml b/tests/test2.yaml index 24a8d0c8f7..fbdb4dd7cc 100644 --- a/tests/test2.yaml +++ b/tests/test2.yaml @@ -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"