I’m fighting with this more then week. Initially I thought it was Google Calendar. Then WU with lang option. But now I can’t say why my logbook not updating. It can show entities for half of a day and then stop update. Rebooting OS, restarting HA, clearing cache nothing helps. But if you switch back to sql lite it start showing. It makes me feel like logbook sql query not matching conditions or even not executed.
For me it seems that sql client can’t process non English characters. After upgrade to 0.38.1 I had a lot of errors in the log with can’t insert some values to db. This was exactly non English characters. I’ve checked db. Character set was UTF8 and collation was latin1. It brings me idea that mysql can’t convert charset in proper way. I change global server parameters to UTF8 and collation to utf8_unicode. I’ve also set parameters for connection in same way. Now I have clear log and my logbook updating.
I doubt that I have any non English characters in my friendly names. I do have one or two non UTF8 instances, but I have them set up with the proper UTF8 escape sequences otherwise HA wouldn’t load at all.
But this is something that I’ll have to look into further. I’ll need to set up phpMySQL first but thanks for this idea!
All settings can be done via command line. To keep settings permanently you’ll need to add some lines in my.cfn.
Maybe several convertations brings some issues (front-end, sql client, server connection, db collation). I’m not mysql expert.
Yeah, me either. I know my way around phpMySQL from my web dev days, so I think I would be more comfortable running in that environment. Would give me a chance to do maintenance as well.
I’ve already tried this option (using charset setting in connection string). It also brings errors for me. The problem is that server also tries to convert charset according to its global settings. By default it’s uft8 and collation latin1. For you it could work cause you are using only English characters. I have 3 template sensors with Russian character. I had to recreate db with unicode collation and config server parameters to use UTF8 and unicode collation on server level, db level and connection level.
Hi there!
I have same trouble with history after 0.38.1 upgrade.
It works ok before update with MySQL and russian characters.
I have no options with charsets in my.cnf and database charset is ‘utf8’.
And now I think that the trouble is in frontend, because I have records in database for past 7 days (like I set in config), but history is showing up just present day.