mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
#153 - Moving input_booleans to scripting variables! Boom!
This commit is contained in:
@@ -17,11 +17,6 @@
|
|||||||
for: '00:02:00'
|
for: '00:02:00'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
|
||||||
entity_id:
|
|
||||||
- input_boolean.responsibilities
|
|
||||||
- input_boolean.inside_weather
|
|
||||||
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
personarriving: >
|
personarriving: >
|
||||||
@@ -41,3 +36,4 @@
|
|||||||
] | random }}
|
] | random }}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
"{{greeting_sentence(person)}}"
|
"{{greeting_sentence(person)}}"
|
||||||
|
call_responsibilities: 1
|
||||||
|
@@ -29,3 +29,4 @@
|
|||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
DoorOpened: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
DoorOpened: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
||||||
|
call_inside_weather: 1
|
||||||
|
@@ -19,10 +19,11 @@
|
|||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.chore_check
|
|
||||||
- input_boolean.inside_temp
|
|
||||||
- input_boolean.outside_weather
|
|
||||||
- input_boolean.lights_status
|
- input_boolean.lights_status
|
||||||
- input_boolean.garage_check
|
- input_boolean.garage_check
|
||||||
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
|
data:
|
||||||
|
call_inside_weather: 1
|
||||||
|
call_responsibilities: 1
|
||||||
|
call_outside_weather: 1
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
from: 'off'
|
from: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
|
||||||
entity_id:
|
|
||||||
- input_boolean.chore_check
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
|
data:
|
||||||
|
call_responsibilities: 1
|
||||||
|
@@ -66,16 +66,6 @@ input_boolean.home_stats:
|
|||||||
hidden: False
|
hidden: False
|
||||||
icon: mdi:chart-bar
|
icon: mdi:chart-bar
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input_boolean.inside_weather:
|
|
||||||
friendly_name: 'Inside Weather'
|
|
||||||
emulated_hue: False
|
|
||||||
hidden: False
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input_boolean.last_message:
|
input_boolean.last_message:
|
||||||
friendly_name: 'Last Message'
|
friendly_name: 'Last Message'
|
||||||
emulated_hue: True
|
emulated_hue: True
|
||||||
@@ -108,12 +98,6 @@ input_boolean.medicine:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
input_boolean.outside_weather:
|
|
||||||
friendly_name: 'Outside Weather'
|
|
||||||
emulated_hue: True
|
|
||||||
hidden: False
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input_boolean.responsibilities:
|
input_boolean.responsibilities:
|
||||||
|
@@ -6,9 +6,6 @@ responsibilities:
|
|||||||
name: responsibilities
|
name: responsibilities
|
||||||
initial: off
|
initial: off
|
||||||
|
|
||||||
chore_check:
|
|
||||||
name: responsibilities
|
|
||||||
initial: off
|
|
||||||
|
|
||||||
medicine:
|
medicine:
|
||||||
name: medicine
|
name: medicine
|
||||||
@@ -18,13 +15,7 @@ lights_status:
|
|||||||
name: Lights Status
|
name: Lights Status
|
||||||
initial: off
|
initial: off
|
||||||
|
|
||||||
inside_weather:
|
|
||||||
name: Inside Weather
|
|
||||||
initial: off
|
|
||||||
|
|
||||||
outside_weather:
|
|
||||||
name: Outside Weather
|
|
||||||
initial: off
|
|
||||||
|
|
||||||
garage_check:
|
garage_check:
|
||||||
name: Garage Check
|
name: Garage Check
|
||||||
|
@@ -173,10 +173,10 @@ voice_notify:
|
|||||||
{{ personarriving }} {# Called from Annoucenments #}
|
{{ personarriving }} {# Called from Annoucenments #}
|
||||||
|
|
||||||
{{ NestStatus}} {# Called from Nest when thermostats turn on #}
|
{{ NestStatus}} {# Called from Nest when thermostats turn on #}
|
||||||
{% if is_state('input_boolean.inside_weather', 'on') or call_inside_weather == 1 %}
|
{% if call_inside_weather == 1 %}
|
||||||
{{inside_weather()}}
|
{{inside_weather()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% if is_state('input_boolean.outside_weather', 'on') %}
|
{% if call_outside_weather == 1 %}
|
||||||
{{outside_weather()}}
|
{{outside_weather()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{{uv_rays()}}
|
{{uv_rays()}}
|
||||||
@@ -190,7 +190,7 @@ voice_notify:
|
|||||||
{% if is_state('input_boolean.lights_status', 'on') %}
|
{% if is_state('input_boolean.lights_status', 'on') %}
|
||||||
{{lights_status()}}
|
{{lights_status()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% if is_state('input_boolean.chore_check', 'on') %}
|
{% if call_responsibilities == 1%}
|
||||||
{{responsibilities()}}
|
{{responsibilities()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% if now().strftime("%H")|int > 22 %}
|
{% if now().strftime("%H")|int > 22 %}
|
||||||
@@ -208,8 +208,5 @@ voice_notify:
|
|||||||
- input_boolean.alert_mode
|
- input_boolean.alert_mode
|
||||||
- input_boolean.home_stats
|
- input_boolean.home_stats
|
||||||
- input_boolean.responsibilities
|
- input_boolean.responsibilities
|
||||||
- input_boolean.chore_check
|
|
||||||
- input_boolean.inside_temp
|
|
||||||
- input_boolean.outside_weather
|
|
||||||
- input_boolean.lights_status
|
- input_boolean.lights_status
|
||||||
- input_boolean.garage_check
|
- input_boolean.garage_check
|
||||||
|
Reference in New Issue
Block a user