![]() |
|
signalk mqtt gt value null - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=2) +--- Thread: signalk mqtt gt value null (/showthread.php?tid=4532) |
signalk mqtt gt value null - k92488 - 2023-03-17 Hi, First of all, thanks for a superb software. Just loving it 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 ? RE: signalk mqtt gt value null - k92488 - 2023-03-27 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
RE: signalk mqtt gt value null - tkurki - 2023-03-27 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). |