iobroker.senec 1.3.2 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.senec",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Senec Home",
5
5
  "author": {
6
6
  "name": "NoBl",
@@ -25,38 +25,49 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "request": "^2.88.2",
28
- "@iobroker/adapter-core": "^2.4.0"
28
+ "@iobroker/adapter-core": "^2.5.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@iobroker/testing": "^2.4.4",
32
- "@types/chai": "^4.2.16",
33
- "@types/chai-as-promised": "^7.1.3",
34
- "@types/gulp": "^4.0.8",
35
- "@types/mocha": "^8.2.2",
36
- "@types/node": "^14.14.37",
31
+ "@alcalzone/release-script": "^3.5.2",
32
+ "@iobroker/testing": "^2.5.2",
33
+ "@types/chai": "^4.3.0",
34
+ "@types/chai-as-promised": "^7.1.4",
35
+ "@types/gulp": "^4.0.9",
36
+ "@types/mocha": "^9.0.0",
37
+ "@types/node": "^17.0.17",
37
38
  "@types/proxyquire": "^1.3.28",
38
- "@types/sinon": "^9.0.11",
39
- "@types/sinon-chai": "^3.2.5",
40
- "axios": "^0.21.1",
41
- "chai": "^4.3.4",
39
+ "@types/sinon": "^10.0.6",
40
+ "@types/sinon-chai": "^3.2.8",
41
+ "axios": "^0.25.0",
42
+ "chai": "^4.3.6",
42
43
  "chai-as-promised": "^7.1.1",
43
- "eslint": "^7.23.0",
44
+ "eslint": "^8.8.0",
44
45
  "gulp": "^4.0.2",
45
- "mocha": "^8.3.2",
46
+ "mocha": "^9.1.3",
46
47
  "proxyquire": "^2.1.3",
47
- "sinon": "^10.0.0",
48
- "sinon-chai": "^3.6.0",
49
- "typescript": "^4.2.3"
48
+ "sinon": "^12.0.1",
49
+ "sinon-chai": "^3.7.0",
50
+ "typescript": "~4.5.5"
50
51
  },
51
52
  "main": "main.js",
53
+ "files": [
54
+ "admin{,/!(src)/**}/!(tsconfig|tsconfig.*).json",
55
+ "admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
56
+ "lib/",
57
+ "www/",
58
+ "io-package.json",
59
+ "LICENSE",
60
+ "main.js"
61
+ ],
52
62
  "scripts": {
53
63
  "test:js": "mocha --config test/mocharc.custom.json \"{!(node_modules|test)/**/*.test.js,*.test.js,test/**/test!(PackageFiles|Startup).js}\"",
54
- "test:package": "mocha test/package --exit",
55
- "test:unit": "mocha test/unit --exit",
56
- "test:integration": "mocha test/integration --exit",
57
- "test": "npm run test:js && npm run test:package",
58
- "check": "tsc --noEmit -p tsconfig.check.json",
59
- "lint": "eslint"
64
+ "test:package": "mocha test/package --exit",
65
+ "test:unit": "mocha test/unit --exit",
66
+ "test:integration": "mocha test/integration --exit",
67
+ "test": "npm run test:js && npm run test:package",
68
+ "check": "tsc --noEmit -p tsconfig.check.json",
69
+ "lint": "eslint",
70
+ "release": "release-script"
60
71
  },
61
72
  "bugs": {
62
73
  "url": "https://github.com/nobl/ioBroker.senec/issues"
package/CHANGELOG_old.md DELETED
@@ -1,68 +0,0 @@
1
- The newest change log is [README.md](README.md)
2
-
3
- ### 1.0.13 (NoBl)
4
- * Added System Description 19 for Senec.Home V3 Hybrid (Credits to noffycws)
5
- * Added Mode Descriptions for 86-91. (Credits to noffycws)
6
-
7
- ### 1.0.12 (NoBl)
8
- * Just set 'supportCustoms' to false so it won't show up in admin custom config.
9
-
10
- ### 1.0.11 (NoBl)
11
- * Update to current adapter template
12
- * Added Datapoints: PV1.MPP_CUR, MPP_VOL, MPP_POWER (former: MPP_INT which is unused at this moment but does still exist)
13
- * Added Datapoints (please feedback any improvements for their descriptions, ...): FEATURES.SGREADY, WIZARD.SETUP_WALLBOX_MAX_TOTAL_CURRENT_BY_GRID, WIZARD.SG_READY_CURR_MODE, BMS.ERROR, BMS.RECOVERLOCKED, BMS.SERIAL, BMS.START_SELFTEST, BAT1.RESET, BAT1.SELFTEST_ACT, BAT1.SELFTEST_LIMIT, BAT1.SELFTEST_OFF, BAT1.SELFTEST_OVERALL_STATE, BAT1.SELFTEST_STATE, BAT1.SELFTEST_STEP, BAT1.SELFTEST_TIME, BAT1.SERIAL, BAT1.TRIG_ITALY_SELF, BAT1OBJ1.COMM, GRIDCONFIG.AU_SOFT_RAMP_EN, GRIDCONFIG.AU_VRR_MAX, GRIDCONFIG.AU_VRR_MIN, GRIDCONFIG.AU_VVAR_PERCENTAGE, GRIDCONFIG.AU_VVAR_P_MAX, GRIDCONFIG.AU_VVAR_P_MIN, GRIDCONFIG.AU_VVAR_VOLTAGE, GRIDCONFIG.AU_VWC_VOLTAGE, GRIDCONFIG.AU_VWD_VOLTAGE, GRIDCONFIG.CEI_SEGNALE_ESTERNO, GRIDCONFIG.VDELVFRTDISABLE, GRIDCONFIG.VDEURMSMAX10
14
-
15
- ### 1.0.10 (NoBl, smartpran)
16
- * DateType objects are stored as date again
17
- * changed WIZARD.SETUP_POWER_RULE unit to '%'
18
- * changed name of STATISTIC.STAT_SUM_E_PU to "STAT_SUM Energy PowerUnit"
19
- * changed name of STATISTIC.STAT_SUM_E_WB to "STAT_SUM Energy Wallbox"
20
- * changed name of STATISTIC.LIVE_WB_ENERGY to "Live Wallbox Energy"
21
- * changed name of STATISTIC.LIVE_PU_ENERGY to "Live PowerUnit Energy"
22
- * changed name of WIZARD.PWRCFG_PEAK_PV_POWER to "Configured Peak PV Power"
23
- * enforcing conversion of number values to Number(). Otherwise they are created as String in ioBroker (manually delete existing datapoints in ioBroker to change them!)
24
- * fixed representation for temp values (off by *10)
25
- * json delivers a non-value (apparently an error message produced by senec itself). Ignoring that.
26
- * Added variable mpp_int to high priority and changed unit it. (smartpran)
27
-
28
- ### 1.0.9 (NoBl)
29
- * IP types are shown as IP again.
30
- * added datapoints for FACTORY along with more state descriptions for Battery Type, Country and System Type.
31
- * added datapoints for GRIDCONFIG
32
-
33
- ### 1.0.8 (NoBl)
34
- * Added more states to known states (please feedback if they need special handling (unit, special description, value modification, ...))
35
- * Bugfix in creating debug data
36
- * Unknown states are now reported in debug instead of info.
37
- * Code cleanup
38
-
39
- ### 1.0.7 (NoBl)
40
- * Reading all known states from SENEC.
41
- * Split states into high/low priority (heavy requesting the SENEC system renders it unable to sync with the SENEC datacenter!).
42
- * Updated adapter-core and testing versions along with current dev dependencies. Removed node 8 support.
43
- * Added more state descriptions to manual. But need input on these and those that are still not documented.
44
-
45
- ### 1.0.6 (NoBl)
46
- * Moved senec states and state attributes to libs
47
- * Added missing state descriptions
48
-
49
- ### 1.0.5 (2020-03-07) (NoBl)
50
- * Added States for: Energy: GUI_BAT_DATA_VOLTAGE, GUI_BAT_DATA_CURRENT, STAT_HOURS_OF_OPERATION; Sys_update: NPU_VER, NPU_IMAGE_VERSION, Wizard: APPLICATION_VERSION, INTERFACE_VERSION
51
- * Readme and Documentation (EN exists, now) updated
52
- * Changed behavior for unknown values completely. They will now be stored as string plus prefixed with "REPORT TO DEV:" so users can easily report back what needs updating.
53
- * added handling for "st_" values in json
54
- * added additional configuration options
55
- * changed retry-behaviour in case of connection issues, ...
56
-
57
- ### 1.0.4 (2020-03-06)
58
- * (NoBl) Repo URL updated
59
- ### 1.0.3 (2020-03-06)
60
- * (NoBl) added link to documentation in german
61
- ### 1.0.2 (2020-03-04)
62
- * (NoBl) added missing status codes (85 in total now)
63
- * (NoBl) added status code to status message for easier reference
64
- * (NoBl) added states for wallboxes and battery modules
65
- ### 1.0.1
66
- * (NoBl) updated readme
67
- ### 1.0.0
68
- * (NoBl) initial release
package/admin/admin.d.ts DELETED
@@ -1,93 +0,0 @@
1
- declare let systemDictionary: Record<string, Record<string, string>>;
2
-
3
- declare let load: (settings: Record<string, unknown>, onChange: (hasChanges: boolean) => void) => void;
4
- declare let save: (callback: (settings: Record<string, unknown>) => void) => void;
5
-
6
- // make load and save exist on the window object
7
- interface Window {
8
- load: typeof load;
9
- save: typeof save;
10
- }
11
-
12
- declare const instance: number;
13
- declare const adapter: string;
14
- /** Translates text */
15
- declare function _(text: string, arg1?: string, arg2?: string, arg3?: string): string;
16
- declare const socket: ioBrokerSocket;
17
- declare function sendTo(
18
- instance: any | null,
19
- command: string,
20
- message: any,
21
- callback: (result: SendToResult) => void | Promise<void>,
22
- ): void;
23
-
24
- interface SendToResult {
25
- error?: string | Error;
26
- result?: any;
27
- }
28
-
29
- // tslint:disable-next-line:class-name
30
- interface ioBrokerSocket {
31
- emit(
32
- command: 'subscribeObjects',
33
- pattern: string,
34
- callback?: (err?: string) => void | Promise<void>,
35
- ): void;
36
- emit(
37
- command: 'subscribeStates',
38
- pattern: string,
39
- callback?: (err?: string) => void | Promise<void>,
40
- ): void;
41
- emit(
42
- command: 'unsubscribeObjects',
43
- pattern: string,
44
- callback?: (err?: string) => void | Promise<void>,
45
- ): void;
46
- emit(
47
- command: 'unsubscribeStates',
48
- pattern: string,
49
- callback?: (err?: string) => void | Promise<void>,
50
- ): void;
51
-
52
- emit(
53
- event: 'getObjectView',
54
- view: 'system',
55
- type: 'device',
56
- options: ioBroker.GetObjectViewParams,
57
- callback: (
58
- err: string | undefined,
59
- result?: any,
60
- ) => void | Promise<void>,
61
- ): void;
62
- emit(
63
- event: 'getStates',
64
- callback: (
65
- err: string | undefined,
66
- result?: Record<string, any>,
67
- ) => void,
68
- ): void;
69
- emit(
70
- event: 'getState',
71
- id: string,
72
- callback: (err: string | undefined, result?: ioBroker.State) => void,
73
- ): void;
74
- emit(
75
- event: 'setState',
76
- id: string,
77
- state: unknown,
78
- callback: (err: string | undefined, result?: any) => void,
79
- ): void;
80
-
81
- on(event: 'objectChange', handler: ioBroker.ObjectChangeHandler): void;
82
- on(event: 'stateChange', handler: ioBroker.StateChangeHandler): void;
83
- removeEventHandler(
84
- event: 'objectChange',
85
- handler: ioBroker.ObjectChangeHandler,
86
- ): void;
87
- removeEventHandler(
88
- event: 'stateChange',
89
- handler: ioBroker.StateChangeHandler,
90
- ): void;
91
-
92
- // TODO: other events
93
- }