Skip to content

Rules: Trigger for MQTT Traffic #22375

Discussion options

You must be logged in to vote

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 prefix tele-, 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by christian-ffm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants