home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.26k stars 29.85k forks source link

"Work location" showing as an all-day event in Google Calendar #125329

Open alitheg opened 1 week ago

alitheg commented 1 week ago

The problem

I've just started trying to send calendar state to an LLM and have found that my "work location" field as set in my work calendar is coming through as an all-day event, so I get this:

Screenshot 2024-09-05 at 11 38 25

I tried Googling it and found people discussing a desire to expose this information to HA in the past, but nothing about it being done or how to not show it as an event!

What version of Home Assistant Core has the issue?

core-2024.9.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google

Diagnostics information

config_entry-google-d2f58c44e37158dcfcd8c5168911f479.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 week ago

Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration (google) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google documentation google source (message by IssueLinks)

allenporter commented 1 week ago

I worried this might happen. I don't currently have a home assistant account using this feature so its a little difficult to test.

I suspect that (1) many users would like to use working location to drive automation however (2) many users don't want it showing up at all and (3) I don't want to expose lots of google calendar configuration options and want it to find a solution where it will "just work" for everyone.

Here's my best idea:

alitheg commented 1 week ago

The extra sensor makes the most sense to me - personally, I'd prefer not to have it show up on the calendar view but equally doesn't make a big difference there, it is mainly the "next" function since that's the attribute I can get access to without having called the get_events action. If I get some time I can take a look into it but I'd hesitate to volunteer to fix it as I don't know if I'll get time or not!

allenporter commented 1 week ago

Another idea could be a disabled by default working location calendar. That might solve everyone's problems.