Reestructuración de sensores de movimiento
Movidos los sensores a las nuevas ubicaciones y añadidos los nuevos
This commit is contained in:
@@ -9,4 +9,4 @@ binary_sensor:
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
off_delay: 5
|
||||
12
packages/sensor/movimiento/movimiento_habitacion_mia.yaml
Normal file
12
packages/sensor/movimiento/movimiento_habitacion_mia.yaml
Normal 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
|
||||
12
packages/sensor/movimiento/movimiento_habitacion_noha.yaml
Normal file
12
packages/sensor/movimiento/movimiento_habitacion_noha.yaml
Normal 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
|
||||
@@ -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"
|
||||
12
packages/sensor/movimiento/movimiento_pasillo_entrada.yaml
Normal file
12
packages/sensor/movimiento/movimiento_pasillo_entrada.yaml
Normal 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
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user