Skip to content

Comment on Ukranian controls Home Assistant over LoRa radio when their power grid goes down

Comments

Hey! I have a similar setup. Mostly done as a thought experiment, luckily I don't have to deal with a war.

Instead of using the Python interface directly, I used MQTT as the gateway.

I disliked all the existing MQTT servers (who writes network-facing software in C++!?!?), so I adapted the Mochi server a bit to add support for automatic Let's Encrypt certs: https://github.com/Cyberax/lenc-mochi

One problem is that LoRa is low-bandwidth, so I had to pick and choose what I transmit. I ended up defining a schema that bit-packs all the important (for me) sensor state in just 32 bytes.

As another thought experiment, I'm going to connect it to a pair of InReach satellite transceivers over Bluetooth :)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.