gordlea / fireboard2mqtt

8 stars 5 forks source link

unable to use blank un/pw for custom MQTT server #42

Closed CKCKCKCK1 closed 6 months ago

CKCKCKCK1 commented 6 months ago

I installed this for the first time yesterday, but I'm getting an error in the logs. When running as a home-assistant add-on with a custom mqtt server, the add-on fails to start

New install of version 3.1.0

Config fireboardAccount_email: myemail@domain.com fireboardAccount_password: ** fireboard_enable_drive: enabled override_mqtt_url: mqtt://192.168.xxx.xxx logLevel: fireboard2mqtt=debug

s6-rc: info: service legacy-services successfully started [10:04:48] INFO: drive enabled: true [10:04:48] ERROR: Got unexpected response from the API: Service not enabled [10:04:49] INFO: using mqtt service username from home-assistant: [10:04:49] INFO: using mqtt service password from home-assistant [10:04:49] INFO: found user supplied override_mqtt_url: mqtt://192.168.184.247 [10:04:50] INFO: Starting fireboard2mqtt [2024-04-02T15:04:50Z ERROR fireboard2mqtt::config] missing required env var FB2MQTT_MQTT_USERNAME [2024-04-02T15:04:50Z ERROR fireboard2mqtt::config] missing required env var FB2MQTT_MQTT_PASSWORD s6-rc: info: service legacy-services: stopping

If I put in "test" for the override_mqtt_username / password, the config error goes away.

gordlea commented 6 months ago

Interesting, so is there actually no username/password on the mqtt server? Or should it be using the home assistant internal ones that are automatically supplied?

gordlea commented 6 months ago

Can you tell me a little about your setup? Are you running the mqtt server outside of home assistant and have anonymous connections enabled?

CKCKCKCK1 commented 6 months ago

I'm running my own mqtt server outside of home assistant on a separate server that I use for a variety of other projects. It is currently set to allow anonymous connections.