binary_sensor: - platform: mqtt name: "Movimiento Pasillo Entrada Primario" value_template: >- {% if value_json.RfReceived.Data == '4A3E9C' %} {{'ON'}} {% else %} {{'OFF'}} {% endif %} device_class: motion state_topic: "sonoffbridge/tele/RESULT" off_delay: 10