dcmartin / motion-ai

AI assisted motion detection for Home Assistant
http://motion-ai.com/
Apache License 2.0
284 stars 29 forks source link

MQTT discovery of `motion-ai` #6

Open dcmartin opened 3 years ago

dcmartin commented 3 years ago

Add MQTT discovery capabilities for the topics generated by motion-ai.

AI service events

The AI services announce their service when launched as a retained message; service may be yolo4motion, alpr4motion, et. al. The id component is the machine identifier; will become the accessible address.

Add-on events

The Motion Classic add-on produces a retained message on launch of the following form:

Camera events

Events are produced by motion-ai based on output from the various AI's, for example yolo4motion annotations are processed and messages are produced on the following base topic:

Where event may be one of:

Component types supported by MQTT discovery in HA include the following:

Other components in HA may be applicable.