-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Calendar no longer changing state at start of events #100575
Comments
Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) google documentation |
@joewesch thank you for the report. Would you be look up the calendar state in Developer Tools? I'm interested in looking at the start/end time for the events. |
As an additional update, I also realized finally that there was a Calendar trigger and I have changed all of my automations to use that instead of State triggers. As I said, I created these automations a long time ago so I was unaware of the new triggers and they have been working just fine with the state changes up until now. We can keep this issue open if you'd like if the change to the state was unintentional and should still be corrected. |
Yeah, the state should still work so this looks like a bug. (My impression is the screenshot you have is for the calendar state and not the automation state, so it should keep working.) There was a change related to this logic in #98037 meant to fix a variety of other calendar issues, so definitely i want to understand this more. I have a google calendar with a single event like this and am not seeing this same issue. Would you also be able to capture the state when the calendar is off some time before it goes on? I notice that the calendar is going |
Yes, I did see that PR while researching to see if this was a known issue. Do you know when that will be released? I can surely test it. Here is a screenshot of their current state: Yes, I noticed the
|
Another thing I tried was deleting the repeating event and recreating it thinking that I had hit the limit of 730 occurrences, but there was no change. |
My impression is that PR is in I noticed before you were capturing the logs with debug on which is really helpful. Would you be able to keep that running for longer and we can see what it looks like after 24 hours? I worry otherwise I may need to add additional logging or diagnostics in able to track this down. I appreciate all the attempts to diagnose the problem, but this definitely just looks like a home assistant bug in calendar so no need to attempt to do any more things like deleting events, deleting the integration, reloading, etc. |
Thanks for the info and assist. I'll turn debug logging back on and report back tomorrow. |
Ok so the one that was broken before is now working, and the other ones saw an issue? (But didn't go unavailable) The fact that the data looks succeeded is actually helpful for understanding what is and isn't working, thank you. |
Are these all dedicated calendars in Google calendars or using the .yaml file for search? The implementation of these is a little different. |
I have a similar thing.. I have, as example, an automation to close the covers at 18:30 (the event covers from 18:30 until 19:00 - so 30 minutes). These always triggered on time, at the start. Now, they trigger seemingly randomly. Eg. at 18:43. Very strange! |
I have something similar that stoped working on latest update, but with attribute offset_reached which is reached at the time of the event and not at the time of the offset I have a sunrise automation in node-red that is triggered with an offset to the calendar event. But to me it sounds like this is the same issue. The question is if this really is related to calendar or to general attribute templating for reference my template sensor config:
and calendar config
|
This morning, my automations seemed to trigger when they should trigger. Maybe this was something at Google instead? |
@joewesch Aside: be careful with your example since its using a calendar trigger, but reading the event entity state. Check out https://www.home-assistant.io/integrations/calendar/#automation-recipes for examples of using trigger data instead of reading the calendar entity state. This is not related to the issue described here, but I am just mentioning it as a tangential issue for the automation you're using to be more technically correct -- it would only matter in practice if there are multiple events at the same time. It sounds like it would coincidentally workaround the bug we're seeing here, however, but still want to fix the main issue here. Back to the issue at hand here, my current thought is I may need to add additional logging to uncover what is happening in your case related to #98037 Others: If you are reporting an issue here, it would be helpful to focus on the calendar entity state transitions on/off and relevant debug logs (any downstream automation/template aspects of this are higher level, so we need to ignore those and go deeper into the entity state in the developer tools as some of the discussions above). Thanks! I'll consider some additional debug logging. |
I was having the same "bug". All my automations based on calendar sometimes stop working. I was trying to understand why then after reboot home assistant I found this on my log. Then I disabled the automation and enable it again. After I did this it started to working again. |
@thiagopbarnabe Can you please file a separate issue report? Seems like a valid issue to track, though its not on topic here. I believe the original issue being discussed here has been resovled by the same issue tackled in #101431 being fixed. @joewesch can you confirm if things look better after 2023.11? |
I'm running 10.5 and it still isn't working |
@benganellison correct, 2023.11.X includes the fix i referenced |
Thanks for the update, Allen. I am not at home currently, so I will set a reminder to upgrade and test in a couple weeks. I will provide an update afterward. |
Will update as soon as I get home and test 😁 |
Can we tackle offset reached issue in a separate issue report? This is only supported in yaml given event triggers, and isn't the main topic here I believe, and so I don't want to lose track of that. |
The problem
I have a few automations that use the Google Calendar integration as triggers. Recently I upgraded from 2023.8.4 to 2023.9.2 and now the state of my events are staying as
off
despite the time being correct for them to be on.For example, I have an event every evening from 9:00pm-9:05pm to run the script to turn on the A/C in my bedroom. I watched my clock tick over and the event stayed in the
off
state. I then reloaded the integration at about 9:03pm and the state finally changed toon
. You can see the events from the past 2 nights in this screenshot of the logbook:I set these up a long time ago, so I thought maybe I would need to update the auth or something, so I did that next. I deleted the integration completely and went through the setup again to make sure it could auth correctly. I then watched the exact same thing happen to another one of my calendar triggers for my hue lights that was supposed to trigger at 9:40pm. I turned on debug logging for the integration and restarted it shortly after 9:40 and will share the logs below. You can see in the log output that after I reloaded the integration the automation finally kicked off and in the UI the state was finally set to
on
.What version of Home Assistant Core has the issue?
core-2023.9.2
What was the last working version of Home Assistant Core?
core-2023.8.4
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Google Calendar
Link to integration documentation on our website
https://www.home-assistant.io/integrations/google/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: