Giter VIP home page Giter VIP logo

Comments (12)

chansearrington avatar chansearrington commented on August 15, 2024 1

I think I'm having this same problem when trying to use Nabu Casa remote to do this.

The redirect URL works, but the application isn't routing to the correct URL.

Going to https://[unid].ui.nabu.casa/api/o365 results in a webpage that says, "Success! This window can be closed"

But! :-)

When I right click on the url from the notification I can see that it's trying to use my local ip address. (see below)

Might be cool to allow the URL to be configured by the user OR automatically pull the Nabu Casa URL from HA (not sure if you can do this.

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&client_id=1f911a16-68b2-44dd-9a1e-cdcb91e21c34&redirect_uri=http%3A%2F%2F192.168.1.42%3A8123%2Fapi%2Fo365&scope=offline_access+User.Read+Calendars.Read+Calendars.Read.Shared&state=3ygbsInfLtmopGRnj7OVb8jXeyRPq0&access_type=offline

from o365-homeassistant.

PTST avatar PTST commented on August 15, 2024 1

Chanse I could kiss you right now 😗

I would never have thought that this was the issue but of course

This is because you need to set your base url in you configuration.yaml

https://www.home-assistant.io/integrations/http/#base_url

Without that set home assistant just assumes that it is being accessed through the local ip

from o365-homeassistant.

github-actions avatar github-actions commented on August 15, 2024

Thank you for posting an issue, please make sure to note the following
Installation method: (HACS|Manual)
Any logs provided by home assistant if applicable

from o365-homeassistant.

PTST avatar PTST commented on August 15, 2024

can you please right click on the "Link O365 account" and click copy link address and provide me with that?

Is your home assistant instance available outside of your local network? The redirect url you have provided is a local ip and i do not know if this will work. But in any case it seems that you are missing the home assistant port in your redirect URI, if you have not changed it, then is should probably be

http://192.168.154.178:8123/api/o365

Note the :8123 in the new url

from o365-homeassistant.

PTST avatar PTST commented on August 15, 2024

Hello

I have just pushed V1.1 https://github.com/PTST/O365Calendar-HomeAssistant/releases/tag/v1.1

In this i have enabled an alternative auth flow that you can try https://github.com/PTST/O365Calendar-HomeAssistant/#alt-auth-flow

from o365-homeassistant.

PTST avatar PTST commented on August 15, 2024

@plexat i assume that your install is working as well, if not please just reopen this issue

from o365-homeassistant.

plexat avatar plexat commented on August 15, 2024

from o365-homeassistant.

PTST avatar PTST commented on August 15, 2024

The alternative authentication method should work without external access

from o365-homeassistant.

chansearrington avatar chansearrington commented on August 15, 2024

Worked for me.

from o365-homeassistant.

plexat avatar plexat commented on August 15, 2024

from o365-homeassistant.

plexat avatar plexat commented on August 15, 2024

Hi Patrick,
I could authorize but still got a message false in the entity box.
Capture

from o365-homeassistant.

PTST avatar PTST commented on August 15, 2024

The sensor state is always just True/False, that just indicates whether you have an active event in you calendar right now.

You need to look at the sensor attributes to actually get the event info.

from o365-homeassistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.