binary_sensor: - platform: mqtt name: "Movimiento Habitación Principal" value_template: >- {% if value_json.RfReceived.Data == 'FDE2BC' %} {{'ON'}} {% elif value_json.RfReceived.Data == 'FDE2B0' %} {{'OFF'}} {% endif %} device_class: motion state_topic: "sonoffbridge/tele/RESULT" off_delay: 10