Rules: Trigger for MQTT Traffic #22375
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Short answer: None such. You can to some extent use wildcard triggers with And no real way of triggering on commands arriving the MQTT subscription, but the command responses would result in MQTT messages. |
Beta Was this translation helpful? Give feedback.
Short answer: None such.
You can to some extent use wildcard triggers with
?
but lots of JSON processed for rules does not result in MQTT messages. You can to some extent filter with the prefixtele-
, but many published MQTT messages are not telemetry. And a rule picking up something would almost by necessity trigger new MQTT messages, unless you suppress that by prefixing it with?
. To some extent, you can have additional triggers filtering for "known cases", like power state switching, etc.And no real way of triggering on commands arriving the MQTT subscription, but the command responses would result in MQTT messages.