mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-19 03:29:34 +00:00
Testing out passing script variables instead of input booleans.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.responsibilities
|
- input_boolean.responsibilities
|
||||||
|
- input_boolean.inside_weather
|
||||||
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
|
@@ -16,3 +16,4 @@
|
|||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
NestStatus: "The {{ trigger.entity_id.split('.')[1].split('_')[0]}} {{ trigger.entity_id.split('.')[1].split('_')[1]}} has now been turned on for {{(trigger.to_state.state)}}."
|
NestStatus: "The {{ trigger.entity_id.split('.')[1].split('_')[0]}} {{ trigger.entity_id.split('.')[1].split('_')[1]}} has now been turned on for {{(trigger.to_state.state)}}."
|
||||||
|
call_inside_weather: 1
|
||||||
|
@@ -6,7 +6,8 @@
|
|||||||
# value1: 'Startup: Home Assistant is Up and Running!'
|
# value1: 'Startup: Home Assistant is Up and Running!'
|
||||||
# OR
|
# OR
|
||||||
# value1: "{{ trigger.to_state.state }}"
|
# value1: "{{ trigger.to_state.state }}"
|
||||||
|
# # @CCOSTAN
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
######################################################################################################
|
######################################################################################################
|
||||||
|
|
||||||
voice_notify:
|
voice_notify:
|
||||||
@@ -48,7 +49,6 @@ voice_notify:
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.living_room_amp
|
entity_id: switch.living_room_amp
|
||||||
# - delay: '00:00:05'
|
|
||||||
|
|
||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
entity_id: media_player.livingroomCC
|
entity_id: media_player.livingroomCC
|
||||||
@@ -165,12 +165,15 @@ voice_notify:
|
|||||||
|
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
{# ********************************************* #}
|
||||||
|
{# ******** Start the Speech routines ******* #}
|
||||||
|
{# #}
|
||||||
|
{# ********************************************* #}
|
||||||
|
|
||||||
{# *********** Start the Speech routines ******* #}
|
{{ personarriving }} {# Called from Annoucenments #}
|
||||||
{{ personarriving }}
|
|
||||||
|
|
||||||
{{ NestStatus}}
|
{{ NestStatus}} {# Called from Nest when thermostats turn on #}
|
||||||
{% if is_state('input_boolean.inside_weather', 'on') %}
|
{% if is_state('input_boolean.inside_weather', 'on') or call_inside_weather == 1 %}
|
||||||
{{inside_weather()}}
|
{{inside_weather()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% if is_state('input_boolean.outside_weather', 'on') %}
|
{% if is_state('input_boolean.outside_weather', 'on') %}
|
||||||
|
Reference in New Issue
Block a user