FIX loging binary_sensor

This commit is contained in:
dfcarvajal
2019-07-06 11:05:16 +00:00
parent 93d063cae5
commit 350de3ab37
24 changed files with 136 additions and 63 deletions

View File

@@ -0,0 +1,14 @@
binary_sensor:
- platform: mqtt
name: "Movimiento Habitación Mia"
value_template: >-
{% if value_json.RfReceived.Data == 'CBD19C' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == 'CBD190' %}
{{'OFF'}}
{% else %}
{{states('binary_sensor.movimiento_habitacion_mia') | upper}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10