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.
It should be in the sensor.yaml file I think, and the CHANGEME should be whatever your vehicle sensor is called.
Hope that helps.
Also if you are posting code, please use the 3 backticks method. Section 11
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.
This is a standard response, it actually means it’s working.
This is done with a script using Tobias Kjeldsen’s dartnissanconnect Dart library (the basis for the MyLeaf phone app) sending info over MQTT from a Docker container, then mqtt sensors in HA to pick up the data. Works for me, not yet suitable for sharing but I’ll put an update up when I have something a bit less clunky and heavyweight — this is my first time using both Dart and Docker!
Ideal future state is to hack my Pod Point with an ESP device to be able to start and stop charge, and then do things like control charge to a set percentage (80/90/100% as needed) aligned to the cheapest times on my Octopus Agile tariff without having to set the car charge timers.
I take it this is down again, if so at least I’ll know its not me ? I tried setting this up tonight but keep getting the following error:
2020-11-11 20:55:44 DEBUG (SyncWorker_10) [homeassistant.components.nissan_leaf] Logging into You+Nissan…
2020-11-11 20:55:48 ERROR (SyncWorker_10) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class ‘pycarwings2.pycarwings2.CarwingsError’>