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

Forcing device detections #2262

Closed
3 tasks done
soupman98 opened this issue Oct 23, 2024 · 9 comments
Closed
3 tasks done

Forcing device detections #2262

soupman98 opened this issue Oct 23, 2024 · 9 comments

Comments

@soupman98
Copy link

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

How do I force battery/device detection. I have a long established environment with 200+ devices, but B+ doesn't seem to detect any of them. I have battery_notes: in my configuration.yaml with detection set to on.

Describe the solution you'd like

B+ provides a way to "detect now"

Describe alternatives you've considered

manually adding a LOT of devices - yuck

Additional context

love the integration just doesn't seem to find as many (any) devices as expected.

@andrew-codechimp
Copy link
Owner

andrew-codechimp commented Oct 23, 2024

Hi,
Device detection happens at HA Restart, it also happens approx every 24 hours after a restart, the library is also updated at this point.
I don't want to introduce a manual re-detect to avoid excessive download of the library from GitHub (someone will create an automation to re-discover every minute I'm sure!)

@soupman98
Copy link
Author

Thanks @andrew-codechimp
I just figured I'd have a lot more of my battery enabled devices auto detecting and showing up. I completely get wanted to avoid the aforementioned feature and associated impact.

@soupman98
Copy link
Author

@andrew-codechimp just realized.. does it matter if the devices are actually coming over to HA from Smart Things integration?

@andrew-codechimp
Copy link
Owner

Smart things devices will be supported, it just depends on whether people have added them to the library.
Different integrations present the manufacturer/model differently, for example Ikea devices are duplicated which is probably ZHA and Zigbee2MQTT. If your devices are in this doc but with slightly different info then it won't match.
You can add it to the library to help others and also allow discovery where you have multiples as long as you wait until the library is updated.

@soupman98
Copy link
Author

soupman98 commented Oct 23, 2024

Therein lies the rub, my HA device inventory shows for Manufacturer and Model in HA, but shows some other details in S/T (attached)
image

I think I added the 1117-S a while back. I have 8 of these in S/T that didn't get picked up in B+.
I may eventually move my S/T devices to HA, but for now, they pass thru.

image

@andrew-codechimp
Copy link
Owner

Looking at that second screenshot from HA all your devices have unknown in the manufacturer and model fields, which means the Smart Things integration is not passing through these when it creates the HA device.
These data elements are what makes Battery Notes device detection work, without them being populated it can't determine the device.
Not sure if that's Smart Things in general or the integration but I'm afraid you'll never get device detection working with those.

@soupman98
Copy link
Author

Thanks @andrew-codechimp. That was my fear. Not sure why ST / HA wouldn't do the pass thru, but even if it did, it looks like some of the Edge drivers that you have to add to ST for devices now, provide an odd value "SmartThingsCommunity". This stuff is all so fun

image

@soupman98
Copy link
Author

BTW: Really like the integration. Nice work @andrew-codechimp

@andrew-codechimp
Copy link
Owner

Thanks, well I hope you find it useful for your non Smart Things devices.
I've never tried ST but this sort of experience will ensure I steer clear of it.

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

2 participants