Ok so i have a network mjpeg.cgi camera im using on motioneyeos. I currently have them added with my configuration.yaml as shown:
camera 3:
- platform: mjpeg
name: Upstairs
mjpeg_url: http://myip:8081
username: test
password: test
camera 4:
- platform: mjpeg
name: Downstairs
mjpeg_url: http://myip:8082
username: test
password:test
The cameras shows a clip when there is motion, on the home assistant dashboard, then goes back to idle when no motion. I would like to create an automation when it goes from idle to motion detected, how would i go about doing that?