Skip to content

Commit e09dd2b

Browse files
committed
Renamed state "Charging_period 1_end" to "Charging_period 1_end"
Optmized layout of configuration sialog
1 parent 9f0ba0e commit e09dd2b

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ How to find SN and Check code for registration is described here: https://github
6161
**All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal.**
6262

6363
## Changelog
64+
65+
### **WORK IN PROGRESS**
66+
67+
- (Gaspode) **Breaking Change:** Renamed state "Charging_period 1_end" to "Charging_period 1_end"
68+
- (Gaspode) Optimizations in configuration dialog
69+
6470
### 2.3.0 (2024-12-20)
6571

6672
- (Gaspode) Provides the ability to read pseudo-realtime power data using the API function getTodayPowerBySn. This feature is useful for systems that lack "realtime data support." When activated, data is fetched every 5 minutes and stored in the "Recent" folder.

admin/jsonConfig.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@
5454
"newLine": false,
5555
"disabled": "!data.oAEnableRealtime"
5656
},
57-
"oAEnableRecent": {
58-
"xs": 9.9,
59-
"sm": 7.4,
60-
"md": 3.6,
61-
"lg": 2.8,
62-
"xl": 2.8,
63-
"type": "checkbox",
64-
"newLine": true,
65-
"label": "Get recent power data every 5 minutes (for systems with no realtime data)"
66-
},
6757
"oAEnableEssList": {
6858
"xs": 1.1,
6959
"sm": 0.6,
@@ -169,6 +159,16 @@
169159
"newLine": false,
170160
"disabled": "!data.oAEnableSummary"
171161
},
162+
"oAEnableRecent": {
163+
"xs": 12,
164+
"sm": 12,
165+
"md": 12,
166+
"lg": 12,
167+
"xl": 12,
168+
"type": "checkbox",
169+
"newLine": true,
170+
"label": "Get recent power data every 5 minutes (for systems with no realtime data)"
171+
},
172172
"oAEnableWallbox": {
173173
"xs": 1.1,
174174
"sm": 0.6,
@@ -191,11 +191,11 @@
191191
"disabled": "!data.oAEnableWallbox"
192192
},
193193
"updateUnchangedStates": {
194-
"xs": 11,
195-
"sm": 8,
196-
"md": 4,
197-
"lg": 3,
198-
"xl": 3,
194+
"xs": 12,
195+
"sm": 12,
196+
"md": 12,
197+
"lg": 12,
198+
"xl": 12,
199199
"type": "checkbox",
200200
"label": "Update unchanged states",
201201
"newLine": true

main.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class OpenAPI {
458458
{
459459
alphaAttrName: 'timeChae1',
460460
role: 'value',
461-
id: 'Charging_period 1_end',
461+
id: 'Charging_period_1_end',
462462
name: 'Charging period 1 end',
463463
type: 'string',
464464
unit: '',
@@ -1407,12 +1407,6 @@ class AlphaEss extends utils.Adapter {
14071407
// Remove no longer supported groups:
14081408
await this.delObjectAsync('Settings', { recursive: true });
14091409
await this.delObjectAsync('StatisticsToday', { recursive: true });
1410-
1411-
if (this.config['apiType'] == 0) {
1412-
this.log.error(
1413-
'ClosedAPI is not longer supported! Please enter OpenAPI credentials in settings dialog if not already done!',
1414-
);
1415-
}
14161410
}
14171411

14181412
if (this.config.appID && this.config.appSecret && this.config.systemId) {
@@ -1685,7 +1679,7 @@ class AlphaEss extends utils.Adapter {
16851679
if (vParts.length >= 3) {
16861680
const major = Number.parseInt(vParts[0]);
16871681
//const minor = Number.parseInt(vParts[1]);
1688-
if (major >= 2) {
1682+
if (major >= 3) {
16891683
return false;
16901684
}
16911685
}

0 commit comments

Comments
 (0)