# Integration Mi Flora

**URL:** <https://community.gladysassistant.com/t/integration-mi-flora/6174>\
**Category:** Développement\
**Created:** [March 13, 2021, 2:20pm UTC](https://community.gladysassistant.com/t/integration-mi-flora/6174 "2021-03-13T14:20:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 15, 2021, 1:47am UTC](https://community.gladysassistant.com/t/integration-mi-flora/6174/4 "2021-03-15T01:47:04Z")

</div>

Oh, I misunderstood, actually your error comes from the script, not Gladys!

Are you sure you launched the script with the correct parameters? Can you describe exactly what you are doing?

> [@glasserre](#):
>
> I would like to see how to create a preconfiguration for Gladys, but what would be the topic parameters to set up?

To better understand MQTT in Gladys, I recommend reading this tutorial:

> **[MQTT | Gladys Assistant](https://gladysassistant.com/fr/docs/integrations/mqtt/)**
>
> Ce tutoriel a pour objectif de vous expliquer comment fonctionne le MQTT dans Gladys Assistant.

In short, in Gladys the MQTT API is very simple: each sensor has its MQTT topic and listens on that topic. As soon as a new value is sent to that topic, Gladys stores the value. Very simple 🙂

As you said, in the case of this script, this script was coded for Home Assistant, and therefore it does not follow the same topic/message format conventions as Gladys.

So you will need to modify the script to change the topics and the message format to publish 🙂

@AlexTrovato Small question, don’t we manage MiFlora in Gladys 4 with the Bluetooth service?

---

_[View the full topic](https://community.gladysassistant.com/t/integration-mi-flora/6174)._
