-
Notifications
You must be signed in to change notification settings - Fork 18
Warning message done by HA 0.109.x #30
Comments
The underlying Pyze module is fully synchronous, so we'll need to wait until my Asynchronous PR is merged and published before we can implement this inside the hass custom component. |
Hi @epenet, thanks a lot for your integration, it makes me happy every day :) Concerning this issue: it's not a problem using synchronous libraries with Home Assistant, but you have to call the I/O functions by adding an executor job, please see here: https://developers.home-assistant.io/docs/asyncio_working_with_async/#calling-sync-functions-from-async Keep up the good work! |
Hi @DavidMStraub / @oncleben31, Can you update to v3.0.0 and see if that is still an issue? |
Thanks, the config flow works, quite cool! FYI some entries from my log (not sure if there is an actual problem):
|
How does it look after a couple of days? |
(but the state of charge sensor etc. do work) |
Can you get more precise logs regarding the location/gpsLatitude issue? For example with these settings:
|
Not sure what info exactly you need, but a typical API response in the debug log looks like this:
|
There are five different methods to get car information. You have provided a "battery" API response, but there should also be "mileage", "charge_mode", "hvac_status" and "location" API responses. It's the "location" API response that would be required here. Having reviewed the code, it seems that this error occurs when "location" request succeed but doesn't return any information. |
Using
|
If your vehicle doesn't support location and hvac status, then I suggest that you simply deactivate the "Zoe Location" and "Zoe HVAC" entities via "Configuration > Integrations >Renault >Entities" menu of home assistant. |
Is it possible to detect what sensors is available when user is installing the integration ? |
In part, yes: for now, it distinguishes between ZE50 and ZE40, but it doesn't distinguish between ZE50 with GPS, and ZE50 without GPS. |
I'm just starting to try the 3.0.0-rc3. I don't why I'm doing wrong but I don't find the renault integration in the list when I click the + button. |
OK It's it's now in integration list. Need to refresh the browser to have the integration visible in the list. Now I have added the integration but there is no device or entities associated to the added integration. Strange. |
OK during the config flow, I have to serial number at the last step. The first one didn't work and the second correspond to my Zoé. I'm playing with it and update my HA configuration. |
I have this error:
Is it related to 'direct charge' or using schedule ? If yes this is normal. I 've the Life version and I think the option is not compatible with this Zoé version |
Idea for improvement. You can add the following value in the string file to allow translation of the entity
|
_CHARGE_STATE is already implemented in the "Charge State" sensor: https://github.com/epenet/hassRenaultZE/blob/develop/custom_components/renault/sensor.py#L213 _PLUG_STATES is already implemented in the "Plug State" sensor: https://github.com/epenet/hassRenaultZE/blob/develop/custom_components/renault/sensor.py#L190 The binary sensors (Charging and Plugged In) are purposefully "simplified" versions of this. |
Thank you very much for your work on this integration. You are welcomed on HACF network if you want to share the energy, get support and discuss in French ;-) |
I'm not sure to understand you comment. I've seen that you have already implemented sensor to reuse the value. My previous comment was about adding the strings in the translation file to ensure having translated states in the future. |
I see better what you mean - I've opened a separate issue for that. I think we can close this one now... |
OK to close. |
Since the new release of HA we have this warning message:
It seems we need to optimize the code to reduce I/O when not expected.
The text was updated successfully, but these errors were encountered: