You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After encountering the bug mentioned in issue 318 (inverter seemed to set month number to 13 overnight!) I thought I'd add a home assistant automation to set the date and time nightly, by publishing e.g.:
Unfortunately, this fails because write.py's setDateTime function tries to do:
logger.info("Setting inverter time to: "+iDateTime)
where iDateTime is a datetime object. This results in an error about concatenating a string and a datetime object.
The fix would seem to be using str(iDateTime) or similar.
I've been unable to test a fix, though, because I just don't understand docker and Home Assistant well enough. There are so many overlay filesystems lying around and I can't find the base copy of write.py to edit such that the edit survives the addon restart.
The text was updated successfully, but these errors were encountered:
After encountering the bug mentioned in issue 318 (inverter seemed to set month number to 13 overnight!) I thought I'd add a home assistant automation to set the date and time nightly, by publishing e.g.:
Unfortunately, this fails because write.py's setDateTime function tries to do:
where iDateTime is a datetime object. This results in an error about concatenating a string and a datetime object.
The fix would seem to be using str(iDateTime) or similar.
I've been unable to test a fix, though, because I just don't understand docker and Home Assistant well enough. There are so many overlay filesystems lying around and I can't find the base copy of write.py to edit such that the edit survives the addon restart.
The text was updated successfully, but these errors were encountered: