This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
signalk mqtt gt value null
#1
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  ?
Reply
#2
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
Reply
#3
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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)