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
This may well be user error on my end, but I wanted to double check anyway. For whatever reason (the installers maybe?) my inverter has the wrong date/time set and is out by an hour.
I wanted to have Home Assistant fix this and keep it updated automatically via scripts but I've been unable to. I've tried via both the API and MQTT directly. Here's a sampling of inputs and results:
Setting inverter DateTime failed: (<class 'ValueError'>, ValueError('time data '{"dateTime": "22/07/2024 11:31:14"}' does not match format '%d/%m/%Y %H:%M:%S''), <traceback object at 0x7f8f61ad1680>)
I have checked issues and can't see anything raised similarly. I'm happy to open a PR with a fix but my Python is pretty rusty. Any guidance would be greatly appreciated, even pointing me in the direction of how to set the date and time of the inverter properly.
The text was updated successfully, but these errors were encountered:
This may well be user error on my end, but I wanted to double check anyway. For whatever reason (the installers maybe?) my inverter has the wrong date/time set and is out by an hour.
I wanted to have Home Assistant fix this and keep it updated automatically via scripts but I've been unable to. I've tried via both the API and MQTT directly. Here's a sampling of inputs and results:
via API
{"result": "Setting inverter DateTime failed: (<class 'TypeError'>, TypeError('can only concatenate str (not "datetime.datetime") to str'), <traceback object at 0x7fda5bd85600>)"}
via MQTT
Setting inverter DateTime failed: (<class 'TypeError'>, TypeError('can only concatenate str (not "datetime.datetime") to str'), <traceback object at 0x7fda5bd771c0>)
Setting inverter DateTime failed: (<class 'ValueError'>, ValueError('time data '{"dateTime": "22/07/2024 11:31:14"}' does not match format '%d/%m/%Y %H:%M:%S''), <traceback object at 0x7f8f61ad1680>)
I have checked issues and can't see anything raised similarly. I'm happy to open a PR with a fix but my Python is pretty rusty. Any guidance would be greatly appreciated, even pointing me in the direction of how to set the date and time of the inverter properly.
The text was updated successfully, but these errors were encountered: