Hey everyone, I recently had an interesting experience with my MQTT Broker (EMQX) running as an add-on. It restarted on its own, and I wanted to set up a notification system to alert me if this happens again. While I haven’t tackled the external Docker container (telegraf) part yet, I thought I’d share my progress and maybe get some tips from the community.
I started by exploring the MQTT Broker logs and realized that monitoring its status could be crucial for maintaining my smart home setup. I came across some tutorials on using flows to detect state changes, which got me thinking about how to integrate this into my existing system.
Here’s what I’ve considered so far: creating a flow that triggers when the MQTT Broker status changes. If it goes down, I want to receive an immediate notification. I’ve also thought about setting up a secondary check to ensure it’s not a false alarm. The idea is to combine this with a simple automation that restarts the Broker if it detects an issue.
I’d love to hear if anyone has implemented something similar or has suggestions on the best way to approach this. Maybe there’s a more efficient method or a tool I haven’t discovered yet. Let’s collaborate and make our smart homes even smarter!
Cheers,
[Your Name]