Añadido doble sensor de 433Mhz
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Baño General"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_bano_general:
|
||||
friendly_name: "Movimiento Baño General"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_bano_general_primario
|
||||
- binary_sensor.movimiento_bano_general_secundario
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == 'FAD6AC' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'FAD6A0' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_bano_general') | upper}}
|
||||
{% endif %}
|
||||
{{ is_state('binary_sensor.movimiento_bano_general_primario','on') or is_state('binary_sensor.movimiento_bano_general_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
12
packages/binary_sensor/movimiento_bano_general_primario.yaml
Normal file
12
packages/binary_sensor/movimiento_bano_general_primario.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
12
packages/binary_sensor/movimiento_bano_principal.yaml
Normal file
12
packages/binary_sensor/movimiento_bano_principal.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_bano_principal:
|
||||
friendly_name: "Movimiento Baño Principal"
|
||||
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
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Cocina"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_cocina:
|
||||
friendly_name: "Movimiento Cocina"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_cocina_primario
|
||||
- binary_sensor.movimiento_cocina_secundario
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '8B6E9C' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '8B6E90' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_cocina') | upper}}
|
||||
{% endif %}
|
||||
{{ is_state('binary_sensor.movimiento_cocina_primario','on') or is_state('binary_sensor.movimiento_cocina_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
12
packages/binary_sensor/movimiento_cocina_primario.yaml
Normal file
12
packages/binary_sensor/movimiento_cocina_primario.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,12 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Habitación Estudio"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_habitacion_estudio:
|
||||
friendly_name: "Movimiento Habitación Estudio"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_habitacion_estudio_primario
|
||||
- binary_sensor.movimiento_habitacion_estudio_secundario
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '2A00BC' %}
|
||||
{{'ON'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.movimiento_habitacion_estudio') | upper}}
|
||||
{% endif %}
|
||||
{{ is_state('binary_sensor.movimiento_habitacion_estudio_primario','on') or is_state('binary_sensor.movimiento_habitacion_estudio_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 5
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Habitación Mia"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_habitacion_mia:
|
||||
friendly_name: "Movimiento Habitación Mia"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_habitacion_mia_primario
|
||||
- binary_sensor.movimiento_habitacion_mia_secundario
|
||||
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 %}
|
||||
{{ is_state('binary_sensor.movimiento_habitacion_mia_primario','on') or is_state('binary_sensor.movimiento_habitacion_mia_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Habitación Noha"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_habitacion_noha:
|
||||
friendly_name: "Movimiento Habitación Noha"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_habitacion_noha_primario
|
||||
- binary_sensor.movimiento_habitacion_noha_secundario
|
||||
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 %}
|
||||
{{ is_state('binary_sensor.movimiento_habitacion_noha_primario','on') or is_state('binary_sensor.movimiento_habitacion_noha_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Habitación Principal"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_habitacion_principal:
|
||||
friendly_name: "Movimiento Habitación Principal"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_habitacion_principal_primario
|
||||
- binary_sensor.movimiento_habitacion_principal_secundario
|
||||
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 %}
|
||||
{{ is_state('binary_sensor.movimiento_habitacion_principal_primario','on') or is_state('binary_sensor.movimiento_habitacion_principal_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Pasillo Entrada"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_pasillo_entrada:
|
||||
friendly_name: "Movimiento Pasillo Entrada"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_pasillo_entrada_primario
|
||||
- binary_sensor.movimiento_pasillo_entrada_secundario
|
||||
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 %}
|
||||
{{ is_state('binary_sensor.movimiento_pasillo_entrada_primario','on') or is_state('binary_sensor.movimiento_pasillo_entrada_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Movimiento Pasillo Habitaciones"
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_pasillo_habitaciones:
|
||||
friendly_name: "Movimiento Pasillo Habitaciones"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_pasillo_habitaciones_primario
|
||||
- binary_sensor.movimiento_pasillo_habitaciones_secundario
|
||||
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 %}
|
||||
{{ is_state('binary_sensor.movimiento_pasillo_habitaciones_primario','on') or is_state('binary_sensor.movimiento_pasillo_habitaciones_secundario','on') }}
|
||||
device_class: motion
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 10
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Puerta Entrada" #Puerta de Entrada
|
||||
- platform: template
|
||||
sensors:
|
||||
puerta_entrada:
|
||||
friendly_name: "Puerta Entrada"
|
||||
entity_id:
|
||||
- binary_sensor.puerta_entrada_primario
|
||||
- binary_sensor.puerta_entrada_secundario
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == 'A2670A' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'A2670E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_entrada') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 300
|
||||
{{ is_state('binary_sensor.puerta_entrada_primario','on') or is_state('binary_sensor.puerta_entrada_secundario','on') }}
|
||||
device_class: door
|
||||
|
||||
|
||||
14
packages/binary_sensor/puerta_entrada_primario.yaml
Normal file
14
packages/binary_sensor/puerta_entrada_primario.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Puerta Entrada Primario"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == 'A2670A' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == 'A2670E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_entrada_primario') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 300
|
||||
@@ -1,14 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Puerta Tendedero"
|
||||
- platform: template
|
||||
sensors:
|
||||
puerta_tendedero:
|
||||
friendly_name: "Puerta Tendedero"
|
||||
entity_id:
|
||||
- binary_sensor.puerta_tendedero_primario
|
||||
- binary_sensor.puerta_tendedero_secundario
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '0D7F0A' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '0D7F0E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_tendedero') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 300
|
||||
{{ is_state('binary_sensor.puerta_tendedero_primario','on') or is_state('binary_sensor.puerta_tendedero_secundario','on') }}
|
||||
device_class: door
|
||||
|
||||
|
||||
14
packages/binary_sensor/puerta_tendedero_primario.yaml
Normal file
14
packages/binary_sensor/puerta_tendedero_primario.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Puerta Tendedero Primario"
|
||||
value_template: >-
|
||||
{% if value_json.RfReceived.Data == '0D7F0A' %}
|
||||
{{'ON'}}
|
||||
{% elif value_json.RfReceived.Data == '0D7F0E' %}
|
||||
{{'OFF'}}
|
||||
{% else %}
|
||||
{{states('binary_sensor.puerta_tendedero_primario') | upper}}
|
||||
{% endif %}
|
||||
device_class: opening
|
||||
state_topic: "sonoffbridge/tele/RESULT"
|
||||
off_delay: 300
|
||||
Reference in New Issue
Block a user