pantherale0 / ha-familysafety

Microsoft Family Safety Home Assistant integration
MIT License
5 stars 1 forks source link

Better configuration method #23

Closed bdbull closed 6 months ago

bdbull commented 7 months ago

Checklist

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

I cannot get this integration configured following the existing configuration instructions. I never see a blank page when logging into login.live.com. There has to be a better way to find the token and possibly just manually put it into the integration somewhere.

Describe the solution you'd like

Instructions on a method to get the token and save it into the integration. I never get a blank page when logging in so I have no idea what URL to copy and paste. I've tried the URL that I end up on after logging in but that doesn't work. I've even tried going into Chrome's dev console and copying several URL's from the network tab but none of them work.

Describe alternatives you've considered

I've even tried going into Chrome's dev console and copying several URL's from the network tab but none of them work.

Additional context

Just an easier way to configure this would be great.

pantherale0 commented 7 months ago

Hi @bdbull

There isn't really a better way to setup the integration.

It uses unofficial and undocumented API endpoints so no way to improve the login flow, the current URL is based on what the app generates so I'll check if Microsoft has changed it.

bdbull commented 7 months ago

I'm an idiot. I figured it out. I was actually typing in "login.live.com" instead of copying the url of the link you have in the readme. I only figured it out by seeing the longer url in the readme of your pyfamilysafety repo that shows the entire url.

pantherale0 commented 7 months ago

Ahh fair play, I'll keep this open and see if I can implement something like I did in to improve login a little bit. Won't be perfect but should be better than it currently is.

https://github.com/pantherale0/ha-nintendoparentalcontrols/commit/1dc7c9780490786ec2e61fb0c9a399dac9b2b3cb

bdbull commented 7 months ago

Actually I think it's fine if you just change the documentation so morons like me don't screw it up. :)