dcmartin / motion-ai

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

Multiple, remote, system integration #14

Open dcmartin opened 3 years ago

dcmartin commented 3 years ago

MAI should provide mechanism to integrate with a remote installation of MAI, i.e. a separate installation of MAI on a non-local network.

MAI currently publishes JSON payloads on MQTT topics of the events associated with annotations, detections, and the detection of specific entities (n.b. categories for person, vehicle, and animal are not (yet) published. This mechanism provides basic information to external consumers, e.g. another Home-Assistant system, but only when using a common MQTT broker.

The JSON payload does not contain any image, only the attributes of the image and the corresponding information from the AI predictions.

As Home-Assistant does not provide for mechanisms to send MQTT to alternative brokers, an additional agent must subscribe to appropriate topics (e.g. as above, but potentially others) and forward information.

One potential mechanism is the Kuiper project, a part of the EdgeX Foundry portfolio, that listens to MQTT and executes rules defined by SQL to generate JSON payloads to any specified MQTT broker.