mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-09 00:55:34 +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'
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.lights_status
|
||||
|
||||
- service: script.Voice_notify
|
||||
data:
|
||||
@ -27,3 +24,4 @@
|
||||
call_responsibilities: 1
|
||||
call_outside_weather: 1
|
||||
call_garage_check: 1
|
||||
call_light_check: 1
|
||||
|
@ -68,15 +68,6 @@ input_boolean.last_message:
|
||||
icon: mdi:repeat-once
|
||||
|
||||
|
||||
|
||||
input_boolean.lights_status:
|
||||
friendly_name: 'Lights Status'
|
||||
emulated_hue: False
|
||||
hidden: False
|
||||
|
||||
|
||||
|
||||
|
||||
input_boolean.meal_time:
|
||||
friendly_name: 'Meal Time'
|
||||
emulated_hue: True
|
||||
|
@ -10,7 +10,3 @@ responsibilities:
|
||||
medicine:
|
||||
name: medicine
|
||||
initial: off
|
||||
|
||||
lights_status:
|
||||
name: Lights Status
|
||||
initial: off
|
||||
|
@ -120,7 +120,7 @@ voice_notify:
|
||||
{% endif %}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro lights_status() -%}
|
||||
{%- macro light_check() -%}
|
||||
. There are
|
||||
{% for state in states.light if state.state == 'on' -%}
|
||||
{%- if loop.last -%}
|
||||
@ -189,8 +189,8 @@ voice_notify:
|
||||
{{garage_check()}}
|
||||
{%endif%}
|
||||
{{ NewDevice}}
|
||||
{% if is_state('input_boolean.lights_status', 'on') %}
|
||||
{{lights_status()}}
|
||||
{% if call_light_check == 1 %}
|
||||
{{light_check()}}
|
||||
{%endif%}
|
||||
{% if call_responsibilities == 1%}
|
||||
{{responsibilities()}}
|
||||
@ -210,4 +210,3 @@ voice_notify:
|
||||
- input_boolean.alert_mode
|
||||
- input_boolean.home_stats
|
||||
- input_boolean.responsibilities
|
||||
- input_boolean.lights_status
|
||||
|
Loading…
x
Reference in New Issue
Block a user