Closed YenLegion closed 3 weeks ago
Hey there, thanks for trying out Go Hass Agent!
I haven't yet exposed command-line options for configuring MQTT, but, you can just edit the configuration file directly and add the appropriate entries. The configuration file should be located at ~/.config/com.github.joshuar.go-hass-agent/preferences.toml
and the following lines configure MQTT:
'mqtt.password' = 'password' # optional, only if needed
'mqtt.user' = 'user' # optional, only if needed
'mqtt.server' = 'tcp://localhost:1883'
'mqtt.enabled' = true
Hope this helps.
Hey there, I'm going to close this issue off for now. I've also documented how to add MQTT settings for headless installs in the README.
Couldn't find an example in the readme. Thanks.