Hello,
As mentioned here https://community.gladysassistant.com/t/mqtt-comment-fonctionne-le-module-mqtt/5000/47
I am opening a topic to discuss the implementation of the MQTT API of Gladys.
I think we should focus here on discussing only the interface we want to offer to users/devices rather than modules or compatibility. This should make it clearer.
For reference, the current implementation is documented here: A privacy-first, open-source home assistant | Gladys Assistant
I will try to reference the ideas/questions/choices made through this discussion below so that a newcomer can have an idea of the things mentioned without having to go through all the messages ![]()
Why define an API?
An API allows defining communication rules between Gladys and third-party clients.
It allows defining a set of possible actions through the MQTT protocol, as well as how the data should be formatted.
What do we want?
- Allow most interactions between Gladys and any type of device that could be connected to it:
- Change the state of an object with a message sent from Gladys
- Report the state of an object to Gladys from an object
- Be as agnostic of brands/models as possible
- Allow communication between Objects / PODS / Main Instance
- Respect « IoT standards » (if they exist
)
Validated Ideas
Empty for now
Refuted Ideas
Empty for now
Disclaimer: I obviously do not have the authority to define all of this, so the ideas mentioned in the Why define an API? and What do we want? are bound to be modified. We had to start somewhere ![]()


