mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 19:29:52 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e444b6a838 | ||
|
|
ce856d91c4 | ||
|
|
9c749001c9 |
@@ -37,6 +37,7 @@ If you like my work:<br>
|
|||||||
- XC90 B5 Mildhybrid (2024)
|
- XC90 B5 Mildhybrid (2024)
|
||||||
- V90 PHEV T8 (2019)*
|
- V90 PHEV T8 (2019)*
|
||||||
- V90 PHEV T6 (2024)
|
- V90 PHEV T6 (2024)
|
||||||
|
- V90 B5 Mildhybrid (2023)
|
||||||
|
|
||||||
*only partly working
|
*only partly working
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## v1.8.25
|
||||||
|
### 🚀 Features:
|
||||||
|
|
||||||
|
- Fix INTERNAL_SERVER_ERROR #165
|
||||||
|
|
||||||
## v1.8.24
|
## v1.8.24
|
||||||
### 🚀 Features:
|
### 🚀 Features:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
from config import settings
|
from config import settings
|
||||||
|
|
||||||
VERSION = "v1.8.24"
|
VERSION = "v1.8.25"
|
||||||
|
|
||||||
OAUTH_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2"
|
OAUTH_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2"
|
||||||
VEHICLES_URL = "https://api.volvocars.com/connected-vehicle/v2/vehicles"
|
VEHICLES_URL = "https://api.volvocars.com/connected-vehicle/v2/vehicles"
|
||||||
|
|||||||
@@ -265,7 +265,11 @@ def update_car_data(force_update=False, overwrite={}):
|
|||||||
f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/attributes",
|
f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/attributes",
|
||||||
json.dumps(state)
|
json.dumps(state)
|
||||||
)
|
)
|
||||||
|
if state:
|
||||||
state = sum(value == "FAILURE" for value in state.values())
|
state = sum(value == "FAILURE" for value in state.values())
|
||||||
|
else:
|
||||||
|
state = 0
|
||||||
|
|
||||||
topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state"
|
topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state"
|
||||||
else:
|
else:
|
||||||
topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state"
|
topic = f"homeassistant/{entity['domain']}/{vin}_{entity['id']}/state"
|
||||||
|
|||||||
Reference in New Issue
Block a user