mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-09 17:14:51 +00:00
Closes #153 - The last of the input_boolean triggers have been moved to variables.
This commit is contained in:
parent
fc0897434c
commit
684253a6b2
@ -17,9 +17,6 @@
|
|||||||
from: 'off'
|
from: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
|
||||||
entity_id:
|
|
||||||
- input_boolean.lights_status
|
|
||||||
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data:
|
data:
|
||||||
@ -27,3 +24,4 @@
|
|||||||
call_responsibilities: 1
|
call_responsibilities: 1
|
||||||
call_outside_weather: 1
|
call_outside_weather: 1
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
|
call_light_check: 1
|
||||||
|
@ -68,15 +68,6 @@ input_boolean.last_message:
|
|||||||
icon: mdi:repeat-once
|
icon: mdi:repeat-once
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input_boolean.lights_status:
|
|
||||||
friendly_name: 'Lights Status'
|
|
||||||
emulated_hue: False
|
|
||||||
hidden: False
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input_boolean.meal_time:
|
input_boolean.meal_time:
|
||||||
friendly_name: 'Meal Time'
|
friendly_name: 'Meal Time'
|
||||||
emulated_hue: True
|
emulated_hue: True
|
||||||
|
@ -10,7 +10,3 @@ responsibilities:
|
|||||||
medicine:
|
medicine:
|
||||||
name: medicine
|
name: medicine
|
||||||
initial: off
|
initial: off
|
||||||
|
|
||||||
lights_status:
|
|
||||||
name: Lights Status
|
|
||||||
initial: off
|
|
||||||
|
@ -120,7 +120,7 @@ voice_notify:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro lights_status() -%}
|
{%- macro light_check() -%}
|
||||||
. 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 -%}
|
||||||
@ -189,8 +189,8 @@ voice_notify:
|
|||||||
{{garage_check()}}
|
{{garage_check()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{{ NewDevice}}
|
{{ NewDevice}}
|
||||||
{% if is_state('input_boolean.lights_status', 'on') %}
|
{% if call_light_check == 1 %}
|
||||||
{{lights_status()}}
|
{{light_check()}}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% if call_responsibilities == 1%}
|
{% if call_responsibilities == 1%}
|
||||||
{{responsibilities()}}
|
{{responsibilities()}}
|
||||||
@ -210,4 +210,3 @@ 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.lights_status
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user