the vehicle is indicated as plugged in while the cable is not connected (I had this problem with my V2G integration and Claude fixed it:
The Home Assistant integration has just added the states « cable plugged in » and « vehicle connected » read from other addresses of the terminal. I am consulting the source code to retrieve the exact names.
I discovered that the integration v1.5.0 exposes the reliable pilot signal (A/B/C/D) via /status/chargingmodule and /status/custominfo, unlike the old indicator which remained stuck on « connected » and caused the false « plugged in ». I will use these new addresses to correct the state detection.
The new signal « car plugged in » is in place.
What is the difference between « Charge: Plugged in » and « Charge status: vehicle connected »?
It would be better to have the same info, I think.
Having other information, by day, by week, by month…
the duration of each charge,
the range recovered
the range recovered/charge duration ratio
the electrical consumption of the charge
the cost per 100km
…
But perhaps all this information is already in the integration with the OCPP protocol.
Perhaps I could also add them to the V2G integration?
« Connected » while the cable is unplugged. The integration displays what the car last sent to the MY Renault cloud, and never wakes it up (to avoid draining the 12 V battery or exceeding Renault’s call quota). If the car hasn’t sent anything since being unplugged, the info remains « connected » until its next transmission. To find out where this comes from, two questions:
at the same time, what does the MY Renault app say?
what time does the « Last reading » line of the widget display?
And what model do you have? If the app says « unplugged » and Gladys « connected » with a recent reading, it’s a bug on my end and I’ll fix it.
« Charge: Connected » and « Charge status: vehicle connected ». Both come from the same car info, so they always agree. « Connected » simply answers yes or no. « Charge status » is more detailed: charging, paused, connected without charging, idle. Keep the one you prefer on your dashboard.
Statistics per charge (duration, recovered range, energy, cost…). Good idea, I’ll note it. The Renault cloud has a charging history, but not for all models: I’ll see what it provides. For energy and cost, the charging station is best placed since it measures them: it’s a very good idea to add them to your V2G integration. Gladys’ graphs will then show them by day, week, or month.
Thanks for checking @gaetanb76! If the app says the same thing, it’s Renault’s data: Gladys will update as soon as your R4 sends its status to the cloud (usually at startup, or at the next connection). I’ll leave it as is. And I’ll keep you posted on the charging statistics
We have two Renault cars, one linked to my account and the other to my partner’s.
I don’t think it’s possible to use two accounts in the integration.
I don’t want to connect the second car to my account because otherwise my partner loses the data and the vehicle’s location.
Even if we set up two profiles on the car, only one Renault account can be used.
It would be a great improvement for the integration.
Actually, the second car is a non-rechargeable hybrid. The onboard computer displays the kilometers traveled in electric mode on the tablet. I don’t know if the API returns this data.
@gaetanb76 good idea, noted: being able to add a second Renault account in the integration, to track your two cars without changing anything on the app side. For the km traveled in electric mode of the hybrid, I’ll check what the Renault API returns at that time. I’ll let you know here when it’s ready.
@guim31 Do you think we can associate an account with a given user?
I’m asking because I think if it’s possible, other integrations could benefit from it.
@mutmut great question! Today, the external integration contract only offers user-specific settings for calendars („My Calendars“) and contact profiles. For the rest, the configuration is shared across the entire instance. For Renault, I will therefore rather allow multiple accounts in the same configuration. A true „account per user“ for any integration would require a core evolution: to be discussed with @pierre-gilles if he is interested.