If you configured a MQTT Broker with your Gladys installation, you have access to Gladys MQTT API.
Here are all the MQTT topics available, with examples of message to send:
Push a new device state
Image you have a temperature sensor sending data to Gladys, you'll have to send his temperature values to:
Push state to a device
Imagine you are a MQTT lights, and you want to be controlled in Gladys.
You need to subscribe to this topic:
Where you will receive values like:
Meaning "You need to be turned on".
Meaning "You need to be turned off".