Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad credentials suddenly #204

Closed
Reckziegel182 opened this issue Sep 29, 2020 · 10 comments
Closed

Bad credentials suddenly #204

Reckziegel182 opened this issue Sep 29, 2020 · 10 comments

Comments

@Reckziegel182
Copy link

Hi there,

all of a sudden, i am getting this error
image

Looks like my ip has been blacklisted, when i use this link https://www.tahomalink.com/enduser-mobile-web/steer-html5-client/tahoma/ i get bad username and password, but when i connect using the LTE from my mobile, i get in. Any way to get around this please?

thank you

Martin

@jasper-seinhorst
Copy link

I'm having the same issue. I think the IP blacklist should be a matter of time because I've seen the error in the past. I also noticed that due to this error my Homebridge isn't starting anymore. Had to remove the plugin from the config. Looks like Tahoma is changing things at their end, since a week my Awnings have incorrect states, and now this issue occurs.

@dubocr do you have a clue what is going on?

@vdheidenet
Copy link

Same problem here. IP is not blacklisted as I can login manually through the website without any problems.

Probably a sudden api change?

If I’d known these problems with Somfy earlier then I would probably have chosen another system.

Thank you for this plugin!
We use it daily here in this household.

@chicochaleur29
Copy link

Same problem here too....

@Reckziegel182
Copy link
Author

Guys this is what fixed it for me. Backup the config, remove the plugin and leave it be for couple of hours. The system will stop poking the server which keeps reseting the black list timer. After three hours i’ve reinstalled the plugin and it staryed working.

@jasper-seinhorst
Copy link

jasper-seinhorst commented Sep 29, 2020

That means that we should decrease the default polling time. We probably poll the API too much. I don't have an license, is the max requests per day documented?

@WTell
Copy link

WTell commented Sep 30, 2020

Same issue here.

Logs:

hb-Tahoma-error.log last 15 lines:
0|hb-Tahom | [9/30/2020, 1:00:31 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:00:51 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:01:11 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:01:31 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:01:51 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:02:11 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:02:31 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:02:51 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:03:11 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:03:31 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:03:51 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:04:11 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:04:31 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:04:51 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.
0|hb-Tahom | [9/30/2020, 1:05:11 PM] [Tahoma] homebridge-tahoma is taking a long time to load and preventing Homebridge from starting.

hb-Tahoma-out.log last 15 lines:
0|hb-Tahom | [9/30/2020, 12:52:51 PM] ---
0|hb-Tahom | [9/30/2020, 12:52:51 PM] Loading 1 platforms...
0|hb-Tahom | [9/30/2020, 12:52:51 PM] [Tahoma] Initializing Tahoma platform...
0|hb-Tahom | [9/30/2020, 12:52:51 PM] [Tahoma] Fetch accessories...
0|hb-Tahom | [9/30/2020, 12:52:51 PM] [Tahoma] Login TaHoma server...
0|hb-Tahom | [9/30/2020, 12:52:51 PM] [Tahoma] Unable to refresh states (not logged in)
0|hb-Tahom | [9/30/2020, 12:53:21 PM] [Tahoma] Fetch accessories...
0|hb-Tahom | [9/30/2020, 12:53:21 PM] [Tahoma] Login TaHoma server...
0|hb-Tahom | [9/30/2020, 12:54:21 PM] [Tahoma] Fetch accessories...
0|hb-Tahom | [9/30/2020, 12:54:21 PM] [Tahoma] Login TaHoma server...
0|hb-Tahom | [9/30/2020, 12:56:22 PM] [Tahoma] Fetch accessories...
0|hb-Tahom | [9/30/2020, 12:56:22 PM] [Tahoma] Login TaHoma server...
0|hb-Tahom | [9/30/2020, 1:00:22 PM] [Tahoma] Fetch accessories...
0|hb-Tahom | [9/30/2020, 1:00:22 PM] [Tahoma] Login TaHoma server...

I'm shutting it down now and trying again in an hour.

@richie80
Copy link

Today I have had the same error. Polling period is set to 60
Can you advise?
[10/26/2020, 7:08:12 PM] [My Tahoma Box] undefined
[10/26/2020, 7:08:12 PM] [My Tahoma Box] Login TaHoma server...
[10/26/2020, 7:08:12 PM] [My Tahoma Box] Login fail: Bad credentials
[10/26/2020, 7:08:12 PM] [My Tahoma Box] Error while registering listener
[10/26/2020, 7:08:42 PM] [My Tahoma Box] undefined
[10/26/2020, 7:08:42 PM] [My Tahoma Box] Login TaHoma server...
[10/26/2020, 7:08:42 PM] [My Tahoma Box] Login fail: Bad credentials
[10/26/2020, 7:08:42 PM] [My Tahoma Box] Error while registering listener
[10/26/2020, 7:09:12 PM] [My Tahoma Box] undefined
[10/26/2020, 7:09:12 PM] [My Tahoma Box] Login TaHoma server...
[10/26/2020, 7:09:12 PM] [My Tahoma Box] Login fail: Bad credentials
[10/26/2020, 7:09:12 PM] [My Tahoma Box] Error while registering listener
[10/26/2020, 7:09:42 PM] [My Tahoma Box] undefined
[10/26/2020, 7:09:42 PM] [My Tahoma Box] Login TaHoma server...
[10/26/2020, 7:09:42 PM] [My Tahoma Box] Login fail: Bad credential

@filibuster007
Copy link

filibuster007 commented Oct 26, 2020

Same problem here too. Stopped homebridge and will start the service again in an hour.

That solved the bad credentials issue. Definitely something related to rate limiting. This is my config:

{
"platform": "Tahoma",
"name": "Tahoma",
"service": "Connexoon",
"user": "********",
"password": "*******",
"refreshPeriod": "1000",
"alwaysPoll": true,
"pollingPeriod": 60,
"PositionableHorizontalAwning": {
"reverse": true
}
}

@marcantoinegodde
Copy link

It took me a bit of time to figure this out but the alwaysPoll config is deprecated, in fact it isn't in the code anymore since the commit 3cf2b96. You should remove that from your config file.
Just to make this clear, if you trigger pollingPeriod: HomeBridge will fetch changes through the API but it won't fetch the accessories. It is the goal of refreshPeriod. That's why refreshPeriod should be set to a pretty high value.

Device <-1-> API/Server <-2-> Plugin
refreshPeriod => force API to refresh IO device states (link 1), and report it to plugin (link 2). Involves local radio communication.
pollingPeriod => get fresher device states from server (link 2). Allows more frequent request.

In a nutshell, if you don't have sensors that push themselves their information to the API, you don't need pollingPeriod. Keep the refreshPeriod to check discrepancies if you use IO buttons for instance.

@filibuster007
Copy link

Thanks for your explanation! Will make the changes.

@dubocr dubocr closed this as completed Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants