robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
306 stars 59 forks source link

[FR] Manually request car report #486

Closed Sobuno closed 7 months ago

Sobuno commented 1 year ago

Is your feature request related to a problem? Please describe.

I own a Multivan PHEV and have made some automations in Home Assistant to ensure charging happens at the cheapest time at night. Lately it seems my car has started to go into a deep sleep when not in use for a while. This means when I authorize my Easse charger to start charging the car, the car never picks up on it, resulting in no charge. If I go into the WeConnect app and force an update from the car, the car does start charging however - This is not feasible to do in the middle of the night though.

Describe the solution you'd like

Expose the option to request a report from the car as a service in Home Asssistant. I can then make some kind of automation in Home Assistant to force the car out of the (charging port's) deep sleep.

Describe alternatives you've considered

I am not sure if sending a command such as setting the max charging rate would have the same effect.

Additional context

Sobuno commented 1 year ago

If it is already possible, can someone provide guidance on how to do this?

andlo commented 1 year ago

I would think the Force data refresh is a call to force the refresh of the data from the car.

Be were that (in my e-up) there is only 15 calls to wake up the car until ignition has to be turned on again.

image

Sobuno commented 1 year ago

When I try using that switch (which I completely missed before, thanks), the log outputs this warning message: "Unable to find referenced entities switch.multivan_force_data_refresh or it is/they are currently not available"

The entity ID of that switch is _switch.multivan_force_datarefresh

andlo commented 1 year ago

Hmmm i think that ocours for me if there isn't any calls left. As I wrote I only have 15 refress calls