Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/leaf2mqtt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: yp87/leaf2mqtt
images: ${{ secrets.DOCKERHUBUSERNAME }}/leaf2mqtt
tags: |
type=raw,value=${{ github.run_number }}
type=raw,value=latest
Expand All @@ -45,7 +45,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v8
tags: ${{ steps.meta.outputs.tags }}

update_addon:
Expand Down
4 changes: 2 additions & 2 deletions addon/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Leaf2MQTT",
"version": "46",
"version": "4",
"slug": "leaf2mqtt",
"description": "Interact with your Nissan Leaf using MQTT",
"startup": "application",
Expand Down Expand Up @@ -38,4 +38,4 @@
"COMMAND_ATTEMPTS": "int(1,)?",
"LOG_LEVEL": "list(All|Info|Warning|Severe)"
}
}
}
2 changes: 2 additions & 0 deletions src/leaf/nissan_connect_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class NissanConnectVehicleWrapper extends VehicleInternal {

@override
Future<Map<String, String>> fetchBatteryStatus() async {
await _getVehicle().requestBatteryStatusRefresh();

final NissanConnectBattery battery = await _getVehicle().requestBatteryStatus();

final int percentage =
Expand Down