FIX loging binary_sensor
This commit is contained in:
14
packages/binary_sensor/movimiento_cocina.yaml
Normal file
14
packages/binary_sensor/movimiento_cocina.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Cocina"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '8B6E9C' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '8B6E90' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_cocina') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
12
packages/binary_sensor/movimiento_habitacion_estudio.yaml
Normal file
12
packages/binary_sensor/movimiento_habitacion_estudio.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Habitación Estudio"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '2A00BC' %}
|
||||
{{'ON'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_estudio') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 5
|
||||
14
packages/binary_sensor/movimiento_habitacion_mia.yaml
Normal file
14
packages/binary_sensor/movimiento_habitacion_mia.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
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'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_mia') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
14
packages/binary_sensor/movimiento_habitacion_noha.yaml
Normal file
14
packages/binary_sensor/movimiento_habitacion_noha.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
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'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_noha') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
14
packages/binary_sensor/movimiento_habitacion_principal.yaml
Normal file
14
packages/binary_sensor/movimiento_habitacion_principal.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Habitación Principal"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == 'FDE2BC' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'FDE2B0' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_principal') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
14
packages/binary_sensor/movimiento_pasillo_entrada.yaml
Normal file
14
packages/binary_sensor/movimiento_pasillo_entrada.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Pasillo Entrada"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '4A3E9C' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '4A3E90' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_pasillo_entrada') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
14
packages/binary_sensor/movimiento_pasillo_habitaciones.yaml
Normal file
14
packages/binary_sensor/movimiento_pasillo_habitaciones.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Pasillo Habitaciones"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '5D559C' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '5D5590' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_pasillo_habitaciones') | upper}}
|
||||
{% endif %}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'A2670E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_entrada') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
|
||||
@@ -6,6 +6,8 @@ binary_sensor:
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '0D7F0E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_tendedero') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
|
||||
Reference in New Issue
Block a user