kvj / hass_Mtastic_MQTT

Meshtastic Nodes via MQTT for Home Assistant
MIT License
32 stars 4 forks source link

Diagnostic sensor values not populating #3

Open metrafonic opened 7 months ago

metrafonic commented 7 months ago

Hello!

Great work on creating this addon for HomeAssistant!

I have this working on my setup, however, only the Position and "Last Update" fields are being populated. I can see the battery level and position coordinates under the "Position" entity as attributes.

I am running version 2.3.4 of meshtastic, with version 2.0.0 of this repository. Are there additional configuration items that must be set?

Screenshot 2024-04-16 at 18 23 43
CamFlyerCH commented 6 months ago

I have the same issue. I use msh/CH/2/e/LongFast/!da567f60 and msh/CH/2/stat/!da56577c

since I forward it like that:

topic msh/CH/2/# in 0 "" ""

In the Swiss topic is not much trafic and I already setup some MQTT JSON sensors. I enabled some Diagnostic sensors too, but all of them and the position stay "Unknown". The Online-State is correct also switching between disconnected and connected during a reboot of my Heltec V3. Also: How I can ingest the values of other Mestastic nodes (distant solar router or my mobile device) recieved by my home device connected via MQTT. From the JSON messages I do this by filtering of the decimal ID (example from == 986044268).

Thanks

CamFlyerCH commented 6 months ago

Sorry, user error , I receive my data now, had a typo in the config. My tipp: Use https://mqtt-explorer.com/ and copy paste the topic !