diff --git a/automation/Speech/home_stats.yaml b/automation/Speech/home_stats.yaml index 3f411392..3b24a5cf 100755 --- a/automation/Speech/home_stats.yaml +++ b/automation/Speech/home_stats.yaml @@ -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 diff --git a/customize/input_booleans.yaml b/customize/input_booleans.yaml index 75e606ed..9ac37c3f 100755 --- a/customize/input_booleans.yaml +++ b/customize/input_booleans.yaml @@ -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 diff --git a/input_boolean/hidden_booleans.yaml b/input_boolean/hidden_booleans.yaml index 7a0a2dad..cadd002b 100755 --- a/input_boolean/hidden_booleans.yaml +++ b/input_boolean/hidden_booleans.yaml @@ -10,7 +10,3 @@ responsibilities: medicine: name: medicine initial: off - -lights_status: - name: Lights Status - initial: off diff --git a/script/voice_notify.yaml b/script/voice_notify.yaml index e49db917..e572d1b3 100755 --- a/script/voice_notify.yaml +++ b/script/voice_notify.yaml @@ -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