From 6e271d1e4a2fa8b2852903d4b7cd051a3f68b03b Mon Sep 17 00:00:00 2001 From: Mahasri Kalavala Date: Sat, 18 May 2019 18:16:48 -0400 Subject: [PATCH] minor script updates --- packages/nest_thermostat.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/nest_thermostat.yaml b/packages/nest_thermostat.yaml index 3b78dbc..c9390b6 100644 --- a/packages/nest_thermostat.yaml +++ b/packages/nest_thermostat.yaml @@ -73,7 +73,21 @@ automation: message: "Nest Thermostat changed from '{{ trigger.from_state.state }}' to '{{ trigger.to_state.state }}'." - service: script.voice_notify data_template: - message: "Your home's thermostat is now changed to '{{ trigger.to_state.state }}' mode." + message: > + {% set state = trigger.to_state.state %} + {% if state == "off" %} + Your home's thermostat is switched off. + {% elif state == "eco" %} + Your home's thermostat is set to eco or away mode. + {% elif state == "heat" %} + Your central heating is ON. + {% elif state == "cool" %} + Your central air condition is switched ON + {% elif state == "heat-cool" %} + Your home's thermostat is set to automatic mode. + {% else %} + Your home's thermostat is set to {{ state }} mode. + {% endif %} ############################################################################### # A script that toggles Nest Thermostat between eco/away & non-eco/away modes