Two days after posting this I lost my phone!!
Ironically, none of the tracking software helped me locate it so im just waiting on a replacement phone to be delivered before I resume!!!
Ow, that’s a bummer
Probably they resettled the phone
Do we really need a seperate windows box to get this cookie and keep it up to date? Can’t believe. Is there any other way to keep these tasks within home assistant or an addon?
This did not solve it either. My issue is that
when I try to grab the cookie using maps-cookie-getter
, Google throws a security error because of the selenium automation to complete the login from a browser. Apparently using automated login is a security risk for Google now
The Google error is:
You are trying to sign in from a browser or app that doesn’t allow us to keep your account secure.
Try using a different browser.
Yes, I got the same error just now, with Chrome/selenium under Windows. There is a warning on the Github page now too: https://github.com/costastf/mapscookiegettercli
- POSSIBLY DEPRECATED SINCE THERE ARE REPORTS OF GOOGLE BLOCKING THIS. SEE #1
So no cookies for me
Please look at my latest comment in Google Maps Location Sharing - cookie problem starting 0.97.2
I was trying to do this from an ubuntu live USB and had the same issue. It wasn’t until I came across @clabos detailed guide did this work. I think this needs to be added to the docs as the brief instruction on there is no help at all.
I am afraid that the tool is deprecated since there are reports of google blocking it. I have refactored locationsharinglib to accept text cookies exported by a browser extension and that version will be in the next HA release with the appropriate documentation update.
I saw those posts but mine seemed to work just fine so far. Obviously if it’s all going to change again then there’s no point updating the docs. Thanks for your work on this anyway
0.99 broken again. Which url we suppose to extract the cookies.txt.
Using Chrome
I navigate to Google Maps then export the cookie.
To download cookies for this tab click here
Download the file cookie.txt. This seems to be invalid
2019-09-20 03:02:01 ERROR (SyncWorker_0) [homeassistant.components.google_maps.device_tracker] The cookie file provided does not provide a valid session. Please create another one and try again.
I am go back to custom_component using 0.98.5 google maps and old cookie still works.
Which version of locationsharinglib are you running?
locationsharinglib==4.1.0
Fresh from home-assistant 0.99
On this page, is STEP 2 correct ? what url to use when export the cookie file ?
I notice google asking for captcha… Probably not issue on ur locationlib.
By the way what is the correct url to export the cookie file?
The version is the latest so that is correct. You need to be logged in your maps account with the credentials of the account where all others are shared. I suggest you visit maps.google.com and login from there with your sharing account credentials and expiry the cookies after the page has finished loading.
I’ve generated a cookie file as per the instructions and I’m also receiving the same error:-
2019-09-19 22:29:28 ERROR (SyncWorker_15) [homeassistant.components.google_maps.device_tracker] The cookie file provided does not provide a valid session. Please create another one and try again.
2019-09-19 22:29:28 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy`
Tried generating with both Firefox and Chrome and I get the same error? Any advice?
It’s working perfectly over here on 0.99.
I’ve tried on Firefox and Chrome, Chromium under Win10 and Ubuntu without any succes.
The old cookie was a binary file but the new One is downloaded as a text file. Is it right?
Are you using HASSIO?
Correct. I wasn’t convinced it was going to work when I first did it but it was fine first time!
Yes… now the cookie is a txt file