iobroker.leapmotor 0.2.3 → 0.2.7

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ioBroker.leapmotor
4
4
 
5
- [![Version](https://img.shields.io/badge/version-0.2.2-blue.svg)](https://github.com/backfisch88/ioBroker.leapmotor)
5
+ [![Version](https://img.shields.io/badge/version-0.2.4-blue.svg)](https://github.com/backfisch88/ioBroker.leapmotor)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
8
  Unofficial Leapmotor electric vehicle integration for ioBroker. Tested on T03.
@@ -90,26 +90,15 @@ leapmotor.0.<VIN>.pictures.composite_html
90
90
  | cmd.refresh | Trigger immediate status update | – |
91
91
 
92
92
  ## Changelog
93
+ ### 0.2.5 (2026-06-12)
94
+ - fix: use dynamic vehicle name from API in HTML dashboard
95
+ - fix: remove debug log messages
93
96
 
94
- ### 0.2.2 (2026-06-11)
95
- - Fix: workflow, test scripts
96
-
97
- ### 0.2.1 (2026-06-10)
98
- - Fix: release script, logo size, workflow improvements
99
-
100
- ### 0.2.0 (2026-06-10)
101
- - Full release: status, consumption, pictures, composite HTML dashboard
102
- - Automatic token refresh
103
- - Picture cache
104
- - All remote commands require PIN verification
97
+ ### 0.2.4 (2026-06-12)
98
+ - Fix: GitHub release permissions in workflow
105
99
 
106
- ## Legal Notice
107
-
108
- This adapter is **not affiliated with, endorsed by, or officially connected to Leapmotor** or any of its subsidiaries or affiliates.
109
-
110
- Use at your own risk. The authors accept no liability for any damage caused by the use of this software.
111
-
112
- ## Changelog
100
+ ### 0.2.3 (2026-06-12)
101
+ - Fix: add missing news entries
113
102
 
114
103
  ### 0.2.2 (2026-06-11)
115
104
  - Fix: workflow, test scripts
@@ -117,12 +106,6 @@ Use at your own risk. The authors accept no liability for any damage caused by t
117
106
  ### 0.2.1 (2026-06-10)
118
107
  - Fix: release script, logo size, workflow improvements
119
108
 
120
- ### 0.2.0 (2026-06-10)
121
- - Full release: status, consumption, pictures, composite HTML dashboard
122
- - Automatic token refresh
123
- - Picture cache
124
- - All remote commands require PIN verification
125
-
126
109
  ## License
127
110
 
128
111
  MIT License
package/build/main.js CHANGED
@@ -68,7 +68,7 @@ class LeapmotorAdapter extends utils.Adapter{
68
68
  const s=await this.client.getVehicleStatus(vehicle);
69
69
  await this.writeStatusStates(vehicle.vin,s);
70
70
  this.log.debug(`${vehicle.vin}: SOC=${s.soc}% Range=${s.expectedMileage}km`);
71
- await this.buildCompositeHtml(vehicle.vin,s);
71
+ await this.buildCompositeHtml(vehicle.vin,s,vehicle.name);
72
72
  }catch(e){
73
73
  const msg=String(e);
74
74
  if(msg.includes('ungültig')||msg.includes('Token')||msg.includes('401')){throw e;}
@@ -150,7 +150,7 @@ class LeapmotorAdapter extends utils.Adapter{
150
150
 
151
151
  // ── Composite HTML ───────────────────────────────────────
152
152
 
153
- async buildCompositeHtml(vin,s){
153
+ async buildCompositeHtml(vin,s,vehicleName){
154
154
  // Bilder aus Cache lesen
155
155
  let pics={};
156
156
  try{
@@ -260,7 +260,7 @@ class LeapmotorAdapter extends utils.Adapter{
260
260
  <div style="padding:12px 14px 0;display:flex;justify-content:space-between;align-items:flex-end">
261
261
  <div>
262
262
  <div style="font-size:9px;color:${C.textDim};letter-spacing:0.25em;text-transform:uppercase;margin-bottom:2px">LEAPMOTOR T03</div>
263
- <div style="font-size:20px;font-weight:800;color:${C.text}">Kn&ouml;psel</div>
263
+ <div style="font-size:20px;font-weight:800;color:${C.text}">${vehicleName||vin}</div>
264
264
  </div>
265
265
  <div style="text-align:right">
266
266
  <div style="font-size:9px;color:${C.textDim};letter-spacing:0.15em;margin-bottom:2px">AKKUSTAND</div>
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "leapmotor",
4
- "version": "0.2.3",
4
+ "version": "0.2.7",
5
5
  "news": {
6
+ "0.2.5": {
7
+ "en": "fix: use dynamic vehicle name from API in HTML dashboard\nfix: remove debug log messages",
8
+ "de": "fix: Verwenden des dynamischen Fahrzeugnamens von API im HTML-Dashboard\nfix: debug-log-nachrichten entfernen",
9
+ "ru": "\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044f \u0438\u0437 API \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 HTML\n\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c: \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0438",
10
+ "pt": "corre\u00e7\u00e3o: use o nome do ve\u00edculo din\u00e2mico da API no painel HTML\ncorrigir: remover mensagens de registro de depura\u00e7\u00e3o",
11
+ "nl": "fix: gebruik dynamische voertuignaam van API in HTML dashboard\nfix: verwijder debuglogberichten",
12
+ "fr": "correction: utiliser le nom dynamique du v\u00e9hicule de l'API dans le tableau de bord HTML\ncorrection : supprimer les messages de d\u00e9bogage",
13
+ "it": "fix: utilizzare il nome del veicolo dinamico da API in dashboard HTML\ncorrezione: rimuovere i messaggi di registro del debug",
14
+ "es": "fijar: utilizar el nombre din\u00e1mico del veh\u00edculo de API en el panel HTML\nfijaci\u00f3n: eliminar mensajes de registro de depuraci\u00f3n",
15
+ "pl": "fix: u\u017cyj dynamicznej nazwy pojazdu z API w desce rozdzielczej HTML\nfix: usu\u0144 wiadomo\u015bci z dziennika debugowania",
16
+ "uk": "\u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438: \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0434\u0438\u043d\u0430\u043c\u0456\u0447\u043d\u0443 \u043d\u0430\u0437\u0432\u0443 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u0441\u043e\u0431\u0443 \u0432\u0456\u0434 API \u0432 \u043f\u0430\u043d\u0435\u043b\u0456 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0456\u0432 HTML\n\u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438: \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u0437'\u0454\u0434\u043d\u0430\u043d\u043d\u044f",
17
+ "zh-cn": "\u56fa\u5b9a : \u5728 HTML \u4eea\u8868\u677f\u4e2d\u4f7f\u7528\u6765\u81ea API \u7684\u52a8\u6001\u8f66\u540d\n\u56fa\u5b9a: \u5220\u9664\u8c03\u8bd5\u65e5\u5fd7\u6d88\u606f"
18
+ },
6
19
  "0.2.1": {
7
20
  "en": "Fix: release script, logo size, workflow improvements",
8
21
  "de": "Fix: Release-Script, Logo-Gr\u00f6\u00dfe, Workflow-Verbesserungen",
@@ -54,6 +67,45 @@
54
67
  "pl": "Poprawka",
55
68
  "uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f",
56
69
  "zh-cn": "\u4fee\u590d"
70
+ },
71
+ "0.2.4": {
72
+ "en": "Fix: GitHub release permissions in workflow",
73
+ "de": "Fix: GitHub Release Berechtigungen im Workflow",
74
+ "ru": "\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",
75
+ "pt": "Corre\u00e7\u00e3o",
76
+ "nl": "Fix",
77
+ "fr": "Correction",
78
+ "it": "Correzione",
79
+ "es": "Correcci\u00f3n",
80
+ "pl": "Poprawka",
81
+ "uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f",
82
+ "zh-cn": "\u4fee\u590d"
83
+ },
84
+ "0.2.6": {
85
+ "en": "Fix: npm publishing workflow",
86
+ "de": "Fix: npm Ver\u00f6ffentlichungs-Workflow",
87
+ "ru": "\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",
88
+ "pt": "Corre\u00e7\u00e3o",
89
+ "nl": "Fix",
90
+ "fr": "Correction",
91
+ "it": "Correzione",
92
+ "es": "Correcci\u00f3n",
93
+ "pl": "Poprawka",
94
+ "uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f",
95
+ "zh-cn": "\u4fee\u590d"
96
+ },
97
+ "0.2.7": {
98
+ "en": "Fix: npm token in workflow",
99
+ "de": "Fix: npm Token im Workflow",
100
+ "ru": "\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",
101
+ "pt": "Corre\u00e7\u00e3o",
102
+ "nl": "Fix",
103
+ "fr": "Correction",
104
+ "it": "Correzione",
105
+ "es": "Correcci\u00f3n",
106
+ "pl": "Poprawka",
107
+ "uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f",
108
+ "zh-cn": "\u4fee\u590d"
57
109
  }
58
110
  },
59
111
  "titleLang": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.leapmotor",
3
- "version": "0.2.3",
3
+ "version": "0.2.7",
4
4
  "description": "Leapmotor electric vehicle integration for ioBroker",
5
5
  "author": {
6
6
  "name": "Henrik Sch\u00f6nhofen",