banny310/hoymiles-dtu-homeassistant-addon

unable to define MQTT server in config

Opened this issue · 1 comments

Set entering the setup for the config I switch to the yaml view and enter the mqtt setting as detailed in the example file (but using of course my server name and login etc). Once I save it move the mqtt section to the end of the file and restarts the service.

Upon checking the log file I see that it has accepted all my settings APART from the mqtt setting which it has set back to your defaults.

As my MQTT is running on a separate server you defaults don't work for me.
Is this a bug - or is it me doing something stupid.

if you use the HA mqtt add on, this gets configured automatically

e.g

[12:45:14] INFO: Configuration:
{
  "dtu": {
    "host": "192.168.1.20",
    "port": 10081
  },
  "app": {},
  "app_mode_active": {},
  "app_mode_passive": {},
  "mqtt": {
    "host": "core-mosquitto",
    "port": "1883",
    "username": "addons",
    "password": "redacted"
  }
}