Integrating Mobile Alerts Weather Station into Home Assistant

Hello fellow Home Assistant enthusiasts! I wanted to share my recent journey of integrating the Mobile Alerts Weather Station into my smart home setup. It’s been a fascinating project, and I hope my experience can help others who might be tackling something similar.

First, I’ll start by explaining my setup. I have an indoor and outdoor sensor connected to a gateway provided by Mobile Alerts. The gateway is supposed to send data to their cloud service, but I wanted to bypass that and get the data directly into Home Assistant. After some research, I stumbled upon a fantastic GitHub repository that reverse-engineered the protocols used by Mobile Alerts devices. The repo included a Node.js gateway that acts as a proxy, forwarding sensor data via MQTT instead of sending it to the manufacturer’s cloud.

Setting up the Node.js gateway was straightforward on my Windows machine. It reads the sensor data and broadcasts it as JSON via MQTT. I then installed Mosquitto Broker and the MQTT integration in Home Assistant. Configuring the sensors was a breeze, and now I have real-time temperature and humidity readings from both my indoor and outdoor sensors.

However, my goal was to containerize this Node.js app as a Hass.io add-on. I’ve been trying to create a Docker container for it, but I’m hitting some roadblocks. I’m not entirely sure how to properly expose the necessary ports or configure the MQTT broker within the container. If anyone has experience with Dockerizing Node.js applications or creating Hass.io add-ons, I’d greatly appreciate any guidance or tips!

On a positive note, having this weather data integrated into Home Assistant has been incredibly useful. I can now create automations based on temperature and humidity thresholds, which adds a whole new layer of functionality to my smart home setup. It’s also satisfying to know that I’m not relying on the manufacturer’s cloud service for my data.

I’d love to hear from others who have successfully integrated similar devices or created custom add-ons. Any advice, suggestions, or shared experiences would be invaluable! Thanks in advance for your help and insights.