SK
Signal K4mo ago
Bram

Sending signalk data to home assistant

Hi, i would like to send signalk data to home assistant. Home assistant is running the mosquitto broker. I have a wireguard vpn between signalk-server and ha over a 4G connection. Because the 4G connection can be unreliable i was thinking of setting up Mosquitto on the signalk-server machine in the boat with persistence on. Is this also the object of the signalk-mqtt-gw plugin? I see it can run a local Mosquitto broker. Will it automatically persist non-delivered messages? Thx
2 Replies
Bram
BramOP4mo ago
Thx. I already have all the data in signalk format. And i've experimented with two approaches so far: i've set up a local mosquitto and let that send to the ha mosquitto broker (with the signalk-mqtt-gw plugin), than define entities in HA. That works, but my Pi burns down after some time. Its a pi 3b with 1GB, memory is full and the swap file is also filled to the point that the device becomes unusable. I haven't even enabled persistence on the local broker. So i'm not sure i want to investigate that. Probably easier to buy a beefier pi (good reason to move to HALPI2 later this year). The other scenario i am looking in is logging data in a local Influxdb, downsampling all that locally data once a minute to a smaller subset, and than use standard replication mechanism to replicate it with influx/HA. So far i've stored the data locally in Influx, that works fine, haven't tried downsampling yet because it seems to be done per measurement and that just a bit too much work now. Replication also not tried but from what i read that will work very well, also with intermittent connections. That said: influxdb should even be a larger memory hog. I don't experience that so far. But i've decided to stop that for now and investigate that further. I just leave it running collecting my data. And maybe with signalk-mqtt-gw plugin i will send some measurement to remove without a local broker). Will leave all that for when i have a more capable configuration.

Did you find this page helpful?