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

View File

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

View File

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

View File

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