I would love to try this, but I am too new to understand this 100%.
How does “sensor.leaf_updating” figure into this? Is that based on a sensor-template, or is that what you set when you manually or by automation check for update?
Hello all.
I’m owing a 2019 Nissan Leaf and as a noob, I tried to follow all thoses config files but without succes. Are those files ok for my 2019 car ?
I allready put the files in “custom-components/nissan-leaf”, copy the script, include the sensor and nissan_leaf in config yaml but… no success.
Someone could write a step by step how to in order to point my mistake ?
I do have this running as a custom component which ‘works’ however it has an OAUTH timeout issue which I cannot quite figure out as not able to tell if it’s using the built-in HASS OAUTH schema and how to have it automatically renew. My Python skills are far too basic to adapt this, but all the hard work of the extracting data from the API to HASS is done.
How did you actually set this up in HA? The installation of the custom component I’m onboard with, but what config are you using to provide user-name and password?
Having this “working”, there aren’t many sensors that gives data. Battery level is probably the one I’m missing most, but also a switch for remote start to climate would be great.
But this is a great start, I wish I had some better coding skills myself so that I could continue the development since the original developer seems to have stopped working on this.
Same here - I spent lastnight looking through other components to see how they have implemented OAuth so I could reuse anything they have done but it’s likely my lack of understanding that’s failing me more.
Sensors should not be too hard to add, but really the token refresh needs to be fixed first before it can develop further. I have been looking to see if there is somewhere I can ask for help…
Can’t make a charge button working. Here is the code:
type: button
tap_action:
action: call-service
service: nissan_leaf.start_charge
data:
vin: SJNFAAZE0*********
hold_action:
action: none
show_state: true
name: START_CHARGE
show_icon: true
It is returning “Failed to call service nissan_leaf/start_charge. required key not provided @ data[‘vin’]” on trigger.
Another thing - can’t get this part of configuration to work:
update_interval:
hours: 1
update_interval_charging:
minutes: 15
update_interval_climate:
minutes: 5
force_miles: true
System not parsing it:
Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/configuration.yaml”, line 3, column 1
expected , but found ‘’
in “/config/configuration.yaml”, line 18, column 3
Without this part everything seems to work just fine. What am I missing here?
Thanks, will try it out, yes Leaf is 2014.
I have another issue status is no longer updating at all, the only way to get it updated is to restart HA. I think this component is no longer functional.
Sometimes getting this:
return CarwingsLatestBatteryStatusResponse(response)
File “/usr/local/lib/python3.8/site-packages/pycarwings2/responses.py”, line 627, in init
bs = recs[“BatteryStatus”]
TypeError: list indices must be integers or slices, not str
But most of the time it is just not updating.
And now it stopped working completely:
2020-09-25 11:31:58 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
Take a look at this post, it seems that HA doesn’t get the info every time, first time. The post describes how to add a second ‘poll’ for data, I’ve been using it for about a year and I have NO issues.