Hey everyone, I’ve been diving into the world of custom sensors lately and thought I’d share my journey and some questions I have. I recently worked on creating a custom sensor component to pull radiation data from a specific website, and while the process was quite enjoyable, it got me thinking about alternative approaches.
I stumbled upon the idea of using MQTT as a potential alternative. The concept is intriguing—instead of building a custom component, I could write a Python script that periodically fetches the data and publishes it via MQTT. Then, using an MQTT sensor, I could easily integrate this data into my home automation setup. But I’m curious about the pros and cons of this approach.
On one hand, MQTT seems like it could simplify things by leveraging existing infrastructure and reducing the need for custom coding. It might also offer better scalability and integration with other devices. On the other hand, I wonder if there are any limitations or potential pitfalls I should be aware of. For instance, how does MQTT handle data reliability, and is it as straightforward as it seems for real-time updates?
I’d love to hear from those who have experience with both methods. What have you found to be more efficient or user-friendly? Any tips or best practices would be greatly appreciated! Let’s keep the conversation flowing and help each other optimize our smart home setups. ![]()