Files
homeassistant/packages/binary_sensor/movimiento_pasillo_habitaciones.yaml
2019-07-06 11:05:16 +00:00

15 lines
444 B
YAML

binary_sensor:
- platform: mqtt
name: "Movimiento Pasillo Habitaciones"
value_template: >-
{% if value_json.RfReceived.Data == '5D559C' %}
{{'ON'}}
{% elif value_json.RfReceived.Data == '5D5590' %}
{{'OFF'}}
{% else %}
{{states('binary_sensor.movimiento_pasillo_habitaciones') | upper}}
{% endif %}
device_class: motion
state_topic: "sonoffbridge/tele/RESULT"
off_delay: 10