AtomBaf / homebridge-mqtt-tasmota

Homebridge handler for tasmota/MQTT devices
MIT License
5 stars 5 forks source link

Update readme url, username and password #2

Closed iconnor closed 2 years ago

iconnor commented 2 years ago

I was initially getting errors.

Error event on MQTT

I added logging of the error (e.message) which was Connection refused: Not authorized.

After some debugging, I saw that needed to add the URL (and username/password) not just to the accessory section but also to the platform.

The onConnect's config from the constructor is called both from the accessory and at the platform level during boot up.

image
AtomBaf commented 2 years ago

Sorry for the late answer, and thx for your contribution.

AtomBaf commented 2 years ago

One note: today the platform feature (with auto-discovery) is not tested and should be setup with care. This will probably require some work to fix. Also there is probably a misundertsanding in the setup example you sent. I guess one will create either an explicit list of accessories without a platform, or only a platform without accessories. How are you currently using it ?