Cambios en los movimientos
This commit is contained in:
@@ -4,9 +4,9 @@ binary_sensor:
|
||||
movimiento_bano_general:
|
||||
friendly_name: "Movimiento Baño General"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_bano_general_primario
|
||||
- binary_sensor.movimiento_bano_general_secundario
|
||||
- binary_sensor.movimiento_bano_general_433
|
||||
- binary_sensor.movimiento_bano_general_zwave
|
||||
value_template: >-
|
||||
{{ is_state('binary_sensor.movimiento_bano_general_primario','on') or is_state('binary_sensor.movimiento_bano_general_secundario','on') }}
|
||||
{{ is_state('binary_sensor.movimiento_bano_general_433','on') or is_state('binary_sensor.movimiento_bano_general_zwave','on') }}
|
||||
device_class: motion
|
||||
|
||||
|
||||
12
packages/binary_sensor/movimiento_bano_general_433.yaml
Normal file
12
packages/binary_sensor/movimiento_bano_general_433.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_bano_general_433:
|
||||
friendly_name: "Movimiento Baño General 433"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_bano_general_primario
|
||||
- binary_sensor.movimiento_bano_general_secundario
|
||||
value_template: >-
|
||||
{{ is_state('binary_sensor.movimiento_bano_general_primario','on') or is_state('binary_sensor.movimiento_bano_general_secundario','on') }}
|
||||
device_class: motion
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
@@ -4,9 +4,9 @@ binary_sensor:
|
||||
movimiento_bano_principal:
|
||||
friendly_name: "Movimiento Baño Principal"
|
||||
entity_id:
|
||||
- binary_sensor.movimiento_bano_principal_primario
|
||||
- binary_sensor.movimiento_bano_principal_secundario
|
||||
- binary_sensor.movimiento_bano_principal_433
|
||||
- binary_sensor.movimiento_bano_principal_zwave
|
||||
value_template: >-
|
||||
{{ is_state('binary_sensor.movimiento_bano_principal_primario','on') or is_state('binary_sensor.movimiento_bano_principal_secundario','on') }}
|
||||
{{ is_state('binary_sensor.movimiento_bano_principal_433','on') or is_state('binary_sensor.movimiento_bano_principal_zwave','on') }}
|
||||
device_class: motion
|
||||
|
||||
|
||||
12
packages/binary_sensor/movimiento_bano_principal_433.yaml
Normal file
12
packages/binary_sensor/movimiento_bano_principal_433.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
movimiento_bano_principal_433:
|
||||
friendly_name: "Movimiento Baño Principal 433"
|
||||
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,12 +0,0 @@
|
||||
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 +0,0 @@
|
||||
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,12 +0,0 @@
|
||||
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,12 +0,0 @@
|
||||
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,12 +0,0 @@
|
||||
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,12 +0,0 @@
|
||||
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,12 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user