Stole dark outside from @CCOSTAN, and added a garage door staus check
This commit is contained in:
parent
e10abec5a0
commit
2e4590395a
|
@ -421,6 +421,15 @@ script:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{%- macro dark_outside() -%}
|
||||||
|
{{ [
|
||||||
|
'The sun is offical down. Exterior Cameras are now motion acivated.',
|
||||||
|
'The sun has been ushered off the stage. Activate the perimiter cameras.',
|
||||||
|
'You are running out of daylight. Time to wrap up any outisde chores.',
|
||||||
|
'Switching to night mode! '
|
||||||
|
]|random }}
|
||||||
|
{%- endmacro -%}
|
||||||
|
|
||||||
{% macro current_conditions_outisde() %}
|
{% macro current_conditions_outisde() %}
|
||||||
It's currently {{states.sensor.dark_sky_summary.state}} and {{states.sensor.dark_sky_temperature.state|round}} degrees according to Dark Sky.
|
It's currently {{states.sensor.dark_sky_summary.state}} and {{states.sensor.dark_sky_temperature.state|round}} degrees according to Dark Sky.
|
||||||
The back porch is {{states.sensor.accurite_back_porch_temperature.state|round}} degrees.
|
The back porch is {{states.sensor.accurite_back_porch_temperature.state|round}} degrees.
|
||||||
|
@ -446,6 +455,13 @@ script:
|
||||||
Looking into the future you can expect {{states.sensor.dark_sky_daily_summary.state}}.
|
Looking into the future you can expect {{states.sensor.dark_sky_daily_summary.state}}.
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% macro freeze_warning() %}
|
||||||
|
{{ [ "The temperature is expexted to be near freezing. Might want to bering the lemon tree in. ",
|
||||||
|
"It appears that it will be cold tonigh. Think of the plants.",
|
||||||
|
"I suggest beinging in the plants otherwise the temperature might kill them."
|
||||||
|
] | random }}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro upcoming_birthdays() %}
|
{% macro upcoming_birthdays() %}
|
||||||
{% if states.sensor.birthday_skylar.state | int == 1 %}
|
{% if states.sensor.birthday_skylar.state | int == 1 %}
|
||||||
Tomorrow is Skylar's Birthday.
|
Tomorrow is Skylar's Birthday.
|
||||||
|
@ -464,9 +480,9 @@ script:
|
||||||
{% macro upcoming_holidays() %}
|
{% macro upcoming_holidays() %}
|
||||||
{% if states.sensor.holiday_halloween.state | int == 1 %}
|
{% if states.sensor.holiday_halloween.state | int == 1 %}
|
||||||
Tomorrow is Halloween. I hope you have picked out a costume.
|
Tomorrow is Halloween. I hope you have picked out a costume.
|
||||||
{{ [ "I'll be going as a dumb home. ",
|
{{ [ "I will be going as a dumb home. ",
|
||||||
"I've prepped the scary music. Just in case.",
|
"I have prepped the scary music. Just in case.",
|
||||||
"I'll be going as HAL 9000. The Pod Bay Doors are being installed today."
|
"I will be going as HAL 9000. The Pod Bay Doors are being installed today."
|
||||||
] | random }}
|
] | random }}
|
||||||
{% elif states.sensor.holiday_halloween.state | int < 30 %}
|
{% elif states.sensor.holiday_halloween.state | int < 30 %}
|
||||||
There are only {{states.sensor.holiday_halloween.state}} days
|
There are only {{states.sensor.holiday_halloween.state}} days
|
||||||
|
@ -609,6 +625,20 @@ script:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% macro garage_door_status() %}
|
||||||
|
{% if is_state("binary_sensor.garage_door_contact_2", "on") %}
|
||||||
|
{{ [ "The garage door is open. ",
|
||||||
|
"The pod bay doors are open. ",
|
||||||
|
"Someone forgot to close the garage."
|
||||||
|
] | random }}
|
||||||
|
{% else %}
|
||||||
|
{{ [ "The garage door is closed. ",
|
||||||
|
"The cargo hold is sealed. ",
|
||||||
|
"Looks like the garage has been secured for."
|
||||||
|
] | random }}
|
||||||
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro jeff_location() %}
|
{% macro jeff_location() %}
|
||||||
{% if is_state("sensor.jeff_location", "home") %}
|
{% if is_state("sensor.jeff_location", "home") %}
|
||||||
{{ [
|
{{ [
|
||||||
|
@ -819,6 +849,10 @@ script:
|
||||||
{{ todays_events() }}
|
{{ todays_events() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if call_dark_outside == 1 %}
|
||||||
|
{{ dark_outside() }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if call_current_conditions_outside == 1 %}
|
{% if call_current_conditions_outside == 1 %}
|
||||||
{{ current_conditions_outside() }}
|
{{ current_conditions_outside() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -843,6 +877,10 @@ script:
|
||||||
{{ future_forecast() }}
|
{{ future_forecast() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if call_freeze_warning == 1 %}
|
||||||
|
{{ freeze_warning() }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if call_upcoming_birthdays == 1 %}
|
{% if call_upcoming_birthdays == 1 %}
|
||||||
{{ upcoming_birthdays() }}
|
{{ upcoming_birthdays() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -883,6 +921,10 @@ script:
|
||||||
{{ door_status() }}
|
{{ door_status() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if call_garage_door_status == 1 %}
|
||||||
|
{{ garage_door_status() }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if call_jeff_location == 1 %}
|
{% if call_jeff_location == 1 %}
|
||||||
{{ jeff_location() }}
|
{{ jeff_location() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue