From 33e863ff176433afc23dd361fd4f2e559e990763 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 21 Apr 2020 12:33:57 +0200 Subject: [PATCH] Moved binary sensor for guard_mode to alarm package --- binary_sensor/home_assistant.yaml | 18 ------------------ packages/alarm/guard_mode.yaml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/binary_sensor/home_assistant.yaml b/binary_sensor/home_assistant.yaml index a44929d7..86fd550c 100644 --- a/binary_sensor/home_assistant.yaml +++ b/binary_sensor/home_assistant.yaml @@ -20,24 +20,6 @@ mdi:airplane-takeoff {% endif %} -###################################################################### -# Binary Sensor: Guard Mode -###################################################################### - -- platform: template - sensors: - guard_mode: - friendly_name: Modalità Guardia - entity_id: input_boolean.guard_mode - value_template: >- - {{ is_state('input_boolean.guard_mode', 'on') }} - icon_template: >- - {% if is_state('input_boolean.guard_mode', 'on') %} - mdi:shield-home - {% else %} - mdi:shield-off - {% endif %} - ###################################################################### # Binary Sensor: Text Notification ###################################################################### diff --git a/packages/alarm/guard_mode.yaml b/packages/alarm/guard_mode.yaml index 0a7deab7..83973f22 100644 --- a/packages/alarm/guard_mode.yaml +++ b/packages/alarm/guard_mode.yaml @@ -1,3 +1,22 @@ +###################################################################### +# Alarm Package - Guard Mode - Binary Sensor +###################################################################### + +binary_sensor: + - platform: template + sensors: + guard_mode: + friendly_name: Modalità Guardia + entity_id: input_boolean.guard_mode + value_template: >- + {{ is_state('input_boolean.guard_mode', 'on') }} + icon_template: >- + {% if is_state('input_boolean.guard_mode', 'on') %} + mdi:shield-home + {% else %} + mdi:shield-off + {% endif %} + ###################################################################### # Alarm Package - Guard Mode - Input Booleans ###################################################################### -- 2.47.3