Closed Euan-p closed 6 months ago
The error says
gmqtt.mqtt.handler.MQTTConnectError: code 5 (Connection Refused: not authorised)
Looks like you are using incorrect credentials to connect to your MQTT broker. If you are using the mosquitto add on make sure you've created a user for the SAIC MQTT Gateway and that correct credentials have been supplied
Thanks for the help, I've fixed that and now it is running the startup process further, but is crashing when it tries to login to the API because the "call return code is not acceptable". Also, the wiki says auto discovery show kick in, but I've broken that as well. Any advice on either of these?
What do you use as a login method in the mg app? Phone numbers or email?
Make sure your password only contains alphanumeric characters, no symbols. Uppercase letters are ok as well
Il Gio 2 Mag 2024, 19:33 flying-panda-44 @.***> ha scritto:
Thanks for the help, I've fixed that and now it is running the startup process further, but is crashing when it tries to login to the API because the "call return code is not acceptable". Also, the wiki says auto discovery show kick in, but I've broken that as well. Any advice on either of these?
— Reply to this email directly, view it on GitHub https://github.com/SAIC-iSmart-API/saic-home-assistant-addon/issues/87#issuecomment-2091130848, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIT3RVA3IJDXNJW4YOQBB3ZAJ2GFAVCNFSM6AAAAABHBCETRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGEZTAOBUHA . You are receiving this because you commented.Message ID: @.*** com>
I've been using a phone number to login, and my password is completely alphanumeric.
however, i did find this in the logs. Does it mean I need to add a country code into my config, because it's not marked as required. If so, is it just the country or the whole phone number.
2024-05-02** 17:57:31,315 [ ERROR ] API call return code is not acceptable: 1000020: {"code":1000020,"message":"The country code not exist !"}.
It's not required since it's needed only for phone numbers. It's for example 39 for italy. You should remove it from your phone number and specify that in that var
Thanks so much! I know thsi was probably really frustrating for you to sit through, but I've got the integration working now. Thanks again
whenever I start the addon, it fails a few seconds later with the following error message in the log. I'm new to HA and haven't managed to get the addon working at all yet, presumable because of this. anyone know what ive done wrong and how to stop this from happening?