kevinVl / NissanConnect-HomeAssistant

19 stars 1 forks source link

Battery status for Nissan Leaf ZE1 is broken #11

Open lordrobert01 opened 4 weeks ago

lordrobert01 commented 4 weeks ago

Hi, I just configured the NissanConnect NodeRed flows. It seems everything works fine, but the main reason, why it is interresting for me is not working. It is the battery status. It tells:

status: "Not Implemented" code: "501" title: "Not supported Feature" detail: "This feature is not technically supported by this gateway"

Could you please help me what is wrong with battery status. BatteryStatusIssue

lordrobert01 commented 2 weeks ago

I think, I found the issue. At least, it works for me:

line 466 in NissanConnectFlow-HA-NodeRed.json uses incorrectly 'url' : conf.car_adapter_base_url + 'v2/cars/' + vin + '/battery-status'. But it leads to the above mentioned issue. If it uses v1 instead, then it works perfectly fine. Note: this is the only place, where I found refference to v2.