Añadido doble sensor de 433Mhz

This commit is contained in:
dfcarvajal
2019-12-09 12:33:05 +00:00
parent 3334b67cc6
commit 4be05b641a
21 changed files with 246 additions and 128 deletions

View File

@@ -1,14 +1,12 @@
binary_sensor:
- platform: mqtt
name: "Puerta Entrada" #Puerta de Entrada
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
- platform: template
sensors:
puerta_entrada:
friendly_name: "Puerta Entrada"
entity_id:
- binary_sensor.puerta_entrada_primario
- binary_sensor.puerta_entrada_secundario
value_template: >-
{{ is_state('binary_sensor.puerta_entrada_primario','on') or is_state('binary_sensor.puerta_entrada_secundario','on') }}
device_class: door