iobroker.leapmotor 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -24
- package/admin/jsonConfig.json +1 -0
- package/admin/tab/tab.js +2 -2
- package/build/main.bak +1095 -0
- package/build/main.js +36 -26
- package/io-package.json +15 -16
- package/package.json +8 -5
- package/admin/index_m.html +0 -11
- package/admin/tab/index_m.html +0 -11
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# ioBroker.leapmotor
|
|
4
4
|
|
|
5
|
-
[](https://github.com/backfisch88/ioBroker.leapmotor)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
Unofficial Leapmotor electric vehicle integration for ioBroker. Tested on T03.
|
|
@@ -26,9 +26,16 @@ This way your main account stays logged in to the app at all times.
|
|
|
26
26
|
|
|
27
27
|
## Features
|
|
28
28
|
|
|
29
|
+
- React-based admin dashboard with Dashboard, Consumption, Trips, Datapoints, and Diagnostics tabs
|
|
29
30
|
- Vehicle status polling every 1–60 minutes (configurable)
|
|
30
31
|
- Battery SOC, range, temperature, tire pressure, GPS, doors, windows
|
|
31
|
-
- Remote control: climate (heat/cool/vent), lock/unlock, windows, trunk, find
|
|
32
|
+
- Remote control: climate (heat/cool/vent), lock/unlock, windows, sunshade, trunk, find
|
|
33
|
+
- Climate scheduling (recurring, by weekday) and charge limit / charge scheduling
|
|
34
|
+
- Comfort features where supported by the vehicle: sentry mode, seat heat/ventilation, steering wheel heat, speed limit, mirror heat
|
|
35
|
+
- Trip detection with daily kilometer tracking and individual trip history
|
|
36
|
+
- Charging cost estimation based on configurable electricity price
|
|
37
|
+
- Vehicle messages and unread count
|
|
38
|
+
- Vehicle-model-specific feature capability system (unsupported features are hidden automatically)
|
|
32
39
|
- Consumption statistics with weekly history
|
|
33
40
|
- Dynamic vehicle dashboard (composite HTML widget for VIS)
|
|
34
41
|
- Automatic token refresh
|
|
@@ -36,7 +43,8 @@ This way your main account stays logged in to the app at all times.
|
|
|
36
43
|
|
|
37
44
|
## Tested Vehicles
|
|
38
45
|
|
|
39
|
-
- Leapmotor T03 ✅
|
|
46
|
+
- Leapmotor T03 ✅ (fully tested)
|
|
47
|
+
- Leapmotor B10 / C10 / C16 – should work, comfort feature availability not yet verified
|
|
40
48
|
|
|
41
49
|
## Installation
|
|
42
50
|
|
|
@@ -56,54 +64,106 @@ Install via ioBroker Admin UI.
|
|
|
56
64
|
```
|
|
57
65
|
leapmotor.0.<VIN>.status.* → Vehicle status (read-only)
|
|
58
66
|
leapmotor.0.<VIN>.consumption.* → Consumption & statistics (read-only)
|
|
59
|
-
leapmotor.0.<VIN>.
|
|
60
|
-
leapmotor.0.<VIN>.
|
|
67
|
+
leapmotor.0.<VIN>.trips.* → Daily kilometers and trip history (read-only)
|
|
68
|
+
leapmotor.0.<VIN>.charging.* → Current charging session cost/kWh (read-only)
|
|
69
|
+
leapmotor.0.<VIN>.pictures.* → Vehicle images, including an animated composite image (read-only)
|
|
61
70
|
leapmotor.0.<VIN>.cmd.* → Commands (writable)
|
|
71
|
+
leapmotor.0.<VIN>.info.* → Static vehicle info (read-only)
|
|
72
|
+
leapmotor.0.messages.* → Vehicle messages from the Leapmotor app (read-only)
|
|
73
|
+
leapmotor.0.config.* → Electricity price / battery capacity used for cost estimation
|
|
62
74
|
```
|
|
63
75
|
|
|
64
|
-
|
|
76
|
+
The full set of available datapoints, including all writable command states, is best explored
|
|
77
|
+
directly in the ioBroker object tree, or via the **Datapoints** tab in the adapter's own admin UI
|
|
78
|
+
— it lists every datapoint with its current value and a short description.
|
|
65
79
|
|
|
66
|
-
|
|
80
|
+
### Admin Dashboard
|
|
81
|
+
|
|
82
|
+
The adapter ships its own React-based admin tab (click the adapter icon in the instance list) with
|
|
83
|
+
five sub-tabs: **Dashboard** (live status and remote control), **Consumption** (weekly energy use
|
|
84
|
+
and cost estimate), **Trips** (daily kilometers and individual detected trips), **Datapoints**
|
|
85
|
+
(full datapoint browser), and **Diagnostics**.
|
|
86
|
+
|
|
87
|
+
### Animated Vehicle Image for VIS
|
|
88
|
+
|
|
89
|
+
`leapmotor.0.<VIN>.pictures.composite_html` now contains a simple, embeddable animated vehicle
|
|
90
|
+
image (transparent background, no buttons or dashboard chrome — that has moved into the admin
|
|
91
|
+
tab). Add a **basic - string (unescaped)** widget in VIS, or embed it via `<iframe>`, and set the
|
|
92
|
+
Object ID to:
|
|
67
93
|
```
|
|
68
94
|
leapmotor.0.<VIN>.pictures.composite_html
|
|
69
95
|
```
|
|
70
96
|
|
|
71
|
-
### Available Commands
|
|
97
|
+
### Available Commands (selection)
|
|
98
|
+
|
|
99
|
+
Simple on/off buttons under `cmd.*` (role `button`, set to `true` to trigger):
|
|
72
100
|
|
|
73
101
|
| Command | Description | PIN required |
|
|
74
102
|
|---------|-------------|:------------:|
|
|
75
|
-
| cmd.
|
|
76
|
-
| cmd.
|
|
77
|
-
| cmd.
|
|
103
|
+
| cmd.ac_heat | Start heating | ✅ |
|
|
104
|
+
| cmd.ac_cool | Start cooling | ✅ |
|
|
105
|
+
| cmd.ac_vent | Start ventilation | ✅ |
|
|
78
106
|
| cmd.ac_off | Stop climate | ✅ |
|
|
79
|
-
| cmd.ac_temp | Target temperature (16–30°C) | – |
|
|
80
107
|
| cmd.defrost | Windshield defrost | ✅ |
|
|
81
|
-
| cmd.lock | Lock vehicle | ✅ |
|
|
82
|
-
| cmd.unlock | Unlock vehicle | ✅ |
|
|
83
|
-
| cmd.trunk_open | Open trunk | ✅ |
|
|
84
|
-
| cmd.trunk_close | Close trunk | ✅ |
|
|
85
108
|
| cmd.windows_open | Open windows | – |
|
|
86
109
|
| cmd.windows_close | Close windows | – |
|
|
87
110
|
| cmd.find | Find vehicle (horn/lights) | – |
|
|
88
111
|
| cmd.battery_preheat | Battery preheat on | ✅ |
|
|
89
112
|
| cmd.battery_preheat_off | Battery preheat off | ✅ |
|
|
113
|
+
| cmd.lock | Lock vehicle | ✅ |
|
|
114
|
+
| cmd.unlock | Unlock vehicle | ✅ |
|
|
115
|
+
| cmd.trunk_open | Open trunk | ✅ |
|
|
116
|
+
| cmd.trunk_close | Close trunk | ✅ |
|
|
90
117
|
| cmd.refresh | Trigger immediate status update | – |
|
|
91
118
|
|
|
119
|
+
Value-based commands:
|
|
120
|
+
|
|
121
|
+
| Command | Description |
|
|
122
|
+
|---------|-------------|
|
|
123
|
+
| cmd.ac_temp | Target temperature, 16–30 °C |
|
|
124
|
+
| cmd.ac_fan_speed | Fan speed, 1–7 |
|
|
125
|
+
| cmd.ac_position | Air position: all / up / down / front / rear |
|
|
126
|
+
| cmd.windows_set | Window position, 0–100 % |
|
|
127
|
+
| cmd.sunshade_set / sunshade_open / sunshade_close | Sunshade position (T03), 0–10 |
|
|
128
|
+
| cmd.charge_limit_set | Charge limit, 50–100 % |
|
|
129
|
+
| cmd.charge_schedule_enable / start / end / apply | Charging schedule |
|
|
130
|
+
| cmd.climate_schedule_enable / mode / time / days / apply / cancel | Recurring climate schedule |
|
|
131
|
+
| cmd.speed_limit_set | Speed limit, if supported by the vehicle |
|
|
132
|
+
|
|
133
|
+
Comfort commands (only created/shown if the vehicle model supports the feature):
|
|
134
|
+
|
|
135
|
+
| Command | Description |
|
|
136
|
+
|---------|-------------|
|
|
137
|
+
| cmd.sentry_mode_on / off | Sentry mode |
|
|
138
|
+
| cmd.seat_heat_driver / copilot | Seat heating |
|
|
139
|
+
| cmd.seat_ventilation_driver / copilot | Seat ventilation |
|
|
140
|
+
| cmd.steering_wheel_heat_on / off | Steering wheel heating |
|
|
141
|
+
| cmd.mirror_heat_on / off | Mirror heating |
|
|
142
|
+
| cmd.hotspot_on / off | Wi-Fi hotspot (no effect on T03) |
|
|
143
|
+
|
|
144
|
+
Which comfort commands actually appear depends on the detected vehicle model — see
|
|
145
|
+
`src/vehicleCapabilities.js` in the repository for the current capability matrix per model.
|
|
146
|
+
|
|
92
147
|
## Changelog
|
|
148
|
+
### 0.5.8 (2026-07-02)
|
|
149
|
+
- Fix: repository checker compliance - added missing intermediate object structure (charging/consumption/pictures/trips channels), corrected invalid state roles, added real integration test
|
|
150
|
+
|
|
93
151
|
### 0.5.7 (2026-06-29)
|
|
94
|
-
- (
|
|
152
|
+
- Fix: avoid npm transparency log conflict from a previous failed publish attempt (no functional changes vs. 0.5.5)
|
|
95
153
|
|
|
96
154
|
### 0.5.6 (2026-06-29)
|
|
97
|
-
-
|
|
155
|
+
- New: Trips tab showing daily kilometers with individual detected trips and an "Other" entry for any unaccounted distance
|
|
156
|
+
- Fix: trip detection now backfills kilometers driven before the trip was first detected (closes the gap caused by the 5-minute polling interval)
|
|
157
|
+
- Fix: critical bug where `adminTab.link` used a relative path, causing a 404 error when opening the tab for all users — now uses an absolute path
|
|
158
|
+
- Fix: admin tab files (`index_m.html`, `tab.html`, `tab.js`, `tab_m.html`) were missing from the published package; they are now included
|
|
159
|
+
- Fix: `index_m.html` contained leftover placeholder content instead of the real mobile tab loader
|
|
98
160
|
|
|
99
|
-
### 0.5.5 (2026-06-
|
|
100
|
-
-
|
|
161
|
+
### 0.5.5 (2026-06-26)
|
|
162
|
+
- Maintenance: dependency cleanup and repository checker compliance fixes
|
|
101
163
|
|
|
102
164
|
### 0.5.4 (2026-06-26)
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
### 0.5.3 (2026-06-26)
|
|
106
|
-
- (placeholder for next release)
|
|
165
|
+
- Fix: use `window.setTimeout`/`window.setInterval` in the admin tab frontend to satisfy the repository checker
|
|
166
|
+
- Maintenance: dependency cleanup
|
|
107
167
|
|
|
108
168
|
Older changes can be found in [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
|
|
109
169
|
|