skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
20 stars 5 forks source link

Addon doesn't initalize ('LICENSE_EXPIRED' is not a valid CapabilityStatus) #45

Closed maartenla closed 1 month ago

maartenla commented 1 month ago

I tried the new addon with my Enyaq iV80 (secondhand). I use the Skoda app all the time, including battery care and parking position. But I think the API is returning that I can't? I fastcharge at 160kW, also not listed in the api response. Maybe because the car is from 2020, so 4 years old and the initial license has expired?

{
    "vin":"VINVINVINVIN",
    "name":"Enyaq",
    "workshopModeEnabled":false,
    "licensePlate":"XXXXXXX",
    "state":"ACTIVATED",
    "devicePlatform":"WCAR",
    "softwareVersion":"3.0",
    "specification":{
        "title":"Škoda Enyaq",
        "manufacturingDate":"2020-12-18",
        "model":"Enyaq",
        "modelYear":"2021",
        "body":"SUV",
        "trimLevel":"80",
        "systemCode":"UNKNOWN",
        "systemModelId":"5AZJJ2",
        "maxChargingPowerInKW":125,
        "battery":{
            "capacityInKWh":77
        },
        "engine":{
            "type":"iV",
            "powerInKW":150
        },
        "gearbox":{
            "type":"E1H"
        }
    },
    "renders":[
    ],
    "compositeRenders":[
    ],
    "capabilities":{
        "capabilities":[
            {
                "id":"AUTOMATION",
                "statuses":{
                }
            },
            {
                "id":"BATTERY_CHARGING_CARE",
                "statuses":{
                }
            },
            {
                "id":"BATTERY_SUPPORT",
                "statuses":{
                }
            },
            {
                "id":"CHARGING_PROFILES",
                "statuses":{
                }
            },
            {
                "id":"CHARGING_STATIONS",
                "statuses":[
                    "LICENSE_EXPIRED",
                    "DEACTIVATED_BY_ACTIVE_VEHICLE_USER"
                ]
            },
            {
                "id":"DIGICERT",
                "statuses":{
                }
            },
            {
                "id":"MAP_UPDATE",
                "statuses":[
                    "LICENSE_EXPIRED",
                    "DEACTIVATED_BY_ACTIVE_VEHICLE_USER"
                ]
            },
            {
                "id":"MEASUREMENTS",
                "statuses":{
                }
            },
            {
                "id":"PARKING_INFORMATION",
                "statuses":[
                    "LICENSE_EXPIRED",
                    "DEACTIVATED_BY_ACTIVE_VEHICLE_USER"
                ]
            },
            {
                "id":"PARKING_POSITION",
                "statuses":{
                }
            },
            {
                "id":"POI_SEARCH",
                "statuses":[
                    "LICENSE_EXPIRED",
                    "DEACTIVATED_BY_ACTIVE_VEHICLE_USER"
                ]
            },
            {
                "id":"ROADSIDE_ASSISTANT",
                "statuses":{
                }
            },
            {
                "id":"ROUTING",
                "statuses":[
                    "LICENSE_EXPIRED",
                    "DEACTIVATED_BY_ACTIVE_VEHICLE_USER"
                ]
            },
            {
                "id":"STATE",
                "statuses":{
                }
            },
            {
                "id":"TRAFFIC_INFORMATION",
                "statuses":[
                    "LICENSE_EXPIRED",
                    "DEACTIVATED_BY_ACTIVE_VEHICLE_USER"
                ]
            },
            {
                "id":"VEHICLE_HEALTH_INSPECTION",
                "statuses":{
                }
            },
            {
                "id":"WARNING_LIGHTS",
                "statuses":{
                }
            },
            {
                "id":"WEB_RADIO",
                "statuses":{
                }
            },
            {
                "id":"AIR_CONDITIONING_TIMERS",
                "statuses":{
                }
            },
            {
                "id":"AIR_CONDITIONING_SMART_SETTINGS",
                "statuses":{
                }
            },
            {
                "id":"POWERPASS_TARIFFS",
                "statuses":{
                }
            },
            {
                "id":"AIR_CONDITIONING_SAVE_AND_ACTIVATE",
                "statuses":{
                }
            },
            {
                "id":"CUBIC",
                "statuses":{
                }
            },
            {
                "id":"ROUTE_PLANNING_5_CHARGERS",
                "statuses":{
                }
            },
            {
                "id":"SUBSCRIPTIONS",
                "statuses":{
                }
            },
            {
                "id":"DESTINATIONS",
                "statuses":[
                    "LICENSE_EXPIRED"
                ]
            },
            {
                "id":"CHARGING_MEB",
                "statuses":{
                }
            },
            {
                "id":"VEHICLE_SERVICES_BACKUPS",
                "statuses":{
                }
            },
            {
                "id":"EV_ROUTE_PLANNING",
                "statuses":{
                }
            },
            {
                "id":"CHARGE_MODE_SELECTION",
                "statuses":{
                }
            },
            {
                "id":"DIGICERT",
                "statuses":{
                }
            },
            {
                "id":"VEHICLE_HEALTH_WARNINGS",
                "statuses":{
                }
            },
            {
                "id":"PAY_TO_PARK",
                "statuses":{
                }
            },
            {
                "id":"ONLINE_SPEECH_GPS",
                "statuses":{
                }
            },
            {
                "id":"GUEST_USER_MANAGEMENT",
                "statuses":{
                }
            },
            {
                "id":"DESTINATION_IMPORT_UPGRADABLE",
                "statuses":{
                }
            },
            {
                "id":"SERVICE_PARTNER",
                "statuses":{
                }
            },
            {
                "id":"WINDOW_HEATING",
                "statuses":{
                }
            },
            {
                "id":"CHARGING",
                "statuses":{
                }
            },
            {
                "id":"AIR_CONDITIONING",
                "statuses":{
                }
            },
            {
                "id":"EXTENDED_CHARGING_SETTINGS",
                "statuses":{
                }
            },
            {
                "id":"VEHICLE_WAKE_UP_TRIGGER",
                "statuses":{
                }
            }
        ]
    }

}
dvx76 commented 1 month ago

You license is expired for some features (like planning route from the app I think) which is not a problem. It's just that it's the first time we see the status LICENSE_EXPIRED and it's just not been mapped yet. Easy fix.