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

SmartThing devices not being imported into HA when creating integration #119864

Closed
bcre3306 opened this issue Jun 17, 2024 · 12 comments
Closed

SmartThing devices not being imported into HA when creating integration #119864

bcre3306 opened this issue Jun 17, 2024 · 12 comments

Comments

@bcre3306
Copy link

The problem

I just setup ST integration with HA and it all appears to be working, SSL, web hook, etc and no errors in the logs but no devices are being created in HA. I have two fanimation fans in ST which work fine there but not importing to HA.

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SmartThings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/smartthings/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Synchronizing subscriptions for 0 capabilities under app 'aad93ac3-d3c1-46a8-a0c3-34a525efc62d': set()
2024-06-17 07:40:32.085 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Subscriptions for app 'aad93ac3-d3c1-46a8-a0c3-34a525efc62d' are up-to-date

Additional information

No response

@home-assistant
Copy link

@GSzabados
Copy link

Have you set up correctly the token permissions?

@bcre3306
Copy link
Author

I believe I have. I've provided access to all the options and also the ones suggested on the integration page and both appear to work. When I get to the ST page to authorize, it has a drop down and just states "all devices" and it states it works. I can see the integration in ST app on my iPhone but none of the devices show up in HA

@GSzabados
Copy link

GSzabados commented Jun 21, 2024

That 0 capabilities seems quite suspicious to me. I would try to set it up again with a new token. And make sure everything is included as required.

And make sure if you have multiple locations in SmartThings, you include the right location in the token.

@bcre3306
Copy link
Author

I just tried it again. I only have one location setup which is the default "my home". I attached a screenshot of the ST authorization page if that is something of concern also. One last thing I should mention is I am NOT using HA cloud, I'm using my own SSL which when I try the troubleshooting steps on the HA Screenshot 2024-06-21 at 6 57 36 AM page with the curl, it returns what is suggested.

@wmdhuntHACS
Copy link

Smartthings not loading token and recognizing homeassistant. Smartthings website still creating tokens but not recognizing new or old tokens when submitted. Says no location in HA found.

@bcre3306
Copy link
Author

Do you think it's something incorrectly configured with the SSL cert?

@bcre3306
Copy link
Author

I don't think that's 100% accurate because when I do the integration it does show "my home" which is in ST as an option to select when creating the integration and it also creates the "My Home" entry but I do see what you're saying in the logs. Just trying to provide as much information as possible here.

@GSzabados
Copy link

I think the problem lies somewhere else, your setup is good, that is the integration most likely not reading the information from SmartThings.

If this is not you, then someone else has exactly the same problem:

https://community.home-assistant.io/t/attempts-to-get-fanimation-fan-integrated-into-ha-smartthings-skipping-the-fan-but-imports-everything-else/728591

There is another problem also, that the SmartThings integration is not maintained currently:

#117364

So, it is quite hard to tell that will anybody fix this, and to be honest, I am not sure fully that it can be fixed. You should try to get the response from the SmartThings API for the Fanimation fans. There are a few devices in SmartThings which are not exposed through the SmartThings API, like the Nest cameras and Doorbells. They are accessible only through the SmartThings app, but not through the API. That is due to Samsung's agreement with Google. It can be that they have a similar agreement for the Fanimation Fans.

Otherwise, someone started to reverse engineer the FanSync protocol:

https://github.com/rotinom/fansync

@bcre3306
Copy link
Author

Just incase someone doesn't see the other post, GSz pointed me to a resolution which I am beyond appreciative of! The solution was adding this:

@bcre3306
Copy link
Author

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants