Enhanced Nissan leaf integration

I wish more data from the battery status response was available in Home Assistant. Look:

pycarwings2 Home Assistant
battery_percent βœ“ nickname Charge
battery_capacity :neutral_face: not available
battery_remaining_amount :neutral_face: not available
cruising_range_ac_off_km βœ“ nickname Range
cruising_range_ac_on_km βœ“ nickname Range (AC)
is_charging βœ“ nickname Charging Status
is_quick_charging :neutral_face: not available (rarely used)
charging_status :neutral_face: not available (somewhat redundant)
is_connected βœ“ nickname Plug Status
is_connected_to_quick_charger :neutral_face: not available (rarely used)
plugin_state :neutral_face: not available (somewhat redundant)
state_of_charge (only on some models) :neutral_face: not available
time_to_full_l2 :sob: not available
time_to_full_l2_6kw :sob: not available
time_to_full_trickle :sob: not available

In special, the time_to_full_* values would be extremely helpful (how many minutes/hours needed until the battery is full), as it aids the end-user in planning the charge. I’d argue these are as relevant as the cruising_range_ac_*_km values.


@filcole worked on the integration that is live in Home Assistant core. Maybe he can give a hand and expose those extra values?

See also this other topic: Nissan Leaf Component(s)/Platform


Unfortunately, it doesn’t seem implemented in pycarwings2.

That is implemented in pycarwings2, so theoretically it could be exposed in Home Assistant.

That is also implemented in pycarwings2, so someone could write code to fetch that data.