# Connect Frigate to Gladys Assistant

**URL:** <https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124>\
**Category:** Configuration\
**Created:** [April 26, 2023, 6:16pm UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124 "2023-04-26T18:16:34Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [April 26, 2023, 6:16pm UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/1 "2023-04-26T18:16:34Z")

</div>

@guim31 and those who use Frigate, have you been able to interconnect to Gladys via MQTT?

I’d like to have an alert in case of motion and it’s possible in Frigate’s configuration, but the MQTT topic configured in Gladys doesn’t seem to match what’s being sent. So Gladys doesn’t see anything.

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [April 26, 2023, 6:23pm UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/2 "2023-04-26T18:23:04Z")

</div>

Go through Node-RED otherwise 🙂

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [April 27, 2023, 1:24pm UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/3 "2023-04-27T13:24:52Z")

</div>

I also use Node-RED.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 28, 2023, 4:11am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/4 "2023-04-28T04:11:28Z")

</div>

@lmilcent I’ve split these discussions into a new thread so as not to interfere with the camera live alpha 🙂

How does this MQTT alert for motion on Frigate work? If there’s a way to integrate it into the MQTT integration, it would allow doing it without Node-RED — that could be cool!

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [April 28, 2023, 8:15am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/5 "2023-04-28T08:15:02Z")

</div>

Yes, exactly. Frigate can send an MQTT message on a predefined topic (and not changeable as far as I know).  
However, when I configure an MQTT device in Gladys it gives me a different topic specific to Gladys. I don’t think I can tell Gladys which topic to use.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 28, 2023, 8:39am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/6 "2023-04-28T08:39:20Z")

</div>

What is the topic and what is the message format?

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [April 28, 2023, 8:58am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/7 "2023-04-28T08:58:22Z")

</div>

### `frigate/<camera_name>/motion`

Whether camera\_name is currently detecting motion. Expected values are `ON` and `OFF`. NOTE: After motion is initially detected, `ON` will be set until no motion has been detected for `mqtt_off_delay`seconds (30 by default).

> **[MQTT | Frigate](https://docs.frigate.video/integrations/mqtt/#frigatecamera_namemotion)**
>
> These are the MQTT messages generated by Frigate. The default topic\_prefix is frigate, but can be changed in the config file.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 28, 2023, 9:23am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/8 "2023-04-28T09:23:20Z")

</div>

Ok that’s very clear 🙂

Indeed, in the short term Node-RED is the best option.

In the long term, two options (which are not mutually exclusive):

- Create a Frigate integration in Gladys. You’ll need to listen to the Frigate topics on MQTT and then publish the right events to Gladys / manage scene triggers.
- Offer a scene trigger «&nbsp;When an MQTT message arrives&nbsp;» that allows listening on a custom topic and reacting to that message.

Edit: Well, after looking at the Frigate product, I realize that it remains a very, very developer/geek product; I don’t know if a native integration into Gladys makes sense because it’s not self-service

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [April 28, 2023, 3:13pm UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/9 "2023-04-28T15:13:10Z")

</div>

Hi @pierre-gilles  
Would it be possible to offer an editable list in Gladys to map «&nbsp;external MQTT topic&nbsp;» to «&nbsp;Gladys MQTT topic&nbsp;» and vice versa? It would be simpler and more universal, right?  
That way Gladys would subscribe to the external MQTT topic and publish to a Gladys-formatted topic, and then Gladys would interpret it as intended

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [April 29, 2023, 9:23am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/10 "2023-04-29T09:23:24Z")

</div>

> [@pierre-gilles](#):
>
> Suggest a scene trigger «&nbsp;When an MQTT message arrives&nbsp;» that allows listening on a custom topic and reacting to that message.

This is clearly the solution for MQTT integrations. It makes it possible to do without dedicated services for more or less geeky setups.

Frigate is really great but it’s a shame that you have to do the configuration directly in text files. That makes the product less accessible to the general public.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [April 29, 2023, 9:27am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/11 "2023-04-29T09:27:54Z")

</div>

> [@Nouveau déclencheur : arrivée d’un message MQTT](https://community.gladysassistant.com/t/nouveau-declencheur-arrivee-d-un-message-mqtt/8127?u=lmilcent):
>
> Feature description Suite à notre discussion ici Une scène doit pouvoir être déclenchée quand un message MQTT arrive sur un topic particulier.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 29, 2023, 9:56am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/12 "2023-04-29T09:56:16Z")

</div>

> [@cce66](#):
>
> Wouldn’t it be possible to provide an editable list in Gladys to transform « external MQTT topic » to « Gladys MQTT topic » and vice versa? That would be simpler and more universal, no?

I prefer the scene 🙂

Because the topic is one thing, and the message content is another. MQTT is like HTTP, it’s just a protocol, but inside each client puts what it wants.

The advantage of creating a scene is being able to react to a particular topic AND message, even to use the message content in the rest of the scene via a variable.

@lmilcent Thanks for the request!

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [April 29, 2023, 10:03am UTC](https://community.gladysassistant.com/t/connecter-frigate-avec-gladys-assistant/8124/13 "2023-04-29T10:03:40Z")

</div>

Let’s say this lets you distinguish the system configuration part from the home-automation scenarios part  
We configure once the adaptation of external Gladys messages \<=\> external Gladys, and the scenarios won’t
