OpenMarine

Full Version: signalk mqtt gt value null
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, First of all, thanks for a superb software. Just loving it Wink  


I have just setup a signalK - MQTT Gateway , and zigbee2mqtt
If I public something like this: mosquitto_pub -h localhost -p 1883 -m 292 -t 'vessels/self/environment/temperature/outside 
it show up correct in signalk

But the publishing from zigbee2mqtt, the it show up in signalK, but with value null
The payload looks like this for a temp/humid sensor:
{"level":"info","message":"MQTT publish: topic 'vessels/self/environment/engineroom', payload '{\"battery\":100,\"humidity\":32.59,\"linkquality\":159,\"temperature\":23.55,\"voltage\":3000}'"}
{"battery":100,"humidity":32.59,"linkquality":159,"temperature":23.55,"voltage":3000}

How do i configure this to show up correct in signalK  ?
I ended up with this solution,
1. I use a unique tag in zigbee2mqtt
2. Have a python program as a service reading the messages, split it, transforming and publish it on mqtt as single messages that signalk-mqtt-bridge plugin picks up

Happy camper.

Again so happy with Openplotter 3,
my setup is now, SDR VHF, AvNav, SeaTalk1 plugin, Grafana, InfluxDB, zigbee2mqtt, signalk-mqtt-gw, signalk-mqtt-bridge and a 4g router

Thank to everyone involved in the community making this great solutions Wink
Nice! You could do the same with Node-RED Signal K plugin
- read from mqtt
- output directly the SK data

This way you'd have one less component to manage (starting your Python process).