From 6296fc68b8aee27f49472dadf11ffe4c34b6f6c5 Mon Sep 17 00:00:00 2001 From: dfcarvajal Date: Sun, 27 Dec 2020 17:15:48 +0100 Subject: [PATCH] Cambios en los movimientos --- packages/binary_sensor/movimiento_bano_general.yaml | 6 +++--- .../binary_sensor/movimiento_bano_general_433.yaml | 12 ++++++++++++ .../movimiento_bano_general_primario.yaml | 12 ------------ .../binary_sensor/movimiento_bano_principal.yaml | 6 +++--- .../binary_sensor/movimiento_bano_principal_433.yaml | 12 ++++++++++++ .../binary_sensor/movimiento_cocina_primario.yaml | 12 ------------ .../movimiento_habitacion_estudio_primario.yaml | 12 ------------ .../movimiento_habitacion_mia_primario.yaml | 12 ------------ .../movimiento_habitacion_noha_primario.yaml | 12 ------------ .../movimiento_habitacion_principal_primario.yaml | 12 ------------ .../movimiento_pasillo_entrada_primario.yaml | 12 ------------ .../movimiento_pasillo_habitaciones_primario.yaml | 12 ------------ 12 files changed, 30 insertions(+), 102 deletions(-) create mode 100644 packages/binary_sensor/movimiento_bano_general_433.yaml delete mode 100644 packages/binary_sensor/movimiento_bano_general_primario.yaml create mode 100644 packages/binary_sensor/movimiento_bano_principal_433.yaml delete mode 100644 packages/binary_sensor/movimiento_cocina_primario.yaml delete mode 100644 packages/binary_sensor/movimiento_habitacion_estudio_primario.yaml delete mode 100644 packages/binary_sensor/movimiento_habitacion_mia_primario.yaml delete mode 100644 packages/binary_sensor/movimiento_habitacion_noha_primario.yaml delete mode 100644 packages/binary_sensor/movimiento_habitacion_principal_primario.yaml delete mode 100644 packages/binary_sensor/movimiento_pasillo_entrada_primario.yaml delete mode 100644 packages/binary_sensor/movimiento_pasillo_habitaciones_primario.yaml diff --git a/packages/binary_sensor/movimiento_bano_general.yaml b/packages/binary_sensor/movimiento_bano_general.yaml index abe68c1..c4c9e89 100644 --- a/packages/binary_sensor/movimiento_bano_general.yaml +++ b/packages/binary_sensor/movimiento_bano_general.yaml @@ -4,9 +4,9 @@ binary_sensor: movimiento_bano_general: friendly_name: "Movimiento Baño General" entity_id: - - binary_sensor.movimiento_bano_general_primario - - binary_sensor.movimiento_bano_general_secundario + - binary_sensor.movimiento_bano_general_433 + - binary_sensor.movimiento_bano_general_zwave value_template: >- - {{ is_state('binary_sensor.movimiento_bano_general_primario','on') or is_state('binary_sensor.movimiento_bano_general_secundario','on') }} + {{ is_state('binary_sensor.movimiento_bano_general_433','on') or is_state('binary_sensor.movimiento_bano_general_zwave','on') }} device_class: motion diff --git a/packages/binary_sensor/movimiento_bano_general_433.yaml b/packages/binary_sensor/movimiento_bano_general_433.yaml new file mode 100644 index 0000000..96da0c5 --- /dev/null +++ b/packages/binary_sensor/movimiento_bano_general_433.yaml @@ -0,0 +1,12 @@ +binary_sensor: + - platform: template + sensors: + movimiento_bano_general_433: + friendly_name: "Movimiento Baño General 433" + entity_id: + - binary_sensor.movimiento_bano_general_primario + - binary_sensor.movimiento_bano_general_secundario + value_template: >- + {{ is_state('binary_sensor.movimiento_bano_general_primario','on') or is_state('binary_sensor.movimiento_bano_general_secundario','on') }} + device_class: motion + diff --git a/packages/binary_sensor/movimiento_bano_general_primario.yaml b/packages/binary_sensor/movimiento_bano_general_primario.yaml deleted file mode 100644 index f5d5b08..0000000 --- a/packages/binary_sensor/movimiento_bano_general_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Baño General Primario" - value_template: >- - {% if value_json.RfReceived.Data == 'FAD6AC' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 10 diff --git a/packages/binary_sensor/movimiento_bano_principal.yaml b/packages/binary_sensor/movimiento_bano_principal.yaml index 9613e6f..08b3880 100644 --- a/packages/binary_sensor/movimiento_bano_principal.yaml +++ b/packages/binary_sensor/movimiento_bano_principal.yaml @@ -4,9 +4,9 @@ binary_sensor: movimiento_bano_principal: friendly_name: "Movimiento Baño Principal" entity_id: - - binary_sensor.movimiento_bano_principal_primario - - binary_sensor.movimiento_bano_principal_secundario + - binary_sensor.movimiento_bano_principal_433 + - binary_sensor.movimiento_bano_principal_zwave value_template: >- - {{ is_state('binary_sensor.movimiento_bano_principal_primario','on') or is_state('binary_sensor.movimiento_bano_principal_secundario','on') }} + {{ is_state('binary_sensor.movimiento_bano_principal_433','on') or is_state('binary_sensor.movimiento_bano_principal_zwave','on') }} device_class: motion diff --git a/packages/binary_sensor/movimiento_bano_principal_433.yaml b/packages/binary_sensor/movimiento_bano_principal_433.yaml new file mode 100644 index 0000000..3b1ac82 --- /dev/null +++ b/packages/binary_sensor/movimiento_bano_principal_433.yaml @@ -0,0 +1,12 @@ +binary_sensor: + - platform: template + sensors: + movimiento_bano_principal_433: + friendly_name: "Movimiento Baño Principal 433" + entity_id: + - binary_sensor.movimiento_bano_principal_primario + - binary_sensor.movimiento_bano_principal_secundario + value_template: >- + {{ is_state('binary_sensor.movimiento_bano_principal_primario','on') or is_state('binary_sensor.movimiento_bano_principal_secundario','on') }} + device_class: motion + diff --git a/packages/binary_sensor/movimiento_cocina_primario.yaml b/packages/binary_sensor/movimiento_cocina_primario.yaml deleted file mode 100644 index d5dc753..0000000 --- a/packages/binary_sensor/movimiento_cocina_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Cocina Primario" - value_template: >- - {% if value_json.RfReceived.Data == '8B6E9C' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 20 diff --git a/packages/binary_sensor/movimiento_habitacion_estudio_primario.yaml b/packages/binary_sensor/movimiento_habitacion_estudio_primario.yaml deleted file mode 100644 index f9e5970..0000000 --- a/packages/binary_sensor/movimiento_habitacion_estudio_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Habitación Estudio Primario" - value_template: >- - {% if value_json.RfReceived.Data == '2A00BC' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 20 diff --git a/packages/binary_sensor/movimiento_habitacion_mia_primario.yaml b/packages/binary_sensor/movimiento_habitacion_mia_primario.yaml deleted file mode 100644 index a739aba..0000000 --- a/packages/binary_sensor/movimiento_habitacion_mia_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Habitación Mia Primario" - value_template: >- - {% if value_json.RfReceived.Data == 'CBD19C' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 10 diff --git a/packages/binary_sensor/movimiento_habitacion_noha_primario.yaml b/packages/binary_sensor/movimiento_habitacion_noha_primario.yaml deleted file mode 100644 index e0406c2..0000000 --- a/packages/binary_sensor/movimiento_habitacion_noha_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Habitación Noha Primario" - value_template: >- - {% if value_json.RfReceived.Data == 'DFEF9C' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 10 diff --git a/packages/binary_sensor/movimiento_habitacion_principal_primario.yaml b/packages/binary_sensor/movimiento_habitacion_principal_primario.yaml deleted file mode 100644 index 61b6da4..0000000 --- a/packages/binary_sensor/movimiento_habitacion_principal_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Habitación Principal Primario" - value_template: >- - {% if value_json.RfReceived.Data == 'FDE2BC' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 10 diff --git a/packages/binary_sensor/movimiento_pasillo_entrada_primario.yaml b/packages/binary_sensor/movimiento_pasillo_entrada_primario.yaml deleted file mode 100644 index 616d75f..0000000 --- a/packages/binary_sensor/movimiento_pasillo_entrada_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Pasillo Entrada Primario" - value_template: >- - {% if value_json.RfReceived.Data == '4A3E9C' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 10 diff --git a/packages/binary_sensor/movimiento_pasillo_habitaciones_primario.yaml b/packages/binary_sensor/movimiento_pasillo_habitaciones_primario.yaml deleted file mode 100644 index db24dbb..0000000 --- a/packages/binary_sensor/movimiento_pasillo_habitaciones_primario.yaml +++ /dev/null @@ -1,12 +0,0 @@ -binary_sensor: - - platform: mqtt - name: "Movimiento Pasillo Habitaciones Primario" - value_template: >- - {% if value_json.RfReceived.Data == '5D559C' %} - {{'ON'}} - {% else %} - {{'OFF'}} - {% endif %} - device_class: motion - state_topic: "sonoffbridge/tele/RESULT" - off_delay: 10