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

Issues converting date and time, this may be causing problems with updating entity status #112

Open
Majestic7979 opened this issue Nov 22, 2024 · 3 comments

Comments

@Majestic7979
Copy link

This error originated from a custom integration.

Logger: custom_components.dirigera_platform
Source: custom_components/dirigera_platform/hub_event_listener.py:276
integration: IKEA Dirigera Hub Integration (documentation, issues)
First occurred: 1:56:13 AM (68 occurrences)
Last logged: 2:01:21 AM

Failed to convert 2024-11-22T02:01:13.000Z to date/time...
Failed to convert 2024-11-22T02:01:14.000Z to date/time...
Failed to convert 2024-11-22T02:01:23.000Z to date/time...
Failed to convert 2024-11-22T02:01:24.000Z to date/time...
Failed to convert 2024-11-22T02:01:25.000Z to date/time...

This was in my system logs in HA.

I am finding that FYRTUR is not updating it's open/close percentages so some automations aren't working - for instance sync curtains using a Zwave motor to the same percentage of the roller blinds.

The button to move the blinds UP in the HA UI is therefore not available (greyed out) because it thinks the roller blinds are always all the way up when they're in fact halfway. This is a real issue, makes the blinds uncontrollable.

It works fine in the Home Smart app.

I'd personally be super grateful for a fast fix if you know what's causing the issue and you're able to push an update, thanks so much for your work on this integration nonetheless, it's highly useful and with improvements can be even more so! Reliability is a pain point with zigbee, so your effort is recognized!

@tufo09
Copy link

tufo09 commented Dec 4, 2024

I have the same problem, i also get an error that it is not able to convert xy to date/time...
Id also be really grateful for a quick fix.

@JoeSzymkowicz
Copy link

The issue seems to lie in line 273 of hub_event_listener. It's calling 'datetime.datetime.strptime' instead of 'datetime.strptime'. After fixing this, it then throws more errors about missing timezone information, that I'm looking into now. The issue seems to solely be related to Commit 588be48.

@JoeSzymkowicz
Copy link

From what I can tell, after you fix the issue above, total_energy_consumed_last_updated attribute is missing tzinfo when setting entity state, unlike the other attributes. I'm fairly new to HA, so I will read up on the entity docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants