it would be awesome, but without a proper integration, it seems out of range
Hi Nil,
I’m curious on how you achieved this last part, did you find a way to get the SmartTag position in H.A ?
I would also like to ensure the tag button can only be used nearby my flat.
Is there any progress in integrating smart tag location to home assistant?
I’m also hoping for full integration for our SmartTag+s.
Any update?
I have new Samsung SmartTag2 released previous month. It is normally added to SmartThings app on a Samsung phone and visible on Samsung SmartThings web. Using this SmartThings addon it is visible in Home Assistant as one device with entities of battery, alarm. However all is state unkonwn and no location info, nor battery.
I have chacked Samsung SmartThings web interface and there is no information there also.
As per Samsung community post above , it is Samsung limitation not providing this information in their system and therefore it can not be pulled to Home Assistant.
Now I am very disapointed with Samsung SmartTag devices because of this.
But this needs to be addressed inside Samsung first, and then in HA integration.
Or any other workarounds for pulling location information would help.
Oh this sucks. So basically the only function for the smart tag is when observed in SmartThings app on the map. Such a shame that it can’t be integrated into automations in Smartthings where it could trigger a virtual switch and then into homeassistant.
I thought at least I could use the alert when not in a safe place option the smart tag has and then use something like autonotification in tasker to intercept the notification on my phone/tablet to then change the status of a home assistant switch… But even that notification seems buggy and it would only be when I left…
I wish I read this before I ordered 4x tags… Makes them not overly useful without a geofence based automation. I see apples airtag is in a similar boat with geofence…
Really surprised if this limitation…
It’s even more limited than people think. Outside of this integration discussion, the most annoying thing with these tags is that they don’t work / are useless if your phone doesn’t have a data connection. So imagine you are abroad without connection in an airport and want to locate your tag, you think “this is Bluetooth so it’ll work”. We’ll no, it doesn’t. A’d wifi won’t help either.
I think he is talking about his phone location. Samsung already stated that they will not share the smarttag location via api, due to privacy concerns (not really sure how their own app does not have these concerns)
Since they now show the tags on the https://smartthingsfind.samsung.com website, we can reverse engeneering the api.
What i got so far is:
Get the device ids of all tags with this request:
https://smartthingsfind.samsung.com/device/getDeviceList.do?_csrf=xxx
Body: {}
Cookie: JSESSIONID=xxx
Get tag Info with:
https://smartthingsfind.samsung.com/device/setLastSelect.do?_csrf=xxx
Body: {“dvceId”:“xxx”,“removeDevice”:}
(“dvceId” is in the getDeviceList)
Cookie: JSESSIONID=xxx
that they respond with coordinates and a range of uncertainty around it (better then the app), battery status, and some stuff I don’t understand.
You can even ring the Tag with:
https://smartthingsfind.samsung.com/dm/addOperation.do?_csrf=xxx
Body: {“dvceId”:“xxx”,“operation”:“RING”,“usrId”:“xxx”,“status”:“start”}
Cookie: JSESSIONID=xxx
What i don’t know is where the _crsf comes from, I got it from the browser and it seems to be the same per session.
I also don’t know how long the JSESSIONID Cookie lasts and have not figured out how to get a new one besides copying it out of my browser cookie storage.
CSRF stands for Cross-Site Request Forgery attack and it’s usually mitigated by a short lived token issued by the server per client session. Surely, you cannot generate one.
I’ve brought two Galaxy SmartTag2 and will start reverse engineering the API once I get them so I can get them into HA as trackable devices.
That would be really great! Following the post.
This would be AWESOME
Request since 3 years now and still no progress on this? I’m wondering if it’s even possible by now.
Honestly, I’d expect that it’s even more doable now than ever, what with the bluetooth changes made not too long ago in HA. Though, who knows if we will ever see anything come to fruition though.
I don’t have a bluetooth adaptor on my server. So I can’t try if it can find it. But I think to remember before when I had this, that I found a sensor that could detect presence. And that might be able to detect it (already). Sadly I can’t test this atm.
I’m currently trying my luck in writing a custom component for SmartTags (or rather SmartThings Find in general). Authentication will be an issue though, as there seems to be no easy login automatically (captcha…). Currently I do it by loging in using a browser and copy the JSESSIONID-Cookie to HA. It works but I can’t tell yet how long this token will be valid.
If someone knows of another (more robust) way to authenticate, please let me know.
What works so far is having the SmartTags as device_tracker entities and a button for each SmartTag to let it ring.
Once I have it in a useable state I will publish it here.
Looking forward to your progress! If I can help in any way, feel free to pm me