i am running a ip-cam on motion/motioneye.
motion already sends a command to openhab, when a motion is detected to an openhab swich - and when the switch receives a command i get a notification on my mobile phone. so far everything works fine!
now i would like to activate / deaktivate the motion detection in motion. i got another switch in openhab for my home-status (switches when someone is a home or nobody is at home). i want to create a rule that sends a command to turn on motion detection when nobody is at home an turns it off when someone arrives home.
how do i have to create the rule now to send the commands to motion/motioneye and which command do i have to send?
I use the HTTP binding and the following item config. Works very well. The number after the port is the camera/thread id, so you can have an arming switch for each individual camera by changing that id.