mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 03:15:45 +00:00
Start building out a Chore Schedule thingee.
This commit is contained in:
23
automation/Speech/chores.yaml
Executable file
23
automation/Speech/chores.yaml
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
######################################################################
|
||||||
|
## Some home facts when we get back home from being away.
|
||||||
|
######################################################################
|
||||||
|
- alias: 'chores'
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.chore_schedule
|
||||||
|
state: 'on'
|
||||||
|
from: 'off'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
entity_id: input_boolean.chore_schedule
|
||||||
|
|
||||||
|
- service: script.Voice_notify
|
||||||
|
data_template:
|
||||||
|
value1: >
|
||||||
|
"Welcome Home Costanzo Family. Here is what's going on around the house right now:
|
||||||
|
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
|
||||||
|
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
|
||||||
|
{%endif%}
|
@@ -2,7 +2,7 @@
|
|||||||
## Some home facts when we get back home from being away.
|
## Some home facts when we get back home from being away.
|
||||||
######################################################################
|
######################################################################
|
||||||
- alias: 'Home Stats'
|
- alias: 'Home Stats'
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
@@ -10,8 +10,16 @@
|
|||||||
from: 'not_home'
|
from: 'not_home'
|
||||||
to: 'home'
|
to: 'home'
|
||||||
for: '00:03:00'
|
for: '00:03:00'
|
||||||
|
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.home_news
|
||||||
|
state: 'on'
|
||||||
|
from: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
entity_id: input_boolean.home_news
|
||||||
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: >
|
value1: >
|
||||||
@@ -19,24 +27,24 @@
|
|||||||
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
|
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
|
||||||
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
|
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash.
|
||||||
{%endif%}
|
{%endif%}
|
||||||
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
|
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with around {{states('sensor.downstairs_thermostat_humidity')}} percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
|
||||||
{% if is_state('cover.garadget_large', 'open') -%}
|
{% if is_state('cover.garadget_large', 'open') -%}
|
||||||
Also, The Large Garage Door is still open
|
Also, The Large Garage Door is still open
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% if is_state('cover.garadget_small', 'open') -%}
|
{% if is_state('cover.garadget_small', 'open') -%}
|
||||||
{% if is_state('cover.garadget_large', 'open') -%}and
|
{% if is_state('cover.garadget_large', 'open') -%}and
|
||||||
{%- endif %} The small Garage Door is still open.
|
{%- endif %} The small Garage Door is still open.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
. There are
|
. There are
|
||||||
{% for state in states.light if state.state == 'on' -%}
|
{% for state in states.light if state.state == 'on' -%}
|
||||||
{%- if loop.last -%}
|
{%- if loop.last -%}
|
||||||
{{ loop.index }}
|
{{ loop.index }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor %} lights on right now."
|
{%- endfor %} lights on right now."
|
||||||
{% set comma = joiner(', ') %} The
|
{% set comma = joiner(', ') %} The
|
||||||
{% for group in states.group|groupby('state') -%}
|
{% for group in states.group|groupby('state') -%}
|
||||||
{%- for entity in group.list if entity.state == 'on' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%}
|
{%- for entity in group.list if entity.state == 'on' and entity.name.split(' ')[1]|lower == 'lights' and entity.name.split(' ')[0]|lower != 'all' and entity.name.split(' ')[0]|lower != 'interior' -%}
|
||||||
{{ ' and' if loop.last and not loop.first else comma() }}
|
{{ ' and' if loop.last and not loop.first else comma() }}
|
||||||
{{ entity.name }}
|
{{ entity.name }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
@@ -267,8 +267,8 @@ sensor.nest_upstairs:
|
|||||||
sensor.polly_lastmsg:
|
sensor.polly_lastmsg:
|
||||||
friendly_name: 'Polly Lastmsg'
|
friendly_name: 'Polly Lastmsg'
|
||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
hidden: False
|
hidden: True
|
||||||
|
icon: mdi:chemical-weapon
|
||||||
|
|
||||||
|
|
||||||
sensor.rachio:
|
sensor.rachio:
|
||||||
|
7
input_boolean/hidden_booleans.yaml
Executable file
7
input_boolean/hidden_booleans.yaml
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
home_news:
|
||||||
|
name: Home News
|
||||||
|
initial: off
|
||||||
|
|
||||||
|
chore_schedule:
|
||||||
|
name: Chore Schedule
|
||||||
|
initial: off
|
Reference in New Issue
Block a user