yenoiwesa / homebridge-connexoon

A homebridge plugin to integrate Somfy blinds with the Connexoon RTS hub
Apache License 2.0
26 stars 2 forks source link

Unable to start Connexoon: Username and password must be defined as configuration #60

Closed Haapie closed 2 years ago

Haapie commented 2 years ago

Hello @yenoiwesa

If have searched already in the closed issues, but couldn't find the answer to my problem.

When connecting to homebridge Connexoon I get the following reply:

[17/06/2022, 13:14:18] Loading 2 platforms... [17/06/2022, 13:14:18] [Config] Initializing config platform... [17/06/2022, 13:14:18] [Config] Running in Service Mode [17/06/2022, 13:14:18] [Connexoon] Initializing Connexoon platform... [17/06/2022, 13:14:18] [Connexoon] Connexoon Init [17/06/2022, 13:14:18] [Connexoon] Username and password must be defined as configuration. [17/06/2022, 13:14:18] [Connexoon] Failed to get device list undefined

My config:

    {
        "bridge": {
            "...": "..."
        },
        "description": "...",
        "platforms": [
            {
                "platform": "Connexoon",
                "name": "My Connexoon Hub",
                "username": "******@*****.nl",
                "password": "****************",
                "service": "ConnexoonRTS"
            }
        ],
        "platform": "Connexoon"

Is there something missing?

Thanks!!

yenoiwesa commented 2 years ago

Hi @Haapie ,

Remove the last line it's wrong.

Haapie commented 2 years ago

Hi @yenoiwesa

Thank you for your quick reply, I appreciate it!

Unfortunately it doesn't solve the problem, I already tried. This is mark-up from the editor, because I copied your information from the README-file.

The reply I get in de config-editor when I remove the line is all platform blocks must contain the "platform" attribute

I included the whole (edited) config-file.

Schermafbeelding 2022-06-17 om 15 47 06
yenoiwesa commented 2 years ago

Hey @Haapie, that configuration is even more wrong than I thought haha.

Do you see how you are defining a bridge and a description with placeholder ... values in the platform's configuration? That was meant to be an example for people to know where to put the JSON in the file not to copy paste in their platform configuration lol.

Just remove that red highlighted block entirely and replace it with just the JSON object that corresponds to the actual Connexoon platform, the one with the 5 entries.

Haapie commented 2 years ago

Haha...my mistake. A real newby-thing lol Thank you!

Problem solved, but ......another problem appears.

image

RESOURCE-ACCES-DENIED, unknown user, while this is the email address I use to log in to my Somfy account.

Probably a change of service, like issue 9? Maybe Europe (Netherlands) is TaHoma as service. I'm away for the weekend now, so I'll give it a try tomorrow.

Thanks again for your help (and patience lol) and of course all the time you put into developing this!

yenoiwesa commented 2 years ago

Yes you will have to try the other services. ConnexoonRTS is mostly used for the Asia Pacific market (I am in Australia).

Give a try to the other values until you find one that does work.

yenoiwesa commented 2 years ago

I updated the plugin to version 2.2.1 with support for config UI schema, which means you should now be able to configure the plugin via UI instead of JSON after the upgrade.

I trust you will find the right service to use for your region/market so I'll now close this issue. Feel free to comment if you are still having problems.

Zeses commented 1 year ago

Hi Yenoiwesa, I installed your latest version but I don't get promoted with a UI config page all I see is this, any ideas?

{ "platform": "Connexoon", "name": "Connexoon" }

Screen Shot 2023-03-09 at 1 37 43 pm
Zeses commented 1 year ago

im also in Australia so im hoping all I need to do is add my credentials ?

yenoiwesa commented 1 year ago

Hey @Zeses 👋 It would be better to open a new issue than commenting on an old closed one. The plugin has the necessary schema files to offer an admin UI normally so I am surprised it doesn't offer it to you. Either way, all the details on the configuration object shape are documented in the readme file: https://github.com/yenoiwesa/homebridge-connexoon

Zeses commented 1 year ago

ah sorry about that, I can delete it and re create a new issue if you like?

im not really a developer and don't know Json

If you were able to have a copy of a dummy config were newbies like me can just copy and paste (or have it as default in the startup config) it and replace the credentials it would much appreciated..

yenoiwesa commented 1 year ago

It's there in the README file:

{
  "platform": "Connexoon",
  "name": "Connexoon",
  "username": "blahblah@blah.com",
  "password": "more blah blah"
}
Zeses commented 1 year ago

ok, it now logs in successfully to the server with no credential errors, but its not pulling/showing any of the devices though..

yenoiwesa commented 1 year ago

That's when you should create a new issue :-)

Zeses commented 1 year ago

Ha! will do :)