Update to 38.3 and some more experimenting with Jinja Macros.

This commit is contained in:
CCOSTAN
2017-02-15 17:03:48 +00:00
parent d7b159118e
commit e71ad8072a
5 changed files with 7 additions and 28 deletions

View File

@@ -1 +1 @@
0.38.2
0.38.3

View File

@@ -27,7 +27,7 @@
"Welcome home " ~ person,
"Guess who is home? " ~ person +" is!",
"Attention: " ~ person + " is now in the house.",
person ~ " in da house!",
person ~ " in da hiz house!",
"Welcome Home " ~ person + ". We've missed you. or at least Molly did.",
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
"Life is like a song, youre back where you belong. Welcome home" ~ person,

View File

@@ -45,9 +45,10 @@
action:
- service: light.turn_off
entity_id:
- group.all_lights
- light.outdoor_front
- group.outdoor_lights
- group.exterior_lights
- group.outdoor_front_lights
- group.outdoor_pool_lights
- group.all_lights
- service: script.interior_off

View File

@@ -1,23 +0,0 @@
{% macro greeting_sentence(person) %}
{{ [
"Welcome home " ~ person,
"Guess who is home? " ~ person +" is!",
"Attention: " ~ person + " is now in the house.",
person ~ " in da house!",
"Welcome Home " ~ person + ". We've missed you. or at least Molly did.",
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
"Life is like a song, you<6F>re back where you belong. Welcome home" ~ person,
"Hey there " ~ person,
person ~ "! You're home!"
] | random }}
{% endmacro %}
{% macro dark_outside() %}
{{ [
"It is pretty dark outside. I will turn on the outside lights now.",
"It's a little past Sunset. Time to turn on the outside lights. I'm on it.",
"I'll switch on the outside lights. It's getting dark outside.",
"Time to turn on the front lights. I'll take care of it."
] | random }}
{% endmacro %}

View File

@@ -10,3 +10,4 @@ Weather:
- sensor.dark_sky_precip_intensity
- sensor.dark_sky_humidity
- sensor.dark_sky_temperature
- sensor.moon