-
Notifications
You must be signed in to change notification settings - Fork 19
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
Parsing error using INSPELNING smart plug #137
Comments
i'm not absolutely sure, but I think this is causing a lot of error messages such as:
I have ~30k such occurrences after the last restart a couple of hours ago. |
Indeed there is a PR waiting for this repo containing the fix, but the repo maintainer isn't available I guess ... |
Same at my installation, with 44 such events in 10 minutes:
The helper error also occurs. I tried with disabling |
BTW: Is it a data retrieving failure, as Inspelning results in 0 (zero) watts, when it is plugged as an input measurement at a mini pv panel? That said, does it not display negative values or does the plug not provide negative values? Amp values are shown, anyway. |
I have the same problem and it started after i integrated "INSPELNING" in my IKEA setup. I could (with some AI use) solve my problems by changeing how hub_event_listener.py handels datetime zones. I changed all use of datetime.strptime() to dateutil.parser.isoparse() to better handle ISO date formats (%Y-%m-%dT%H:%M:%S.%fZ) I unfortunately do not know how to work with GitHub to make this a PR but feel free if anyone likes the solution and knows how to do. import threading from homeassistant.const import ATTR_ENTITY_ID logger = logging.getLogger("custom_components.dirigera_platform") process_events_from = { controller_trigger_last_time_map = {} def to_snake_case(name: str) -> str: class registry_entry:
class hub_event_listener(threading.Thread):
|
Hello,
Just wanted to let you know something that could be fixed :)
I just bought an INSPELNING plug from Ikea.
I see in the logs some parsing errors of dates :)
Here is the log :
Cette erreur provient d'une intégration personnalisée
Enregistreur: custom_components.dirigera_platform
Source: custom_components/dirigera_platform/hub_event_listener.py:276
intégration: IKEA Dirigera Hub Integration (documentation, problèmes)
S'est produit pour la première fois: 20:34:52 (7 occurrences)
Dernier enregistrement: 20:40:51
Failed to convert 2025-02-24T19:36:51.000Z to date/time...
Failed to convert 2025-02-24T19:37:51.000Z to date/time...
Failed to convert 2025-02-24T19:38:51.000Z to date/time...
Failed to convert 2025-02-24T19:39:51.000Z to date/time...
Failed to convert 2025-02-24T19:40:51.000Z to date/time...
Just to let you know, doesn't prevent me from using the plug, but it pops some errors :)
Thanks in advance,
KR,
The text was updated successfully, but these errors were encountered: