skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
94 stars 15 forks source link

Remove charging sensors which are not supported #275

Closed prvakt closed 2 weeks ago

prvakt commented 2 weeks ago

Following sensors are not available in Superb iV and showing UNKNOWN state sensor.*_charging_power sensor.*_charging_rate sensor.*_target_battery_percentage

{
    "isVehicleInSavedLocation": false,
    "status": {
        "remainingTimeToFullyChargedInMinutes": 190,
        "state": "CHARGING",
        "chargeType": "AC",
        "battery": {
            "remainingCruisingRangeInMeters": 22000,
            "stateOfChargeInPercent": 67
        }
    },
    "settings": {
        "availableChargeModes": [],
        "maxChargeCurrentAc": "REDUCED"
    },
    "carCapturedTimestamp": "2024-11-14T09:53:19Z",
    "errors": [
        {
            "type": "CARE_MODE_IS_NOT_AVAILABLE",
            "description": "Care mode is not available."
        },
        {
            "type": "AUTO_UNLOCK_IS_NOT_AVAILABLE",
            "description": "Auto unlock is not available."
        },
        {
            "type": "CHARGE_LIMIT_IS_NOT_AVAILABLE",
            "description": "Charge limit is not available."
        }
    ]
}

just don't know which capability can be chosen to restrict those sensors - maybe CHARGING_MEB or EXTENDED_CHARGING_SETTINGS? those are not available in my Superb iV

WebSpider commented 2 weeks ago

It's probably CHARGING_MEB.

prvakt commented 2 weeks ago

ok I will create a PR for this

WebSpider commented 2 weeks ago

CARE_MODE relates to a switch, which was made limited to BATTERY_CHARGING_CARE in c5e1dd31.

Please make sure you remove orphaned entities first ;)