Somfy-Developer / Somfy-TaHoma-Developer-Mode

A collection of requests to use a local API with Somfy TaHoma gateways
141 stars 12 forks source link

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

Open cdeharo opened 1 week ago

cdeharo commented 1 week ago

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 commented 1 week ago

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

:’(

kimhegg commented 1 week ago

Same here

pillisan42 commented 1 week ago

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

christianwgd commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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

kimhegg commented 5 days ago

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 commented 4 days ago

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