Reestructura aperturas de puertas
Cambio de raiz de packages a binary_sensor las aperturas
This commit is contained in:
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user