Closed SteveDinn closed 5 years ago
+1 Experiencing this as well.
+1 Experiencing this as well.
+1 Experiencing this as well - This issue doesn't seem to be localised to HomeAssistant. I have created a pipenv and experience the same error when executing a service call
This is part of the wackamole game and it really is not fun. I invested some time looking into a solution to interactively log in the service and retrieve the cookies and then provide the cookies to the library. I will try to find that piece of code and report here until next weekend. Until then just copy over your cookies from a browser session as described in https://github.com/costastf/locationsharinglib/issues/50#issuecomment-448939141
I will not be trying to fix this issue in the current code base. Please use the above mentioned work around and be a bit patient until I find some time to build a tool to help with that process.
Thanks for spending your time doing this. Just wanted to let you know that your work is appreciated! It helps make sure my porch lights are on when I come home at night :)
Oh, and if it matters, I'm in Canada, so I guess this issue just started for us.
Thanks a lot for letting me know, it really helps! I will try my best to sort this out as soon as possible.
I have removed the authentication part from locationsharinglib and uploaded version 4 with those changes. I have made a proof of concept project that drives a browser via selenium and saves the cookies in a compatible with locationsharinglib format. If anyone wants to try out the POC and very crud version because they are feeling adventurous you can follow the documentation at the end of the page https://github.com/costastf/mapscookiegettercli/blob/initial-usability/USAGE.rst . This is heavily a work in progress and only works for chrome currently, tested only on Mac (but i guess linux should also work) so please do not start creating issues just yet, unless you also want to contribute. I am planing to clean it up and and make it nicer during the upcoming weekends. I am hoping to have a somewhat properly working version out after the coming weekend supporting chrome for all latest version of Mac, Linux and Windows. Of course if anyone is interested in helping out, all help is welcome!
Sometime in the last few days, it seems like something has changed on Google's end that prevents locationsharinglib from successfully authenticating. I'm using the locationsharinglib 3.0.11 with the following small shell script to refresh my cookie file:
It also fails in the exactly the same manner from Home Assistant 0.87.1. All was working last week, the last time I restarted HA.
I don't want to post all the response, because it contains personal identifying information, but the response contains "type: FIRST_AUTH_FACTOR" (I only have single-factor authentication), and "INCORRECT_ANSWER_ENTERED". I'm sure I have the correct password. I'm able to login successfully via a browser. If any other parts of the response are pertinent, I can provide them.