Reestructuración de sensores de movimiento

Movidos los sensores a las nuevas ubicaciones y añadidos los nuevos
This commit is contained in:
dfcarvajal
2019-06-19 12:19:18 +00:00
parent 70fdbb1e63
commit 7e27487885
6 changed files with 41 additions and 5 deletions

View File

@@ -9,4 +9,4 @@ binary_sensor:
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10
off_delay: 5

View File

@@ -0,0 +1,12 @@
binary_sensor:
- platform: mqtt
name: "Movimiento Habitación Mia"
value_template: >-
{% if value_json.RfReceived.Data == 'CBD19C' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == 'CBD190' %}
{{'OFF'}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10

View File

@@ -0,0 +1,12 @@
binary_sensor:
- platform: mqtt
name: "Movimiento Habitación Noha"
value_template: >-
{% if value_json.RfReceived.Data == 'DFEF9C' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == 'DFEF90' %}
{{'OFF'}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10

View File

@@ -4,8 +4,8 @@ binary_sensor:
value_template: >-
{% if value_json.RfReceived.Data == 'FDE2BC' %}
{{'ON'}}
{% else %}
{{states('binary_sensor.movimiento_habitacion_principal') | upper}}
{% elif value_json.RfReceived.Data == 'FDE2B0' %}
{{'OFF'}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"

View File

@@ -0,0 +1,12 @@
binary_sensor:
- platform: mqtt
name: "Movimiento Pasillo Entrada"
value_template: >-
{% if value_json.RfReceived.Data == '4A3E9C' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == '4A3E90' %}
{{'OFF'}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10

View File

@@ -4,8 +4,8 @@ binary_sensor:
value_template: >-
{% if value_json.RfReceived.Data == '5D559C' %}
{{'ON'}}
{% else %}
{{states('binary_sensor.movimiento_pasillo_habitaciones') | upper}}
{% elif value_json.RfReceived.Data == '5D5590' %}
{{'OFF'}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"