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

Authentication tokens expired after time change (CEST to CET) #147

Open
cdeharo opened this issue Oct 27, 2024 · 9 comments
Open

Authentication tokens expired after time change (CEST to CET) #147

cdeharo opened this issue Oct 27, 2024 · 9 comments
Labels
question Issue to ask support on API usage

Comments

@cdeharo
Copy link

cdeharo commented Oct 27, 2024

Description:
This morning, all my authentication credentials for Somfy expired unexpectedly. This issue occurred on the same day as the time change in Spain, where we transitioned from Central European Summer Time (CEST, UTC+2) to Central European Time (CET, UTC+1).

I suspect the problem might be related to the time change and how token issuance and validation are handled. It seems likely that the server issuing the tokens and the server validating them might not be using the same time zone. The difference in time zones could be causing the tokens to be considered invalid due to a mismatch in the expected times.

Proposed Solution:
A possible fix would be to use UTC consistently across all systems involved in token issuance and validation, ensuring that time zone changes do not affect the authentication process.

Steps to Reproduce:

  1. Authenticate with Somfy during Central European Summer Time (CEST).
  2. Wait until the time change from CEST to CET.
  3. Attempt to use the previously issued tokens.

Expected Result:
Tokens should remain valid regardless of time zone changes.

Actual Result:
Tokens expired after the time change.

@pillisan42
Copy link

I have the same problem here and It seems that I can’t reactivate the developper mode ...

:’(

@kimhegg
Copy link

kimhegg commented Oct 27, 2024

Same here

@pillisan42
Copy link

I've found a solution, If ypu have home assistant i just rebooted m'y home assistant instance ans it works again

@christianwgd
Copy link

Ok, after hassling around for some hours I can confirm, that this can be fixed by restarting HA. This seems to be induced by the automatic change of the clock to summer time. Since I might have forgotten the solution in next spring when the clock changes back, can somebody fix that? Or can I do something to prevent that?

@KimSchultz
Copy link

I have the same problem here and It seems that I can’t reactivate the developper mode ...

:’(

I found that I needed to go to my countrys somfy site (ie https://www.somfy.dk/) and login here. If I tried the default one I would get an error with wrong password.

@christianwgd
Copy link

christianwgd commented Oct 28, 2024

At least for me the developer mode isn't available any more. Can't find that anymore in the Tahoma / Somfy pages.

@kimhegg
Copy link

kimhegg commented Oct 30, 2024

At least for me the developer mode isn't available any more. Can't find that anymore in the Tahoma / Somfy pages.

As @KimSchultz said, i found it on the somfy page.

  1. Log in
  2. click on your device
  3. Activate Developer mode

@a3699050
Copy link

I have the same problem 😕
I also checked if I have the developer mode activated, and it is OK.
Any solution?

@llavorel-somfy
Copy link
Contributor

Hi everyone,

The developerMode cannot be deactivated once it has been activated once.

Tokens generated following the documentation do not have an expirationTime.

@llavorel-somfy llavorel-somfy added the question Issue to ask support on API usage label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue to ask support on API usage
Projects
None yet
Development

No branches or pull requests

7 participants