-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
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 error in Overkiz after Somfy North America account upgrade #132228
Comments
Hey there @iMicknl, @vlebourl, @tetienne, @nyroDev, @Tronix117, @alexfp14, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) overkiz documentation |
After updating to newest HA (2024.12.0) => "Failed setuip, will retry: Failed to connect". Not sure what to do with that. Tahoma seems to be online and working. |
After updating to newest HA (2024.12.0) => "Failed setuip, will retry: Failed to connect". Not sure what to do with that. Tahoma seems to be online and working. Same issue after upgrading. Edit : after a rollback to 2024.11 , overkiz works |
Same here with 2024.12.0
Resolved with a rollback to 2024.11.2 |
Is this only for local mode or also for cloud mode? Can someone turn on debug mode and share the log? There have been no (big) changes for the cloud API, thus I wonder what may cause this… For Local API, the main change was around the SSL verification. |
This is for the local API.
|
@ColinRobbins if you turn on debug mode and try to configure the integration, you should see a warning. At least in the UI. Have you tried connecting with an without SSL verification? And can you access the ip/mens + port 8443 of your gateway in your browser? By the way, I just realised that all replies are not related to @smart his original issue. Let's continue the conversation in a new issue. |
I am having a similar issue as @smart. App transfered my account from Somfy North America app to Somfy app. App works well but overkiz stopped working via cloud api and local api (I activated the dev mode). I also tried with and without the verify ssl certificate. |
Good point. Continued under #132318 |
If someone with a Somfy North America account can connect with me on Discord ( |
@iMicknl It looks like an API issue on Somfy side. |
Confirmed as a bug in the authentication flow. |
I too can confirm that everything is fine with |
@alanbchristie this issue is to track issues with the new authentication system for Somfy North America, this is not related to any HA update. Your issue is most likely #132318. |
Just to confirm - are you all able to connect to local API after Somfy update with the new login app? |
Hi! I was able to get a new token from Somfy (due the issue related to the API), but now, I don't have the integration installed and when I try to install (local or cloud) I'm geeting the error. I tried to find local files to update the token but I wasn't able to find. anyone has an idea about what to do? many thanks! |
not sure if the reason for my issue is because I'm trying to connect to local API after Somfy made the migration; but I can confirm that I can access the API - but always getting an authorization error |
I was dumb and rushed into migrating to the new app before checking for the integration compatibility, now I cannot login to Somfy Nort America from Home Assistant. I'm 100% positive that my username and password are correct, because they work on my phone app.
PS.: Thanks for this awesome integration. It has been great so far. This is really not your fault. 😁 |
I believe the situation would be solved in a better way versus a manual config file solution. The integration setup wizard currently offers Cloud API and Local API setups. The Cloud API setup wizard card asks for credentials and the stores uses them to interact with the Cloud APIs for accessing devices on an ongoing basis. This remains an online option. The Local API wizard card asks for the local device hostname and port in addition to the Cloud credentials. The credentials are used to query the cloud and retrieve the developer key later stored and used as the Bearer token for integrating with the local device API. The credentials are only then used for refreshing the token upon expiration. As Somfy forces the migration later December 2024, this will eventually break as the corrected authentication API will not be fixed until sometime first half of 2025. This brings me to a suggested third option. Add a Local API w/ Developer Key option. This option would only ask for hostname:port and the developer key that you can manually obtain from Somfy through an email process. This method would bypass the authentication and retrieval of the token. However it would possibly not have a way to refresh the token upon expiration. It would allow people to setup the integration as Somfy transitions their auth servers. Alternatively, Developer Key can be added to the Local API Wizard card and then used in an AND/OR manner. I think this is the easiest path that can be supported by a documented remediation flow. @iMicknl admittedly not a Python dev (other dinosaur languages, sure) so I made some assumptions based upon my review of code regarding the usage of creds post Local API setup. I will pull and see if I can provide a suggestion. However, you are closer for sure. @lbreggi CC |
@lrixford, the downside of adding a token based flow, is that we will need to add a migration for all users when Somfy provides more details on the new authentication method. I understand your views, but I won't invest in building this new token based Config Flow. It is a temporary solution for only a handful users, where the focus should be on implementing the new authentication method when Somfy is ready. There are 40 open issues for Overkiz so with my limited time, I can't prioritize this one. |
Hi all! I was able to fix the issue for my environment with the strong help of @iMicknl ! here are the steps: 1 - if you don't have your token, you can ask Somfy (if you need a token to access the developerMode, you can reach out to [email protected] providing your gateway_pin and mentioning this issue Somfy-Developer/Somfy-TaHoma-Developer-Mode#151 Please let me know if you need any help! |
Where so I find core.config_entries (I have a HA Yellow). Do I just need to change hub ip, email, password, username, gatewaypin. Where do you put the token? |
@iMicknl you might have misunderstood my comment here : Somfy-Developer/Somfy-TaHoma-Developer-Mode#151 (comment) We don't intend to change the authentication method to generate a token. We want to provide a new process (which avoids any authentication with an API call). It is strictly related to the token generation function for using the TaHoma Developer Mode. I post this message to avoid any confusion. |
Thanks @llavorel-somfy! If there will be a way to generate a token (without emailing support), then I will be happy to implement that flow into Overkiz. 👍🏻 |
Hey Folks - I'm facing a similar error when trying to setup this integration. I keep getting an "Unexpected Error" message. I have tried connecting it with the gateway pin and the host IP directly as well. Any help will be greatly appreciated. Here is what shows up in the logs. Logger: homeassistant.components.overkiz Unknown error |
Hi all, Going off of @lbreggi 's comment, here's a full guide on how to get this working with an API key provided by Somfy via email. I can confirm this works as of 3/1/2025 using the new app. Developer mode must be enabled on your hub/gateway in order to use the local API. Important Note!This only works for the local API and somfy north america. Make sure you are on the most up-to-date firmware for your hub/gateway. There was a firmware update on 01/28/2025 that broke the local API, but I've been told that a later update has fixed it. 1. Email
|
@NGrey5 - Thank you so much. I can confirm that adding the above entry fixes the interation. I tried the syntax that @lbreggi previously had shared but must have made a mistake as it kept giving me syntax errors and wont load up HA. And a big thanks @iMicknl for all the work you have done on this. Much appreciated. |
It's coming soon I promise ! By the way, it will remain related and focus on using the developer mode ! |
Team, the question is do we have a manual configuration that works for this combo? changing the working config from "local" to "cloud" generates the following error
|
@samsonusmc how did you get the value As the Cloud API is not functional for North America due to authentication changes, and your local API is not functional, most likely your Overkiz integration won't be functional anyways. |
@iMicknl , i got somfy_north_america from this post above: #132228 (comment) Ok. Understood and unfortunate. I guess I'll have to wait for one or the other to be fixed. I can't use the ui to add b/c I get the same errors from the OP. |
@NGrey5 @lbreggi I need help please. I followed @NGrey5 instructions above carefully, but on restart, HA says my config is corrupt. (And it creates a temp config file, and all of my stuff is a mess.) I started fresh, and repeated my steps. Copied the config string above, replaced all of my own values as instructed. Eyeballing it side by side with my first attempt, they look identical. I.e. I don't think I made a typo. So -- what's corrupt?? |
Now that config_entries hack is right, and HA restarts ok, Overkiz is still saying "failed to set up" and "API key is required...". I can't remember for sure, but I think I have this in cloud mode. Assume I need to verify that, and then convert it to local mode. How do I do that? Do I have to delete and reinstall the integration, or is there a smarter way? |
@knwpsk It's hard to say what would be causing the issue as we can't see your config (DO NOT post it here as you likely have credentials stored in it.) My only suggestion is to make sure you don't have a comma at the end of your last line. Only other thing is there appears to have been a firmware update to Somfy devices on 1/28/25 that will prevent this fix from even working. If you manually updated, or your device auto-updated then this will likely not work for you. This fix does not apply to the Cloud API, it's for local only which is why you need to get the API key from the Somfy developer team. |
How would I switch from cloud to api setup? Would I need to remove the integration and reinstall it? |
@knwpsk The |
Want to give a quick shout out to Lou at Somfy. (He's at the address given above for their tech support.) He responds quickly, gives good answers, and gives a sh*t about the DIY community. So much better than some other hardware vendors we work with. We need to celebrate people like him when we find them! FYI he told me they're going to reorganize the menus/pages in the (new) app, so that things like the Beecon firmware version are easier to find. He listened and responded positively to my feedback about it. |
@NGrey5 fyi:
Mine says Hub Version 2024.6.5-13, which Lou says is current. I haven't tried the workaround again yet, maybe I'll get to it tonight. |
@NGrey5 I just did the manual update as you described above. HA restarted ok, but the Overkiz integration is throwing a new error:
Was I supposed to delete the integration first? Or something else? |
You have to enable Developer Mode. |
I just wanted to add one bit of information: after migrating, then getting the API key, and successfully adding the integration back, I noticed that neither the Zigbee groups or the scenes are exported to Home Assistant. I don't know if that's an issue with the new API, or with the HA integration. All I know is that I need to re-write some of my automation. EDIT: I jumped the gun here. I found the groups under "Entities", just not the scenes. |
Enable Dev Mode in Somfy? I already did that, a couple of weeks ago. (Thanks) |
Yeah, sorry, responded too fast. |
Still breaking, same error.
|
@knwpsk I've done all I can think of to re-create your issue, but have not had success. Are you sure you don't have any lingering entries in Being that you're on a different firmware version than me, my ability to help is little to none unfortunately as it could just not work at all. |
@NGrey5 I'm combing through core.config_entries to find anything else that could be "duplicate" but I don't see it. I have a Ping entity that pings the IP address of the Beecon hub, but I don't see how that could be an issue. Any suggestions on where else I should look? |
@NGrey5 also no, I don't have that same entry_id anywhere else in config_entries. |
@NGrey5 I figured it out (with your hint). I discovered that, when I follow all the steps, HA creates another entry in my config_entries file (in addition to the one we added manually per your instructions). (I re-verified in my backup of config_entries that there are no entries for it. It wasn't my mistake!) |
I'm fairly new to HA (about a month), and doing my best to make sense out of this Somfy (North America) integration issue. As you'd expect, I can't install the Overkiz integration because of the login problem. So, as suggested, I've enabled Developer Mode on my TaHome (see note below), and received a token from Somfy. I found the very nice instructions (above) from @NGrey5 from Jan 13th, and perhaps all I have to do is follow those instructions. But from the discussion, this appears to be how to re-enable a now-broken Overkiz integration -- and I've never had it installed (and, of course, attempting to add it fails at authentication). Looking at the config change, I'm assuming I still somehow have to install the integration. Note: In case anyone else hits this, or in case it's somehow relevant: I could not enable Developer Mode on my TaHoma via the somfy.com website. When I logged in, I can see old support tickets I filed, but my TaHoma does not show up at all. Somfy acknowledged that something is broken and they are investigating. In the meantime, they said they've enabled Developer Mode for me, and sent me the token. -- Update: I just re-read @NGrey5's write-up and previously missed something critical. He said:
My TaHoma does have the updated firmware. So now I'm even more confused: Is there ANY work-around to install (new install) and configure Home Assistant to work with the Somfy TaHoma local API at this time? If so, where can I find detailed instructions? I've searched, and this thread seems to be the best... |
@davekolm I can't confidently say I'm up-to-date on the status of these issues, all I do know is mine is still working using the steps I outlined above, and I have not updated my device firmware to anything on or after 01/28/2025. However, there have been some that said the firmware issue has been fixed in a subsequent update (I can't confirm this myself.) You may want to see if you have any new updates and aren't still on the broken version. Also, you shouldn't need a previous installation for this to work. I've even gone to lengths of deleting the integration and all devices from Home Assistant. Following the steps puts it all right back where it was. If you haven't already, you may find it beneficial to check out this entire thread and see if you find any common issues that others have had. You may find a solution as one other person was having issues after following the steps as well. I'll try to help where I can, although it may be limited as I'm by no means an expert on this. I've been personally just waiting for everything to be fixed!! |
@NGrey5 It worked! I'm unclear on how integrations get added to HA, but adding the config entry you documented above was all that was necessary. My shades were immediately detected and added. Thank you! Note: My TaHoma hub is running 2024.6.5-13 |
I have 3 Tahoma Beacons (Windows were too spread out to use only 1) and when I use the above configuration to add the 3, the first one gets accepted but the second 2 do not. It is a problem with 2025-03-03 10:33:33.016 ERROR (MainThread) [homeassistant.config_entries] An entry with the id 01JAZGX01BZXXXXXXQMFBGEJ5H already exists Each of the config lines, when copied has the same id which occurs near the end of the config entry. Is there some other ID I can put in place for the remaining 2 entries so I can have all 3 Tahoma Beacons be recognized? |
I ended up just changing one letter in each of the ID's and it worked.. Tnx |
The problem
I've been struggling to get the local api integration working for overkiz. I've enabled the developer apis, but I continued getting an error that it wasn't enabled. I tried pinging port 8443 on the two hubs, one responded the other didn't, I've been following some issues on the Somfy devloper github that could be related. In the meantime, I have tried to use the cloud integation. It worked but then all of a sudden I had been logged out. I tried to log back in and get "Unexpected Error". I'm also getting "Unexpected Error" on my local api attempts now. When I opened the app today, it asked me to transfer my account to a new service/app Moving from Somfy North America to just Somfy. I'm wondering if this transfer changed any of the api endpoints for authentication, breaking the integration. I have some logs below.
What version of Home Assistant Core has the issue?
core-2024.11.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
overkiz
Link to integration documentation on our website
https://www.home-assistant.io/integrations/overkiz/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: