mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 11:19:52 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47bd726ebb | ||
|
|
0397d05522 | ||
|
|
f0628e6a26 | ||
|
|
0f89258718 |
@@ -19,6 +19,7 @@ If you like my work:<br>
|
|||||||
[](https://ko-fi.com/U7U8MFXCF)
|
[](https://ko-fi.com/U7U8MFXCF)
|
||||||
|
|
||||||
## Confirmed working with
|
## Confirmed working with
|
||||||
|
- XC40 BEV (2024)
|
||||||
- XC40 BEV (2023)
|
- XC40 BEV (2023)
|
||||||
- XC40 BEV (2022)
|
- XC40 BEV (2022)
|
||||||
- XC40 PHEV (2021)
|
- XC40 PHEV (2021)
|
||||||
@@ -26,6 +27,7 @@ If you like my work:<br>
|
|||||||
- C40 BEV (2023)
|
- C40 BEV (2023)
|
||||||
- C40 BEV (2022)
|
- C40 BEV (2022)
|
||||||
- XC90 T8 PHEV (2023)
|
- XC90 T8 PHEV (2023)
|
||||||
|
- XC60 PHEV (2024)
|
||||||
- XC60 PHEV (2023)
|
- XC60 PHEV (2023)
|
||||||
- XC60 PHEV (2022)
|
- XC60 PHEV (2022)
|
||||||
- XC90 PHEV T8 (2023)
|
- XC90 PHEV T8 (2023)
|
||||||
@@ -53,6 +55,12 @@ Please let me know if your car works with this addon so I can expand the list!<b
|
|||||||
- Sensor "Fuel Status"
|
- Sensor "Fuel Status"
|
||||||
- Sensor "Average Fuel Consumption"
|
- Sensor "Average Fuel Consumption"
|
||||||
- Sensor "Average Speed"
|
- Sensor "Average Speed"
|
||||||
|
- Sensor "Distance to Empty"
|
||||||
|
- Sensor "Hours to Service"
|
||||||
|
- Sensor "Distance to Service"
|
||||||
|
- Sensor "Months to Service"
|
||||||
|
- Sensor "Service warning status"
|
||||||
|
- Sensor "Service warning trigger"
|
||||||
- Car Device Tracker
|
- Car Device Tracker
|
||||||
- Multiple cars
|
- Multiple cars
|
||||||
|
|
||||||
@@ -90,74 +98,6 @@ Here is what every option means:
|
|||||||
| `CONF_debug` | `string` | | optional | Debug option (true/false). Normally you don't need this. |
|
| `CONF_debug` | `string` | | optional | Debug option (true/false). Normally you don't need this. |
|
||||||
| `TZ` | `string` | | **required** | Container timezone eg "Europe/Berlin" from [here](https://docs.diladele.com/docker/timezones.html)|
|
| `TZ` | `string` | | **required** | Container timezone eg "Europe/Berlin" from [here](https://docs.diladele.com/docker/timezones.html)|
|
||||||
|
|
||||||
## Lovelace sample card
|
|
||||||
<details>
|
|
||||||
<summary>Show me more!</summary><blockquote>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Lovelace card sample</summary>
|
|
||||||
|
|
||||||
```
|
|
||||||
type: vertical-stack
|
|
||||||
title: Autostatus
|
|
||||||
cards:
|
|
||||||
- type: custom:vertical-stack-in-card
|
|
||||||
cards:
|
|
||||||
- type: custom:mushroom-lock-card
|
|
||||||
entity: lock.volvo_<your vin>_lock_status
|
|
||||||
name: Verrigelungsstatus
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:mushroom-entity-card
|
|
||||||
entity: sensor.volvo_<your vin>_electric_range
|
|
||||||
name: Reichweite
|
|
||||||
layout: vertical
|
|
||||||
- type: custom:mushroom-entity-card
|
|
||||||
entity: sensor.volvo_<your vin>_battery_charge_level
|
|
||||||
name: Batteriestatus
|
|
||||||
layout: vertical
|
|
||||||
- type: custom:mushroom-entity-card
|
|
||||||
entity: sensor.volvo_<your vin>_estimated_charging_time
|
|
||||||
layout: vertical
|
|
||||||
name: Ladezeit
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:mushroom-entity-card
|
|
||||||
entity: switch.volvo_<your vin>_climate_status
|
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
layout: vertical
|
|
||||||
name: Klimatisieren/Heizen
|
|
||||||
- type: custom:mushroom-template-card
|
|
||||||
primary: Daten aktualisieren
|
|
||||||
secondary: '{{ states(''sensor.volvo_<your vin>_last_data_update'')}}'
|
|
||||||
icon: mdi:update
|
|
||||||
layout: vertical
|
|
||||||
entity: button.volvo_<your vin>_update_data
|
|
||||||
- type: conditional
|
|
||||||
conditions:
|
|
||||||
- entity: sensor.volvo_<your vin>_estimated_charging_time
|
|
||||||
state_not: '0'
|
|
||||||
card:
|
|
||||||
type: custom:mushroom-entity-card
|
|
||||||
entity: sensor.volvo_<your vin>_estimated_charging_finish_time
|
|
||||||
name: Ladung vorraussichtlich abgeschlossen
|
|
||||||
show_name: true
|
|
||||||
- type: map
|
|
||||||
entities:
|
|
||||||
- entity: device_tracker.volvo_<your vin>_location
|
|
||||||
default_zoom: 16
|
|
||||||
dark_mode: false
|
|
||||||
hours_to_show: 0
|
|
||||||
auto_fit: true
|
|
||||||
aspect_ratio: '16:9'
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
</blockquote></details>
|
|
||||||
|
|
||||||
|
|
||||||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## v1.8.1
|
||||||
|
### 🐛 Bug Fixes:
|
||||||
|
|
||||||
|
- Fix app crash if `debug` is not set #86
|
||||||
|
|
||||||
## v1.8.0
|
## v1.8.0
|
||||||
### 🚀 Features:
|
### 🚀 Features:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: "Volvo2Mqtt"
|
name: "Volvo2Mqtt"
|
||||||
description: "Volvo AAOS MQTT bridge"
|
description: "Volvo AAOS MQTT bridge"
|
||||||
version: "1.8.0"
|
version: "1.8.1"
|
||||||
slug: "volvo2mqtt"
|
slug: "volvo2mqtt"
|
||||||
init: false
|
init: false
|
||||||
url: "https://github.com/Dielee/volvo2mqtt"
|
url: "https://github.com/Dielee/volvo2mqtt"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
from config import settings
|
from config import settings
|
||||||
|
|
||||||
VERSION = "v1.8.0"
|
VERSION = "v1.8.1"
|
||||||
|
|
||||||
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/v1/vehicles"
|
VEHICLES_URL = "https://api.volvocars.com/connected-vehicle/v1/vehicles"
|
||||||
|
|||||||
+4
-3
@@ -50,9 +50,10 @@ def setup_logging():
|
|||||||
'%b %d %H:%M:%S')
|
'%b %d %H:%M:%S')
|
||||||
file_log_handler.setFormatter(formatter)
|
file_log_handler.setFormatter(formatter)
|
||||||
|
|
||||||
if settings["debug"]:
|
if "debug" in settings:
|
||||||
sensitive_data_filter = SensitiveDataFilter(SENSITIVE_PATTERNS)
|
if settings["debug"]:
|
||||||
file_log_handler.addFilter(sensitive_data_filter)
|
sensitive_data_filter = SensitiveDataFilter(SENSITIVE_PATTERNS)
|
||||||
|
file_log_handler.addFilter(sensitive_data_filter)
|
||||||
|
|
||||||
console_log_handler = logging.StreamHandler(sys.stdout)
|
console_log_handler = logging.StreamHandler(sys.stdout)
|
||||||
console_log_handler.setFormatter(formatter)
|
console_log_handler.setFormatter(formatter)
|
||||||
|
|||||||
Reference in New Issue
Block a user