Closed LeedsDBA closed 5 months ago
Is it because the statusreport_v1 is commented out?
@LeedsDBA Force refresh will be re-introduced in the next beta. I've already re-implemented it using new APIs: https://github.com/robinostlund/volkswagencarnet/pull/239
Force refresh is available again as part of the v4.5.1 release: https://github.com/robinostlund/homeassistant-volkswagencarnet/releases/tag/v4.5.1
Before you post a new issue - you must first check the following (and check the boxes with an "X" below)
Environment
Describe the bug
I've got an automation which checks whether the car is locked, and if it's not, it sends out a notification. It's triggered by binary_sensor.doors_locked chaning to "on" for 5 mins, it also checks every 10mins. Often my partner will come in, bring in the kids/shopping/etc and then go back out 5 mins later and lock the car.
However, the status of the doors would still say unlocked because even after being locked, the state doesn't seem to refresh.
To get around this, i force a refresh after 10mins, then after 50mins, then every 2 hours (I know about the 15 refresh limit, so i shape around that)
However - that service doesn't seem to be there any longer, and the 'force refresh' doesn't seem to do anything? (or at least, it doesn't update the 'last_updated' if it does?)
I think i might have configured it in 'read-only' mode (mutable?), but i'm assuming that would be ok, because i'm not making any changes to the car (i.e. lock/unlock - which i can't do anyways) - but let me know if that's causing the issue and i can just reconfigure.
action from automation below so it makes sense (happy to share full thing):
Steps to Reproduce
Using a golf TSI EVO R-Line, configure it and try to perform a force refresh, or call
switch.golf_force_data_refresh
Expected behavior
Wakes up the car, performs a data refresh, and updates the last_updated value
Screenshots
Traceback/Error logs
Logs suggest Force Refresh is supported (certainly used to work before the VW changes came in). But notable, Mutable:True
https://github.com/robinostlund/volkswagencarnet/blob/248c59f3e89e7a4cf845c8c726142ec84705e6a1/volkswagencarnet/vw_vehicle.py#L562
Debug information - all JSON responses from logfile
Additional context