Update to 38.3 and some more experimenting with Jinja Macros.

pull/76/head
CCOSTAN 9 years ago
parent d7b159118e
commit e71ad8072a

@ -1 +1 @@
0.38.2
0.38.3

@ -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,

@ -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

@ -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, youre 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 %}

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

Loading…
Cancel
Save

Powered by TurnKey Linux.