Here is the flow of data:
- End Device (dragino temp sensor)
- RAK LoRaWAN gateway
- RAK MQTT packet forwarder
- HA MQTT broker
- Node-RED MQTT topic listener
- Nore-RED fPort filter
- Node-RED function to decode payload
- Node-RED sensor entity
- HA dashboard
All these elements need to be installed into Home Assistant.
The RAK gateway forwards nicely to Home Assistant. It’s a WISgate RAK7268V2
I started with a Milesight gateway and could not get it to forward vie MQTT to Home Assistant.
Here are the videos explaining how:
How to add a LoRaWAN end device to Home Assistant – Part 1
Part 2 – add the end device to the RAK
Part 3 – send a packet form the end device
Part 4 – listening to the MQTT message
Part 5 – setting the the decoder payload
Part 6 – creating a sensor entity (note this one has an error that is resolved in the next video!)
Part 7 Adding your device to the dashboard
Here’s the first one: