Files
homeassistant/packages/movimiento_pasillo_habitaciones.yaml
2019-04-17 19:21:19 +00:00

13 lines
370 B
YAML

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