joshuar / go-hass-agent

A Home Assistant, native app for desktop/laptop devices.
MIT License
136 stars 11 forks source link

What is the format for entering MQTT info into preference for a headless install? #235

Closed YenLegion closed 3 weeks ago

YenLegion commented 1 month ago

Couldn't find an example in the readme. Thanks.

joshuar commented 1 month 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.

joshuar commented 3 weeks ago

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.