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'
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.responsibilities
|
||||
- input_boolean.inside_weather
|
||||
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
personarriving: >
|
||||
@@ -41,3 +36,4 @@
|
||||
] | random }}
|
||||
{%- endmacro -%}
|
||||
"{{greeting_sentence(person)}}"
|
||||
call_responsibilities: 1
|
||||
|
@@ -29,3 +29,4 @@
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
DoorOpened: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
||||
call_inside_weather: 1
|
||||
|
@@ -19,10 +19,11 @@
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.chore_check
|
||||
- input_boolean.inside_temp
|
||||
- input_boolean.outside_weather
|
||||
- input_boolean.lights_status
|
||||
- input_boolean.garage_check
|
||||
|
||||
- service: script.Voice_notify
|
||||
data:
|
||||
call_inside_weather: 1
|
||||
call_responsibilities: 1
|
||||
call_outside_weather: 1
|
||||
|
@@ -11,7 +11,6 @@
|
||||
from: 'off'
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.chore_check
|
||||
- service: script.Voice_notify
|
||||
data:
|
||||
call_responsibilities: 1
|
||||
|
@@ -66,16 +66,6 @@ input_boolean.home_stats:
|
||||
hidden: False
|
||||
icon: mdi:chart-bar
|
||||
|
||||
|
||||
|
||||
input_boolean.inside_weather:
|
||||
friendly_name: 'Inside Weather'
|
||||
emulated_hue: False
|
||||
hidden: False
|
||||
|
||||
|
||||
|
||||
|
||||
input_boolean.last_message:
|
||||
friendly_name: 'Last Message'
|
||||
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:
|
||||
|
@@ -6,9 +6,6 @@ responsibilities:
|
||||
name: responsibilities
|
||||
initial: off
|
||||
|
||||
chore_check:
|
||||
name: responsibilities
|
||||
initial: off
|
||||
|
||||
medicine:
|
||||
name: medicine
|
||||
@@ -18,13 +15,7 @@ lights_status:
|
||||
name: Lights Status
|
||||
initial: off
|
||||
|
||||
inside_weather:
|
||||
name: Inside Weather
|
||||
initial: off
|
||||
|
||||
outside_weather:
|
||||
name: Outside Weather
|
||||
initial: off
|
||||
|
||||
garage_check:
|
||||
name: Garage Check
|
||||
|
@@ -173,10 +173,10 @@ voice_notify:
|
||||
{{ personarriving }} {# Called from Annoucenments #}
|
||||
|
||||
{{ 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()}}
|
||||
{%endif%}
|
||||
{% if is_state('input_boolean.outside_weather', 'on') %}
|
||||
{% if call_outside_weather == 1 %}
|
||||
{{outside_weather()}}
|
||||
{%endif%}
|
||||
{{uv_rays()}}
|
||||
@@ -190,7 +190,7 @@ voice_notify:
|
||||
{% if is_state('input_boolean.lights_status', 'on') %}
|
||||
{{lights_status()}}
|
||||
{%endif%}
|
||||
{% if is_state('input_boolean.chore_check', 'on') %}
|
||||
{% if call_responsibilities == 1%}
|
||||
{{responsibilities()}}
|
||||
{%endif%}
|
||||
{% if now().strftime("%H")|int > 22 %}
|
||||
@@ -208,8 +208,5 @@ voice_notify:
|
||||
- input_boolean.alert_mode
|
||||
- input_boolean.home_stats
|
||||
- input_boolean.responsibilities
|
||||
- input_boolean.chore_check
|
||||
- input_boolean.inside_temp
|
||||
- input_boolean.outside_weather
|
||||
- input_boolean.lights_status
|
||||
- input_boolean.garage_check
|
||||
|
Reference in New Issue
Block a user