Script? to turn off mqtt water leak 1 code

Here is my water leak detection in binary sensor:

  • platform: mqtt
    name: “Basement Leak”
    state_topic: “tele/RF_Bridge/RESULT”
    value_template: ‘{{value_json.RfReceived.Data}}’
    payload_on: “123456”
    device_class: moisture
    #off_delay: xx {comment out for manual reset}

here is my script to reset water leak but it didn’t work

sequence:

  • service: mqtt.publish
    data:
    entity_id: binary_sensor.basement_leak
    topic: tele/RF_Bridge/RESULT
    payload_off: “123456off”