Añadido doble sensor de 433Mhz
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
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
|
||||
- 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: >-
|
||||
{{ is_state('binary_sensor.movimiento_pasillo_habitaciones_primario','on') or is_state('binary_sensor.movimiento_pasillo_habitaciones_secundario','on') }}
|
||||
device_class: motion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user