Fix start & Fix XEE & Fix Template MQTT

This commit is contained in:
dfcarvajal
2019-04-17 19:21:19 +00:00
parent 4d21cb7c10
commit 02cf86987e
17 changed files with 132 additions and 88 deletions

View File

@@ -1,8 +1,12 @@
binary_sensor:
- platform: mqtt
name: "Puerta Tendedero"
payload_on: "0D7F0A"
payload_off: "0D7F0E"
value_template: >-
{% if value_json.RfReceived.Data == '0D7F0A' %}
{{'ON'}}
{% else %}
{{states('binary_sensor.puerta_tendedero') | upper}}
{% endif %}
device_class: opening
state_topic: "sonoffbridge/tele/RESULT"
value_template: "{{value_json.RfReceived.Data}}"
off_delay: 10