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,10 +1,12 @@
binary_sensor:
- platform: mqtt
name: "Movimiento Habitación Principal"
payload_on: "FDE2BC"
payload_off: "FDE2BCoff"
value_template: >-
{% if value_json.RfReceived.Data == 'FDE2BC' %}
{{'ON'}}
{% else %}
{{states('binary_sensor.movimiento_habitacion_principal') | upper}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
value_template: "{{value_json.RfReceived.Data}}"
off_delay: 8
off_delay: 10