Anyone here using Meshtastic node to send environmental sensor data to Home Assistant using MQTT? I could use some help.

My connection works but data is only sent to HA on request (from Meshtastic app). Sensor data interval is set to 30 min but HA or MQTT Broker gets nothing without request.

Hardware: XIAO ESP32S3 + Wio-SX1262 + BME280.

Setup: Node1 -> Node2 -> MQTT -> HA

#Meshtastic #LoRa #HomeAssistant

@ssalo76 I usw the meshtastic Integration with API to monitor my GW and some specific nodes (trackers). Dient noticed any update problems yet
GitHub - meshtastic/home-assistant: Home Assistant Integration for Meshtastic

Home Assistant Integration for Meshtastic. Contribute to meshtastic/home-assistant development by creating an account on GitHub.

GitHub

@blub @ssalo76

Using your own MQTT broker with some fancy bridge rules can also "solve" that problem, I think

@selea @blub I had that but it didn't see my node's environment sensor (BME280).

@ssalo76

Does it report that kind of telemetry at all?

@blub

@selea @blub Meshtastic app saw it, that integration didn't. But I got this working now. Temp, humidity and air pressure is sent to HA from that node via MQTT.

@ssalo76 my situation is a bit different, but does the node uptime in the app match what you expect? If there's a power issue or something else causing a reboot, and if there isn't GPS, battery-backed rtc, or network-provided NTP, your node might not be reaching 30 minutes from epoch in uptime.

Sorry, just a thought from what I've seen, best of luck with it.

@mose I got it working now.

When I did those requests as tests they used PKI as channel so I used that channel in HA sensors' configs as well but it didn't work in normal telemetry broadcast. I then changed channel to my own channel and also set node's Device Role to Sensor.