Skip to content

Commit

Permalink
Update MQTT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst authored Apr 1, 2024
1 parent 866638f commit 8617ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ You subscribe to an MQTT topic and assign an event name. Once the subscribed MQT
Command without any parameters will list all currently subscribed topics.

!!! tip "Domoticz Users"
As designed, `domoticz/out` (or any user defined DOMOTICZ_OUT_TOPIC) overrules the rule subscribe functionality. _This means that you can't subscribe to this topic, except if you had disabled the `USE_DOMOTICZ` flag when compiling your own firmware._
As designed, `domoticz/out` (or any user defined DOMOTICZ_OUT_TOPIC) overrules the rule subscribe functionality in a way that you're unable to subscribe to `domoticz/out/1234/#. _This means that you can't subscribe to this topic, unless you remove all Domoticz relay/idx relations with command ``DzIdx0 0`` or if you had disabled the `USE_DOMOTICZ` flag when compiling your own firmware._


You can set up a rule with `ON EVENT#<event_name> DO ... ENDON` to do what you want based on this MQTT message. The payload is passed as a parameter once the event has been triggered. If the payload is in JSON format, you are able to get the value of specified key as a parameter.
Expand Down

0 comments on commit 8617ec9

Please sign in to comment.