MotionEye config

Anyone has an idea how to solve this?

I have this as config in configuration.yaml

binary_sensor:
  - platform: mqtt
    name: "Motion"
    state_topic: "home/motiondetection/camera"
    payload_on: "ON"
    payload_off: "OFF"
    device_class: "motion"

I have this in motioneye under Run A Command:
mosquitto_pub -h 192.168.1.201 -u user -P password -t home/motiondetection/camera -m ‘{“state”:“ON”}’

But the binary sensor never changes status. Should the mqtt ip be the same as the HA IP or does it have an internal ip?
What could be wrong?

it is solved.

mosquitto_pub -h 192.168.1.201 -p 1883 -u user -P password -t home/motiondetection/camera -m ‘“ON”