MQTT
When using the MQTT firmware, various topics are published to your broker. Here's how the topic structure and controls work.
Topic Structure
Each entity publishes its state to a topic in the following format:
<TOPIC_PREFIX>/<COMPONENT_TYPE>/<COMPONENT_NAME>/stateYou can control certain entities by publishing a command to this topic format:
<TOPIC_PREFIX>/<COMPONENT_TYPE>/<COMPONENT_NAME>/commandON or OFF or whatever is supportedExample
To enable or disable the Ring-To-Open automation, send ON or OFF as the payload to the topic:
doorman-s3/switch/ring_to_open/commandONSpecial Topics
Certain special topics allow for advanced commands.
Send a Command (Hexadecimal)
Here's an example of how to send a hexadecimal command (uint32) to the bus:
doorman-s3/send_raw_commandjson
{
"command": 0x1C30BA80
}json
{
"command": 0x1C30BA80,
"is_long": false
}Send a Command (Command Builder)
Here's an example of how to use the command builder to send a command to the bus:
doorman-s3/send_commandjson
{
"type": "open_door",
"address": 0,
"payload": 0,
"serial_number": 123456
}