TLDR: I need to have a newer version of Mosquitto (Above 1.5.x) in Hassio to be able to use a specific config option not found in the current version of Mosquitto.
Hello,
I have a problem with setting the option to enable TCP_NODELAY on HassiIO (Version 0.84.1
on my Raspberry Pi B+).
My goal is to speed up the outgoing MQTT Messages to control my devices (which is rather slow right now on my old pi, even though the cpu and ram usage stay below 70%)
Here are my related configuration files:
core_mosquitto Config:
{
"logins": [
{
"username": "********",
"password": "********"
}
],
"anonymous": true,
"customize": {
"active": true,
"folder": "mosquitto"
},
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
}
/share/mosquitto/mosquitto.conf:
set_tcp_nodelay true
This is the error I get when I start mosquitto (in the addon manager):
[INFO] Setup mosquitto configuration
[WARN] SSL not enabled - No valid certs found!
[INFO] Found local users inside config
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
Error: Unknown configuration variable "set_tcp_nodelay".
Error found at /share/mosquitto/mosquitto.conf:1.
Error found at /etc/mosquitto.conf:27.
Error: Unable to open configuration file.
I tried a couple different options in mosquitto.conf, like TCP_NODELAY true
and tcp_nodelay true
with no success.
After some looking around i came to the conclusion that this option is only available in newer versions of the plugin, which it’s currently at version 1.4.15 (build date 2018-03-04 15:35:59+0000)
Here’s what i get when trying to update via SSH
core-ssh:~# hassio ad update --name core_mosquitto
ERROR
No update available!
I’ve been looking around for ways to do this, with no success.
BTW: I would prefer to use Hassio over hassbian because this is easier to manage for me
Any suggestions?
—STcraft