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

@@ -0,0 +1,11 @@
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'}}
{% endif %}
device_class: opening
state_topic: "sonoffbridge/tele/RESULT"

View File

@@ -0,0 +1,11 @@
binary_sensor:
- platform: mqtt
name: "Puerta Tendedero"
value_template: >-
{% if value_json.RfReceived.Data == '0D7F0A' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == '0D7F0E' %}
{{'OFF'}}
{% endif %}
device_class: opening
state_topic: "sonoffbridge/tele/RESULT"