Skip to content
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

startTime date conversion error Domoticz NL #213

Open
Andreotti100 opened this issue Nov 22, 2024 · 0 comments
Open

startTime date conversion error Domoticz NL #213

Andreotti100 opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Andreotti100
Copy link

I use this API to get my battery status and range from my VW ID.3.

The time set fails when I call this from Domoticz with NL region settings.
So, I had to disable some code to get it working:

def update(self, fromDict):  # noqa: C901
    LOG.debug('Update recurring timer from dict')

    # this fails in my Domoticz plugin:
    # --------------------------------->
    # if 'startTime' in fromDict:
    #     self.startTime.setValueWithCarTime(datetime.strptime(f'{fromDict["startTime"]}+00:00', '%H:%M%z'),
    #                                        lastUpdateFromCar=None, fromServer=True)
    # else:
    #     self.startTime.enabled = False
    # 
    # if 'targetTime' in fromDict:
    #     self.targetTime.setValueWithCarTime(datetime.strptime(f'{fromDict["targetTime"]}+00:00', '%H:%M%z'),
    #                                         lastUpdateFromCar=None, fromServer=True)
    # else:
    #     self.targetTime.enabled = False
    # <---
    # No need for time in Domoticz:
    self.startTime.enabled = False
@Andreotti100 Andreotti100 added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants