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