@jorgenbosman - try out version 1.0.16 it should be working fine now (fingers crossed!)
Note: when vehicleMoving=yes then it can happen that device_tracker value is not correct. If you are using device_tracker somewhere always use it with combination with condition vehicleMoving=no
There should be fixed also behavior to not display warning in log when you don’t have parking heater on car.
2020-11-27 17:51:32 ERROR (MainThread) [homeassistant.util.logging] Exception in async_write_ha_state when dispatching 'skodaconnect.updated': () Traceback (most recent call last): File "/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity.py", line 296, in async_write_ha_state self._async_write_ha_state() File "/root/homeassistant/lib64/python3.8/site-packages/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state sstate = self.state File "/root/homeassistant/lib64/python3.8/site-packages/homeassistant/components/binary_sensor/__init__.py", line 158, in state return STATE_ON if self.is_on else STATE_OFF File "/root/.homeassistant/custom_components/skodaconnect/binary_sensor.py", line 29, in is_on return self.instrument.is_on File "/root/homeassistant/lib64/python3.8/site-packages/dashboardskoda.py", line 157, in is_on return self.state File "/root/homeassistant/lib64/python3.8/site-packages/dashboardskoda.py", line 139, in state val = super().state File "/root/homeassistant/lib64/python3.8/site-packages/dashboardskoda.py", line 56, in state if hasattr(self.vehicle, self.attr): File "/root/homeassistant/lib64/python3.8/site-packages/skodaconnect.py", line 1222, in window_closed_right_back response = int(self.attrs.get('StoredVehicleDataResponseParsed')['0x0301050007'].get('value',0)) TypeError: 'NoneType' object is not subscriptable
That looks like a temporary error where the data was missing from the server response. A restart of hass or restart of the component should fix that.
I’ve noticed that the VAG servers aren’t that reliable…
I don’t know about you guys but I would like to have a way to set a timer for climatisation/charging.
Do non PHEV/EVs have support for the schedule/timer function?
My thoughts on this is that perhaps a service call would be the best way to implement this. One sensor can hold all data that is set for one of the three profiles/schedules.
Then you can use helper sensors to choose weekday(s), time, temp etc in the gui. Then a button to invoke the service call and send the data to the API.
I wouldn’t mind trying to implement this but I have no idea where to start to get service calls up and running.
I’m also looking into force refresh (might also be best implemented as a service call?), token refresh instead of relogin, and some way to catch the X-RateLimit-Remaining header to indicate wether we are close to reaching the throttle limit on actions.
@lendy007 I’ve created new pull requests. I’ve added support for showing number of requests remaining and if energy is flowing from charger. Also changed the behavior of last_connected to show time in system local timezone.
Minor tweaks for charger max current. Should now display “Maximum/Reduced” correctly for Superb IV at least and else show correct ampere value (? needs verification from someone with electric Skoda).
Great work @lendy007! Can you add the files needed for it to work in HACS? It’s so much easier to add and update from HACS… Saw that robinostlund were you forked it from have added it to his wv version.
@lendy007 just wondering what is still on the todo list? Just wanted to say that currently trying to changing the target climatisation degrees fails in my case.
Is it possible to keep the last position of the car on restart? Currently the car goes away (given that the car is at home) until the first update is completed after 5 minutes. Do you guys have the same behaviour?
A funny thing happend, my app showed - as my current milage
I am working on implementing “set_schedule” service to allow us to set the climatisation/charging schedules, this is at the top of my “want” list right now.
I’m not sure though if non EV/PHEV Skodas have this function for aux heater? Would also be helpful if someone with EV could dump the json response for departuretimer api endpoint.
When this is done I will try to help and get this integrated into HACS with config flow from ui enabled.
And then token handling instead of login anew every hour when access tokens expire.
Then it’s just a matter of merging… We will see, perhaps lendy007 have coded most already before I get this up and running!
Unfortunately I know too little about hass coding to tell if it’s possible to save position between restarts, in my mind it is saved but not honored perhaps since position is unknown?
That worked! I can see the pre release having hacs.json also.
I’m getting my new Skoda today so wanted to be prepared for it with some home automation from day one
Love this! It works so good!
I found some things in the readme file on github were some resources does not work and trows an error on check and I made a pull request were I deleted them hope I did it right…