Reestructura aperturas de puertas

Cambio de raiz de packages a binary_sensor las aperturas
This commit is contained in:
dfcarvajal
2019-06-19 06:33:02 +00:00
parent 89093924e3
commit 333eefb3d8
2 changed files with 4 additions and 6 deletions

View File

@@ -4,9 +4,8 @@ binary_sensor:
value_template: >- value_template: >-
{% if value_json.RfReceived.Data == 'A2670A' %} {% if value_json.RfReceived.Data == 'A2670A' %}
{{'ON'}} {{'ON'}}
{% else %} {% elif value_json.RfReceived.Data == 'A2670E' %}
{{states('binary_sensor.puerta_entrada') | upper}} {{'OFF'}}
{% endif %} {% endif %}
device_class: opening device_class: opening
state_topic: "sonoffbridge/tele/RESULT" state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10

View File

@@ -4,9 +4,8 @@ binary_sensor:
value_template: >- value_template: >-
{% if value_json.RfReceived.Data == '0D7F0A' %} {% if value_json.RfReceived.Data == '0D7F0A' %}
{{'ON'}} {{'ON'}}
{% else %} {% elif value_json.RfReceived.Data == '0D7F0E' %}
{{states('binary_sensor.puerta_tendedero') | upper}} {{'OFF'}}
{% endif %} {% endif %}
device_class: opening device_class: opening
state_topic: "sonoffbridge/tele/RESULT" state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10