If you know someone that can help fixing that please tell me.
I can help but I cannot do it myself alone unfortunately.
Is asking to much to you to open this “issue” on the HA development if some one are able to help fixing this?
I can try to do that but for sure you have a lot more good inputs to add on it.
Just updated to 2021.4.3, and the Nissan Integration didn’t load. So I found this thread, and just followed @andbad 's advice. Reboot. Now it works again on 2021.4.3
I have this problem again.
I resolve in the same way of previous time. I edited the file
homeassistant/lib/python3.8/site-packages/pycarwings2/pycarwings2.py
at line 125: headers={"User-Agent": "pycarwings2/2.10"}
@filcole Hi mate, it looks like the Nissan Leaf Integration has been borked again with the latest core-2021.5.5 update. Would you be able to take a look at it please?
Logger: pycarwings2.pycarwings2
Source: /usr/local/lib/python3.8/site-packages/pycarwings2/pycarwings2.py:164
First occurred: 6:40:30 PM (1 occurrences)
Last logged: 6:40:30 PM
carwings error INVALID PARAMS: 404
I have the same problem using Home Assistant OS on a Raspberry Pi with core-2021.5.3
Been struggling to get to file. Is there a way to edit the file on my setup?
I use the Leaf data to always charge the car to 70% overnight in low tariff. If I need the car, I set a departure percentage, day and time and the automation will top up the car if needed and activate climate control just before I am leaving.
I just realize now how much I love this automation, now it is broken.
Sorry, i have home assistant based on linux on a vm in proxmox.
I cannot find /usr/local/lib/python3.8/site-packages/pycarwings2/pycarwings2.py even it’s the fil I see in the log.
I user the terminal extension to do ssh, is it the issue??
Kindly
My integration was working fine, I was using some Node red automation and everything was perfect
but since three day ago the Nissan Leaf entity vanished and my dashboard show instead
Entity not available: sensor.leaf1mail_charge (and etc…)
Looking at the log I have some error
2021-05-22 17:32:54 ERROR (SyncWorker_9) [pycarwings2.pycarwings2] carwings error INVALID PARAMS: 404
2021-05-22 17:32:54 ERROR (SyncWorker_9) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>
2021-05-22 17:50:20 ERROR (SyncWorker_2) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>
At the linked page it was suggested to use the Portainer add-on to access the homeassistant container. That turned out to be surprisingly easy.
When inside the container I used VI to edit pycarwings2.py, using the path provided by wyx087 and the change provided by andbad.