Closes #153 - The last of the input_boolean triggers have been moved to variables.

This commit is contained in:
CCOSTAN 2017-05-04 18:31:52 +00:00
parent fc0897434c
commit 684253a6b2
4 changed files with 4 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -10,7 +10,3 @@ responsibilities:
medicine:
name: medicine
initial: off
lights_status:
name: Lights Status
initial: off

View File

@ -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