I’ve been thinking about this for a bit now. There are two options. One is for MotionEye to call a webhook. That’s pretty easy to DIY (e.g., motion eye -> node red -> HA). However, it doesn’t seem as simple to build into a component (need to create HA API endpoint?)
The other is to watch the recording directory. You can actually do this easily in Home Assistant with the “folder” sensor. Any changes to that folder essentially constitute motion detection.
I’ve implemented a prototype of a sensor that does something like that. I call it a Recorder, and it stitches together multiple images into an animated gif. It’s specifically meant to work with MotionEye. When it sees images coming in (MotionEye is capturing 1sec still images), it is in the active/recording state. When the recording completes, the animated gif is saved into a destination folder.
I’m thinking of baking this into the MotionEye component itself, because it’s somewhat tied to a MotionEye camera (file format, etc).
Would this work for you?