That’s a good idea. How are you doing this?
I have made a bash script that looks like this:
#!/bin/bash
mosquitto_pub -h 192.168.1.xxx -u <username> -P <password> -t cameras/StudioCam/motion -m "ON"
sleep 10s
mosquitto_pub -h 192.168.1.xxx -u <username> -P <password> -t cameras/StudioCam/motion -m "OFF"
and called it in MotionEye with:
bash mqtt-motion.sh
I also tried simply:
mosquitto_pub -h 192.168.1.xxx -u <username> -P <password> -t cameras/StudioCam/motion -m "ON"; sleep 10s; mosquitto_pub -h 192.168.1.xxx -u <username> -P <password> -t cameras/StudioCam/motion -m "OFF"
in the Motion Notifications field, but neither of these things appear to change the state of the sensor when there’s motion, even though I can trigger the state manually by executing the exact same commands from the terminal.