dan-r / HomeAssistant-NissanConnect

Unofficial Home Assistant integration for interacting with Nissan Connect vehicles 🚗
Apache License 2.0
26 stars 6 forks source link

Ariya range missing, or doesn't update #25

Open celodnb opened 1 month ago

celodnb commented 1 month ago

Firstly, just wanted to say thanks for making this an integration! I've been using the Node-Red hack method of getting the information into HA for months, so having this is much easier :-)

However, one thing i'm missing from the Node-Red method is the current range of the car (Nissan Ariya). I can see that there are two entities exposed by this integration (Range AC off and Range AC on), but they don't seem to update, just show as unknown.

Are these two range entities available for the Ariya? If not, is it possible to expose the range?

dan-r commented 1 month ago

The Ariya seems to expose certain values (like these) on a different API endpoint to other cars (especially the Leaf). If you can provide the API endpoint that exposes this for the Ariya and the format of this data, I can try to implement it? If sharing on here remember to obfuscate any personal data.

celodnb commented 1 month ago

Hi Dan, thanks for getting back to me. I'll be honest, I've got no idea how to find such an API endpoint. I can only say that it worked as part of the Node-Red set up I was previously using, which can be found here.

https://github.com/kevinVl/NissanConnect-HomeAssistant

But of course I'll gladly help provide any info I can, I just don't know where to look (consider me a beginner).

celodnb commented 1 month ago

Hi Dan, is it possible you could point to a resource, or give me an idea as to how I can find the API endpoints you require? I'm more than happy to help, I just don't know where to look. Thanks 👍

dan-r commented 1 month ago

@celodnb apologies for not getting back sooner. If you're using the node-red flows, the URL that you are fetching from is the endpoint. Might be worth playing around with those flows and seeing what gives you the right info?