mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-06 17:51:36 +00:00
Update to 38.3 and some more experimenting with Jinja Macros.
This commit is contained in:
@@ -1 +1 @@
|
|||||||
0.38.2
|
0.38.3
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"Welcome home " ~ person,
|
"Welcome home " ~ person,
|
||||||
"Guess who is home? " ~ person +" is!",
|
"Guess who is home? " ~ person +" is!",
|
||||||
"Attention: " ~ person + " is now in the house.",
|
"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.",
|
"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,
|
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
|
||||||
"Life is like a song, you’re back where you belong. Welcome home" ~ person,
|
"Life is like a song, you’re back where you belong. Welcome home" ~ person,
|
||||||
|
|||||||
@@ -45,9 +45,10 @@
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- group.all_lights
|
- group.exterior_lights
|
||||||
- light.outdoor_front
|
- group.outdoor_front_lights
|
||||||
- group.outdoor_lights
|
- group.outdoor_pool_lights
|
||||||
|
- group.all_lights
|
||||||
- service: script.interior_off
|
- 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, 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 %}
|
|
||||||
@@ -10,3 +10,4 @@ Weather:
|
|||||||
- sensor.dark_sky_precip_intensity
|
- sensor.dark_sky_precip_intensity
|
||||||
- sensor.dark_sky_humidity
|
- sensor.dark_sky_humidity
|
||||||
- sensor.dark_sky_temperature
|
- sensor.dark_sky_temperature
|
||||||
|
- sensor.moon
|
||||||
|
|||||||
Reference in New Issue
Block a user