From 750a0e0bcfef795bb6da314403daebaca3f25c99 Mon Sep 17 00:00:00 2001 From: dfcarvajal Date: Sun, 4 Aug 2019 11:49:25 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adidos=20binarios=20de=20ventanas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binary_sensor/ventana_habitacion_estudio.yaml | 13 +++++++++++++ packages/binary_sensor/ventana_habitacion_mia.yaml | 13 +++++++++++++ .../binary_sensor/ventana_habitacion_noha.yaml | 13 +++++++++++++ .../ventana_habitacion_principal_grande.yaml | 14 ++++++++++++++ .../ventana_habitacion_principal_pequena.yaml | 14 ++++++++++++++ .../ventana_salon_fase_dos_grande.yaml | 14 ++++++++++++++ .../ventana_salon_fase_dos_pequena.yaml | 14 ++++++++++++++ .../ventana_salon_piscina_grande.yaml | 14 ++++++++++++++ .../ventana_salon_piscina_pequena.yaml | 14 ++++++++++++++ 9 files changed, 123 insertions(+) create mode 100644 packages/binary_sensor/ventana_habitacion_estudio.yaml create mode 100644 packages/binary_sensor/ventana_habitacion_mia.yaml create mode 100644 packages/binary_sensor/ventana_habitacion_noha.yaml create mode 100644 packages/binary_sensor/ventana_habitacion_principal_grande.yaml create mode 100644 packages/binary_sensor/ventana_habitacion_principal_pequena.yaml create mode 100644 packages/binary_sensor/ventana_salon_fase_dos_grande.yaml create mode 100644 packages/binary_sensor/ventana_salon_fase_dos_pequena.yaml create mode 100644 packages/binary_sensor/ventana_salon_piscina_grande.yaml create mode 100644 packages/binary_sensor/ventana_salon_piscina_pequena.yaml diff --git a/packages/binary_sensor/ventana_habitacion_estudio.yaml b/packages/binary_sensor/ventana_habitacion_estudio.yaml new file mode 100644 index 0000000..7208c97 --- /dev/null +++ b/packages/binary_sensor/ventana_habitacion_estudio.yaml @@ -0,0 +1,13 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Habitación Estudio" #Ventana Habitación Estudio + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_habitacion_estudio') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" diff --git a/packages/binary_sensor/ventana_habitacion_mia.yaml b/packages/binary_sensor/ventana_habitacion_mia.yaml new file mode 100644 index 0000000..53d088a --- /dev/null +++ b/packages/binary_sensor/ventana_habitacion_mia.yaml @@ -0,0 +1,13 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Habitación Mia" #Ventana Habitación Mia + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_habitacion_mia') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" diff --git a/packages/binary_sensor/ventana_habitacion_noha.yaml b/packages/binary_sensor/ventana_habitacion_noha.yaml new file mode 100644 index 0000000..f44d91b --- /dev/null +++ b/packages/binary_sensor/ventana_habitacion_noha.yaml @@ -0,0 +1,13 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Habitación Noha" #Ventana Habitación Noha + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_habitacion_noha') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" diff --git a/packages/binary_sensor/ventana_habitacion_principal_grande.yaml b/packages/binary_sensor/ventana_habitacion_principal_grande.yaml new file mode 100644 index 0000000..e6b0bd8 --- /dev/null +++ b/packages/binary_sensor/ventana_habitacion_principal_grande.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Habitación Principal Grande" #Ventana Habitación Principal Grande + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_habitacion_principal_grande') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" + diff --git a/packages/binary_sensor/ventana_habitacion_principal_pequena.yaml b/packages/binary_sensor/ventana_habitacion_principal_pequena.yaml new file mode 100644 index 0000000..80773b8 --- /dev/null +++ b/packages/binary_sensor/ventana_habitacion_principal_pequena.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Habitación Principal Pequeña" #Ventana Habitación Principal Pequeña + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_habitacion_principal_pequena') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" + diff --git a/packages/binary_sensor/ventana_salon_fase_dos_grande.yaml b/packages/binary_sensor/ventana_salon_fase_dos_grande.yaml new file mode 100644 index 0000000..ea4a41a --- /dev/null +++ b/packages/binary_sensor/ventana_salon_fase_dos_grande.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Salón Fase Dos Grande" #Ventana Salón Fase Dos Grande + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_salon_fase_dos_grande') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" + diff --git a/packages/binary_sensor/ventana_salon_fase_dos_pequena.yaml b/packages/binary_sensor/ventana_salon_fase_dos_pequena.yaml new file mode 100644 index 0000000..7c354ee --- /dev/null +++ b/packages/binary_sensor/ventana_salon_fase_dos_pequena.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Salón Fase Dos Pequeña" #Ventana Salón Fase Dos Pequeña + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_salon_fase_dos_pequena') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" + diff --git a/packages/binary_sensor/ventana_salon_piscina_grande.yaml b/packages/binary_sensor/ventana_salon_piscina_grande.yaml new file mode 100644 index 0000000..8ad88b5 --- /dev/null +++ b/packages/binary_sensor/ventana_salon_piscina_grande.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Salón Piscina Grande" #Ventana Salón Piscina Grande + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_salon_piscina_grande') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" + diff --git a/packages/binary_sensor/ventana_salon_piscina_pequena.yaml b/packages/binary_sensor/ventana_salon_piscina_pequena.yaml new file mode 100644 index 0000000..f2636d4 --- /dev/null +++ b/packages/binary_sensor/ventana_salon_piscina_pequena.yaml @@ -0,0 +1,14 @@ +binary_sensor: + - platform: mqtt + name: "Ventana Salón Piscina Pequeña" #Ventana Salón Piscina Pequeña + value_template: >- + {% if value_json.RfReceived.Data == 'AAAAAA' %} + {{'ON'}} + {% elif value_json.RfReceived.Data == 'BBBBBB' %} + {{'OFF'}} + {% else %} + {{states('binary_sensor.ventana_salon_piscina_pequena') | upper}} + {% endif %} + device_class: window + state_topic: "sonoffbridge/tele/RESULT" +