Every couple days my Google Calendar integration stops working. I delete the .google.token file, reboot HA, re-enter the code at google site when prompted and it works. Couple days later - same thing.
Is this normal behavior? Anything I can do to keep the authorization working longer?
The trailing stuff changes over time - I had to adapt my shell_command multiple times. At the moment I have this:
google_token: >-
sed -i -e 's/odule": "oauth2client.client"}odule": "oauth2client.client"}/odule": "oauth2client.client"}/g' /config/.google.token &
sed -i -e 's/ule": "oauth2client.client"}ule": "oauth2client.client"}/ule": "oauth2client.client"}/g' /config/.google.token
Meanwhile I run that command every minute, because the error happened more often during the day. As I’m using HA on an Intel NUC, running the script often is not a performance issue for me - but still silly, of course…
[nicohirsch]
Please, can you share exactly how to implement this automation with the script?, and screen caputre for example to show how to implement?.
So if the error happens before the shell command fires, you cannot fix it or are you running it so often, just to be sure you never expereience the error?
@Martin_Pejstrup I have a wall dashboard with mutiple Google calendars in nearly every room - maybe because of the many calendar requests the error happened very often. That’s why I fire it so often - since then I never had an error showing on my dashboards.