diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 815a094..389f74f 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,3 +1,12 @@ +## v1.8.17 +### 🚀 Features: + +- Move vehicle and vehicle details to v2 endpoint + +### 🐛 Bug Fixes: + +- Fix Battery Charge Level icon update + ## v1.8.16 ### 🚀 Features: diff --git a/src/config.yaml b/src/config.yaml index f37a47f..75cf2a0 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -1,6 +1,6 @@ name: "Volvo2Mqtt" description: "Volvo AAOS MQTT bridge" -version: "1.8.16" +version: "1.8.17" slug: "volvo2mqtt" init: false url: "https://github.com/Dielee/volvo2mqtt" diff --git a/src/const.py b/src/const.py index af35d3b..e6d5c67 100644 --- a/src/const.py +++ b/src/const.py @@ -1,6 +1,6 @@ from config import settings -VERSION = "v1.8.16" +VERSION = "v1.8.17" OAUTH_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2" VEHICLES_URL = "https://api.volvocars.com/connected-vehicle/v2/vehicles" diff --git a/src/mqtt.py b/src/mqtt.py index 6179b45..5b7c3c8 100644 --- a/src/mqtt.py +++ b/src/mqtt.py @@ -270,8 +270,12 @@ def update_car_data(force_update=False, overwrite={}): def update_ha_device(entity, vin, state): icon_config = icon_states.get(entity["id"]) if icon_config and state: + logging.debug("Entity " + entity["id"] + " state " + str(state)) if isinstance(state, float): icon = util.get_icon_between(icon_config, state) + elif state.replace(".", "").isnumeric(): + state = float(state) + icon = util.get_icon_between(icon_config, state) else: icon = icon_config[state] else: