iobroker.sma-echarger 0.1.5 → 0.1.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/LICENSE +21 -21
- package/README.md +161 -153
- package/admin/i18n/en.json +6 -6
- package/admin/jsonConfig.json +46 -46
- package/io-package.json +27 -14
- package/lib/adapter-config.d.ts +22 -22
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 SpongeTroN <rolf@bunter-waeschekorb.de>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 SpongeTroN <rolf@bunter-waeschekorb.de>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,165 +1,173 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# ioBroker.sma-echarger
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/iobroker.sma-echarger)
|
|
6
|
-
[](https://www.npmjs.com/package/iobroker.sma-echarger)
|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
[](https://nodei.co/npm/iobroker.sma-echarger/)
|
|
11
|
-
|
|
12
|
-
**Tests:** 
|
|
13
|
-
|
|
14
|
-
## sma-echarger adapter for ioBroker
|
|
15
|
-
|
|
16
|
-
Anbindung eines SMA eChargers. Lesen und Steuern
|
|
17
|
-
|
|
18
|
-
## Developer manual
|
|
19
|
-
|
|
20
|
-
This section is intended for the developer. It can be deleted later.
|
|
21
|
-
|
|
22
|
-
### DISCLAIMER
|
|
23
|
-
|
|
24
|
-
Please make sure that you consider copyrights and trademarks when you use names or logos of a company and add a disclaimer to your README.
|
|
25
|
-
You can check other adapters for examples or ask in the developer community. Using a name or logo of a company without permission may cause legal problems for you.
|
|
26
|
-
|
|
27
|
-
### Getting started
|
|
28
|
-
|
|
29
|
-
You are almost done, only a few steps left:
|
|
30
|
-
|
|
31
|
-
1. Create a new repository on GitHub with the name `ioBroker.sma-echarger`
|
|
32
|
-
2. Initialize the current folder as a new git repository:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
git init -b master
|
|
36
|
-
git add .
|
|
37
|
-
git commit -m "Initial commit"
|
|
38
|
-
```
|
|
39
|
-
3. Link your local repository with the one on GitHub:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
git remote add origin https://github.com/SpongeTroN/ioBroker.sma-echarger
|
|
43
|
-
```
|
|
44
|
-
4. Push all files to the GitHub repo:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
git push origin master
|
|
48
|
-
```
|
|
49
|
-
5. Add a new secret under https://github.com/SpongeTroN/ioBroker.sma-echarger/settings/secrets. It must be named `AUTO_MERGE_TOKEN` and contain a personal access token with push access to the repository, e.g. yours. You can create a new token under https://github.com/settings/tokens.
|
|
50
|
-
6. Head over to [main.js](main.js) and start programming!
|
|
51
|
-
|
|
52
|
-
### Best Practices
|
|
53
|
-
|
|
54
|
-
We've collected some [best practices](https://github.com/ioBroker/ioBroker.repositories#development-and-coding-best-practices) regarding ioBroker development and coding in general. If you're new to ioBroker or Node.js, you should
|
|
55
|
-
check them out. If you're already experienced, you should also take a look at them - you might learn something new :)
|
|
56
|
-
|
|
57
|
-
### State Roles
|
|
58
|
-
|
|
59
|
-
When creating state objects, it is important to use the correct role for the state. The role defines how the state should be interpreted by visualizations and other adapters. For a list of available roles and their meanings, please refer to the [state roles documentation](https://www.iobroker.net/#en/documentation/dev/stateroles.md).
|
|
60
|
-
|
|
61
|
-
**Important:** Do not invent your own custom role names. If you need a role that is not part of the official list, please contact the ioBroker developer community for guidance and discussion about adding new roles.
|
|
62
|
-
|
|
63
|
-
### Scripts in `package.json`
|
|
64
|
-
|
|
65
|
-
Several npm scripts are predefined for your convenience. You can run them using `npm run <scriptname>`
|
|
66
|
-
|
|
67
|
-
| Script name | Description |
|
|
68
|
-
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
69
|
-
| `test:js` | Executes the tests you defined in `*.test.js` files. |
|
|
70
|
-
| `test:package` | Ensures your `package.json` and `io-package.json` are valid. |
|
|
71
|
-
| `test:integration` | Tests the adapter startup with an actual instance of ioBroker. |
|
|
72
|
-
| `test` | Performs a minimal test run on package files and your tests. |
|
|
73
|
-
| `check` | Performs a type-check on your code (without compiling anything). |
|
|
74
|
-
| `lint` | Runs `ESLint` to check your code for formatting errors and potential bugs. |
|
|
75
|
-
| `translate` | Translates texts in your adapter to all required languages, see [`@iobroker/adapter-dev`](https://github.com/ioBroker/adapter-dev#manage-translations) for more details. |
|
|
76
|
-
| `release` | Creates a new release, see [`@alcalzone/release-script`](https://github.com/AlCalzone/release-script#usage) for more details. |
|
|
77
|
-
|
|
78
|
-
### Writing tests
|
|
79
|
-
|
|
80
|
-
When done right, testing code is invaluable, because it gives you the
|
|
81
|
-
confidence to change your code while knowing exactly if and when
|
|
82
|
-
something breaks. A good read on the topic of test-driven development
|
|
83
|
-
is https://hackernoon.com/introduction-to-test-driven-development-tdd-61a13bc92d92.
|
|
84
|
-
Although writing tests before the code might seem strange at first, but it has very
|
|
85
|
-
clear upsides.
|
|
86
|
-
|
|
87
|
-
The template provides you with basic tests for the adapter startup and package files.
|
|
88
|
-
It is recommended that you add your own tests into the mix.
|
|
89
|
-
|
|
90
|
-
### Publishing the adapter
|
|
91
|
-
|
|
92
|
-
Using GitHub Actions, you can enable automatic releases on npm whenever you push a new git tag that matches the form
|
|
93
|
-
`v<major>.<minor>.<patch>`. We **strongly recommend** that you do. The necessary steps are described in `.github/workflows/test-and-release.yml`.
|
|
94
|
-
|
|
95
|
-
Since you installed the release script, you can create a new
|
|
96
|
-
release simply by calling:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
npm run release
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Additional command line options for the release script are explained in the
|
|
103
|
-
[release-script documentation](https://github.com/AlCalzone/release-script#command-line).
|
|
104
|
-
|
|
105
|
-
To get your adapter released in ioBroker, please refer to the documentation
|
|
106
|
-
of [ioBroker.repositories](https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-latest-repository).
|
|
107
|
-
|
|
108
|
-
### Test the adapter manually with dev-server
|
|
109
|
-
|
|
110
|
-
Since you set up `dev-server`, you can use it to run, test and debug your adapter.
|
|
111
|
-
|
|
112
|
-
You may start `dev-server` by calling from your dev directory:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
dev-server watch
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
The ioBroker.admin interface will then be available at http://localhost:undefined/
|
|
119
|
-
|
|
120
|
-
Please refer to the [`dev-server` documentation](https://github.com/ioBroker/dev-server#command-line) for more details.
|
|
121
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# ioBroker.sma-echarger
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/iobroker.sma-echarger)
|
|
6
|
+
[](https://www.npmjs.com/package/iobroker.sma-echarger)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
[](https://nodei.co/npm/iobroker.sma-echarger/)
|
|
11
|
+
|
|
12
|
+
**Tests:** 
|
|
13
|
+
|
|
14
|
+
## sma-echarger adapter for ioBroker
|
|
15
|
+
|
|
16
|
+
Anbindung eines SMA eChargers. Lesen und Steuern
|
|
17
|
+
|
|
18
|
+
## Developer manual
|
|
19
|
+
|
|
20
|
+
This section is intended for the developer. It can be deleted later.
|
|
21
|
+
|
|
22
|
+
### DISCLAIMER
|
|
23
|
+
|
|
24
|
+
Please make sure that you consider copyrights and trademarks when you use names or logos of a company and add a disclaimer to your README.
|
|
25
|
+
You can check other adapters for examples or ask in the developer community. Using a name or logo of a company without permission may cause legal problems for you.
|
|
26
|
+
|
|
27
|
+
### Getting started
|
|
28
|
+
|
|
29
|
+
You are almost done, only a few steps left:
|
|
30
|
+
|
|
31
|
+
1. Create a new repository on GitHub with the name `ioBroker.sma-echarger`
|
|
32
|
+
2. Initialize the current folder as a new git repository:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
git init -b master
|
|
36
|
+
git add .
|
|
37
|
+
git commit -m "Initial commit"
|
|
38
|
+
```
|
|
39
|
+
3. Link your local repository with the one on GitHub:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
git remote add origin https://github.com/SpongeTroN/ioBroker.sma-echarger
|
|
43
|
+
```
|
|
44
|
+
4. Push all files to the GitHub repo:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
git push origin master
|
|
48
|
+
```
|
|
49
|
+
5. Add a new secret under https://github.com/SpongeTroN/ioBroker.sma-echarger/settings/secrets. It must be named `AUTO_MERGE_TOKEN` and contain a personal access token with push access to the repository, e.g. yours. You can create a new token under https://github.com/settings/tokens.
|
|
50
|
+
6. Head over to [main.js](main.js) and start programming!
|
|
51
|
+
|
|
52
|
+
### Best Practices
|
|
53
|
+
|
|
54
|
+
We've collected some [best practices](https://github.com/ioBroker/ioBroker.repositories#development-and-coding-best-practices) regarding ioBroker development and coding in general. If you're new to ioBroker or Node.js, you should
|
|
55
|
+
check them out. If you're already experienced, you should also take a look at them - you might learn something new :)
|
|
56
|
+
|
|
57
|
+
### State Roles
|
|
58
|
+
|
|
59
|
+
When creating state objects, it is important to use the correct role for the state. The role defines how the state should be interpreted by visualizations and other adapters. For a list of available roles and their meanings, please refer to the [state roles documentation](https://www.iobroker.net/#en/documentation/dev/stateroles.md).
|
|
60
|
+
|
|
61
|
+
**Important:** Do not invent your own custom role names. If you need a role that is not part of the official list, please contact the ioBroker developer community for guidance and discussion about adding new roles.
|
|
62
|
+
|
|
63
|
+
### Scripts in `package.json`
|
|
64
|
+
|
|
65
|
+
Several npm scripts are predefined for your convenience. You can run them using `npm run <scriptname>`
|
|
66
|
+
|
|
67
|
+
| Script name | Description |
|
|
68
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
69
|
+
| `test:js` | Executes the tests you defined in `*.test.js` files. |
|
|
70
|
+
| `test:package` | Ensures your `package.json` and `io-package.json` are valid. |
|
|
71
|
+
| `test:integration` | Tests the adapter startup with an actual instance of ioBroker. |
|
|
72
|
+
| `test` | Performs a minimal test run on package files and your tests. |
|
|
73
|
+
| `check` | Performs a type-check on your code (without compiling anything). |
|
|
74
|
+
| `lint` | Runs `ESLint` to check your code for formatting errors and potential bugs. |
|
|
75
|
+
| `translate` | Translates texts in your adapter to all required languages, see [`@iobroker/adapter-dev`](https://github.com/ioBroker/adapter-dev#manage-translations) for more details. |
|
|
76
|
+
| `release` | Creates a new release, see [`@alcalzone/release-script`](https://github.com/AlCalzone/release-script#usage) for more details. |
|
|
77
|
+
|
|
78
|
+
### Writing tests
|
|
79
|
+
|
|
80
|
+
When done right, testing code is invaluable, because it gives you the
|
|
81
|
+
confidence to change your code while knowing exactly if and when
|
|
82
|
+
something breaks. A good read on the topic of test-driven development
|
|
83
|
+
is https://hackernoon.com/introduction-to-test-driven-development-tdd-61a13bc92d92.
|
|
84
|
+
Although writing tests before the code might seem strange at first, but it has very
|
|
85
|
+
clear upsides.
|
|
86
|
+
|
|
87
|
+
The template provides you with basic tests for the adapter startup and package files.
|
|
88
|
+
It is recommended that you add your own tests into the mix.
|
|
89
|
+
|
|
90
|
+
### Publishing the adapter
|
|
91
|
+
|
|
92
|
+
Using GitHub Actions, you can enable automatic releases on npm whenever you push a new git tag that matches the form
|
|
93
|
+
`v<major>.<minor>.<patch>`. We **strongly recommend** that you do. The necessary steps are described in `.github/workflows/test-and-release.yml`.
|
|
94
|
+
|
|
95
|
+
Since you installed the release script, you can create a new
|
|
96
|
+
release simply by calling:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npm run release
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Additional command line options for the release script are explained in the
|
|
103
|
+
[release-script documentation](https://github.com/AlCalzone/release-script#command-line).
|
|
104
|
+
|
|
105
|
+
To get your adapter released in ioBroker, please refer to the documentation
|
|
106
|
+
of [ioBroker.repositories](https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-latest-repository).
|
|
107
|
+
|
|
108
|
+
### Test the adapter manually with dev-server
|
|
109
|
+
|
|
110
|
+
Since you set up `dev-server`, you can use it to run, test and debug your adapter.
|
|
111
|
+
|
|
112
|
+
You may start `dev-server` by calling from your dev directory:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
dev-server watch
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The ioBroker.admin interface will then be available at http://localhost:undefined/
|
|
119
|
+
|
|
120
|
+
Please refer to the [`dev-server` documentation](https://github.com/ioBroker/dev-server#command-line) for more details.
|
|
121
|
+
|
|
122
122
|
## Changelog
|
|
123
|
-
### 0.1.
|
|
124
|
-
|
|
123
|
+
### 0.1.7 (2026-11-18)
|
|
124
|
+
|
|
125
|
+
* SpongeTroN86 fix: removed windows-latest from test-and-release.yml
|
|
126
|
+
|
|
127
|
+
### 0.1.6 (2026-11-18)
|
|
128
|
+
|
|
129
|
+
* SpongeTroN86 fix: removed macos-latest from test-and-release.yml
|
|
130
|
+
|
|
131
|
+
### 0.1.5 (2026-11-18)
|
|
132
|
+
|
|
125
133
|
* SpongeTroN86 fix: add npm environment variables for deployment
|
|
126
134
|
|
|
127
|
-
### 0.1.4 (2026-11-18)
|
|
128
|
-
|
|
135
|
+
### 0.1.4 (2026-11-18)
|
|
136
|
+
|
|
129
137
|
* SpongeTroN86 fix: add "WORK IN PROGRESS" section to README
|
|
130
138
|
|
|
131
|
-
### 0.1.3 (2026-11-18)
|
|
132
|
-
|
|
139
|
+
### 0.1.3 (2026-11-18)
|
|
140
|
+
|
|
133
141
|
* SpongeTroN86 fix: add "WORK IN PROGRESS" section to README
|
|
134
142
|
|
|
135
|
-
### 0.1.2 (2026-11-18)
|
|
136
|
-
|
|
143
|
+
### 0.1.2 (2026-11-18)
|
|
144
|
+
|
|
137
145
|
* (SpongeTroN86) Added trusted publishing workflow and updated adapter dependencies
|
|
138
146
|
|
|
139
|
-
### 0.1.1 (2026-11-18)
|
|
140
|
-
|
|
147
|
+
### 0.1.1 (2026-11-18)
|
|
148
|
+
|
|
141
149
|
* (SpongeTroN) initial release
|
|
142
150
|
|
|
143
|
-
## License
|
|
144
|
-
|
|
145
|
-
MIT License
|
|
146
|
-
|
|
147
|
-
Copyright (c) 2026 SpongeTroN <rolf@bunter-waeschekorb.de>
|
|
148
|
-
|
|
149
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
150
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
151
|
-
in the Software without restriction, including without limitation the rights
|
|
152
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
153
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
154
|
-
furnished to do so, subject to the following conditions:
|
|
155
|
-
|
|
156
|
-
The above copyright notice and this permission notice shall be included in all
|
|
157
|
-
copies or substantial portions of the Software.
|
|
158
|
-
|
|
159
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
160
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
161
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
162
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
163
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
164
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
MIT License
|
|
154
|
+
|
|
155
|
+
Copyright (c) 2026 SpongeTroN <rolf@bunter-waeschekorb.de>
|
|
156
|
+
|
|
157
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
158
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
159
|
+
in the Software without restriction, including without limitation the rights
|
|
160
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
161
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
162
|
+
furnished to do so, subject to the following conditions:
|
|
163
|
+
|
|
164
|
+
The above copyright notice and this permission notice shall be included in all
|
|
165
|
+
copies or substantial portions of the Software.
|
|
166
|
+
|
|
167
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
168
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
169
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
170
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
171
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
172
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
165
173
|
SOFTWARE.
|
package/admin/i18n/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"sma-echarger adapter settings": "Adapter settings for sma-echarger",
|
|
3
|
-
"IP-Adress of the SMA eChargers": "IP address of the SMA eCharger",
|
|
4
|
-
"Username (default: user)": "Username (default: user)",
|
|
5
|
-
"Password": "Password",
|
|
6
|
-
"Poll interval (seconds)": "Poll interval (seconds)"
|
|
1
|
+
{
|
|
2
|
+
"sma-echarger adapter settings": "Adapter settings for sma-echarger",
|
|
3
|
+
"IP-Adress of the SMA eChargers": "IP address of the SMA eCharger",
|
|
4
|
+
"Username (default: user)": "Username (default: user)",
|
|
5
|
+
"Password": "Password",
|
|
6
|
+
"Poll interval (seconds)": "Poll interval (seconds)"
|
|
7
7
|
}
|
package/admin/jsonConfig.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"i18n": true,
|
|
3
|
-
"type": "panel",
|
|
4
|
-
"items": {
|
|
5
|
-
"ipAddress": {
|
|
6
|
-
"type": "text",
|
|
7
|
-
"label": "IP-Adress of the SMA eChargers",
|
|
8
|
-
"xs": 12,
|
|
9
|
-
"sm": 6,
|
|
10
|
-
"md": 4,
|
|
11
|
-
"lg": 4,
|
|
12
|
-
"xl": 4
|
|
13
|
-
},
|
|
14
|
-
"pollInterval": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"label": "Poll interval (seconds)",
|
|
17
|
-
"min": 15,
|
|
18
|
-
"max": 3600,
|
|
19
|
-
"default": 15,
|
|
20
|
-
"xs": 12,
|
|
21
|
-
"sm": 6,
|
|
22
|
-
"md": 4,
|
|
23
|
-
"lg": 4,
|
|
24
|
-
"xl": 4
|
|
25
|
-
},
|
|
26
|
-
"username": {
|
|
27
|
-
"type": "text",
|
|
28
|
-
"label": "Username (default: user)",
|
|
29
|
-
"default": "user",
|
|
30
|
-
"xs": 12,
|
|
31
|
-
"sm": 6,
|
|
32
|
-
"md": 4,
|
|
33
|
-
"lg": 4,
|
|
34
|
-
"xl": 4
|
|
35
|
-
},
|
|
36
|
-
"password": {
|
|
37
|
-
"type": "password",
|
|
38
|
-
"label": "Password",
|
|
39
|
-
"xs": 12,
|
|
40
|
-
"sm": 6,
|
|
41
|
-
"md": 4,
|
|
42
|
-
"lg": 4,
|
|
43
|
-
"xl": 4
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"i18n": true,
|
|
3
|
+
"type": "panel",
|
|
4
|
+
"items": {
|
|
5
|
+
"ipAddress": {
|
|
6
|
+
"type": "text",
|
|
7
|
+
"label": "IP-Adress of the SMA eChargers",
|
|
8
|
+
"xs": 12,
|
|
9
|
+
"sm": 6,
|
|
10
|
+
"md": 4,
|
|
11
|
+
"lg": 4,
|
|
12
|
+
"xl": 4
|
|
13
|
+
},
|
|
14
|
+
"pollInterval": {
|
|
15
|
+
"type": "number",
|
|
16
|
+
"label": "Poll interval (seconds)",
|
|
17
|
+
"min": 15,
|
|
18
|
+
"max": 3600,
|
|
19
|
+
"default": 15,
|
|
20
|
+
"xs": 12,
|
|
21
|
+
"sm": 6,
|
|
22
|
+
"md": 4,
|
|
23
|
+
"lg": 4,
|
|
24
|
+
"xl": 4
|
|
25
|
+
},
|
|
26
|
+
"username": {
|
|
27
|
+
"type": "text",
|
|
28
|
+
"label": "Username (default: user)",
|
|
29
|
+
"default": "user",
|
|
30
|
+
"xs": 12,
|
|
31
|
+
"sm": 6,
|
|
32
|
+
"md": 4,
|
|
33
|
+
"lg": 4,
|
|
34
|
+
"xl": 4
|
|
35
|
+
},
|
|
36
|
+
"password": {
|
|
37
|
+
"type": "password",
|
|
38
|
+
"label": "Password",
|
|
39
|
+
"xs": 12,
|
|
40
|
+
"sm": 6,
|
|
41
|
+
"md": 4,
|
|
42
|
+
"lg": 4,
|
|
43
|
+
"xl": 4
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "sma-echarger",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.1.7": {
|
|
7
|
+
"en": "SpongeTroN86 fix: removed windows-latest from test-and-release.yml",
|
|
8
|
+
"de": "SpongeTron86 Fix: Windows-Latest aus Test-and-Release.yml entfernt",
|
|
9
|
+
"ru": "Исправление SpongeTron86: удалена последняя версия Windows из файла test-and-release.yml",
|
|
10
|
+
"pt": "Correção SpongeTron86: removeu o windows-latest de test-and-release.yml",
|
|
11
|
+
"nl": "Oplossing SpongeTron86: de nieuwste versie van Windows verwijderd uit test-and-release.yml",
|
|
12
|
+
"fr": "Fix SpongeTron86 : Windows-Latest a été supprimé de test-and-release.yml",
|
|
13
|
+
"it": "SpongeTron86 fix: rimosso windows-latest da test-and-release.yml",
|
|
14
|
+
"es": "Solución de SpongeTron86: se quitó Windows Latest de test-and-release.yml",
|
|
15
|
+
"pl": "Poprawka SpongeTron86: usunięto windows-latest z test-and-release.yml",
|
|
16
|
+
"uk": "Виправлення SpongeTron86: видалено останнє вікно з тесту та випуску.yml",
|
|
17
|
+
"zh-cn": "Spongetron86 修复:从 test-and-release.yml 中删除了 Windows-latest"
|
|
18
|
+
},
|
|
19
|
+
"0.1.6": {
|
|
20
|
+
"en": "SpongeTroN86 fix: removed macos-latest from test-and-release.yml",
|
|
21
|
+
"de": "SpongeTron86 fix: macos-latest aus test-and-release.yml entfernt",
|
|
22
|
+
"ru": "Исправление SpongeTron86: последняя версия macOS удалена из файла test-and-release.yml",
|
|
23
|
+
"pt": "Correção SpongeTron86: removeu o macos-latest de test-and-release.yml",
|
|
24
|
+
"nl": "Oplossing SpongeTron86: macos-latest verwijderd uit test-and-release.yml",
|
|
25
|
+
"fr": "Fix SpongeTron86 : macos-latest a été supprimé de test-and-release.yml",
|
|
26
|
+
"it": "SpongeTron86 fix: macos-latest rimosso da test-and-release.yml",
|
|
27
|
+
"es": "Solución de SpongeTron86: se quitó macOS Latest de test-and-release.yml",
|
|
28
|
+
"pl": "Poprawka SpongeTron86: usunięto macos-latest z test-and-release.yml",
|
|
29
|
+
"uk": "Виправлення SpongeTron86: видалено macos-latest з test-and-release.yml",
|
|
30
|
+
"zh-cn": "Spongetron86 修复:从 test-and-release.yml 中移除了 macos-latest"
|
|
31
|
+
},
|
|
6
32
|
"0.1.5": {
|
|
7
33
|
"en": "SpongeTroN86 fix: add npm environment variables for deployment",
|
|
8
34
|
"de": "Spongetron86 fix: NPM-Umgebungsvariablen hinzufügen",
|
|
@@ -67,19 +93,6 @@
|
|
|
67
93
|
"pl": "wstępne wydanie",
|
|
68
94
|
"uk": "первинний випуск",
|
|
69
95
|
"zh-cn": "初始版本"
|
|
70
|
-
},
|
|
71
|
-
"0.1.0": {
|
|
72
|
-
"en": "First working version with live measurements, parameter scan and control states",
|
|
73
|
-
"de": "Erste funktionsfähige Version mit Live-Messwerten, Parameter-Scan und Control-Datenpunkten",
|
|
74
|
-
"ru": "Первая рабочая версия с измерениями в реальном времени, сканированием параметров и состояниями управления.",
|
|
75
|
-
"pt": "Primeira versão funcional com medições ao vivo, varredura de parâmetros e estados de controle",
|
|
76
|
-
"nl": "Eerste werkende versie met live metingen, parameterscan en controlestatussen",
|
|
77
|
-
"fr": "Première version fonctionnelle avec mesures en direct, analyse des paramètres et états de contrôle",
|
|
78
|
-
"it": "Prima versione funzionante con misurazioni in tempo reale, scansione dei parametri e stati di controllo",
|
|
79
|
-
"es": "Primera versión funcional con mediciones en vivo, escaneo de parámetros y estados de control.",
|
|
80
|
-
"pl": "Pierwsza działająca wersja z pomiarami na żywo, skanowaniem parametrów i stanami kontrolnymi",
|
|
81
|
-
"uk": "Перша робоча версія з живими вимірюваннями, скануванням параметрів і контрольними станами",
|
|
82
|
-
"zh-cn": "第一个具有实时测量、参数扫描和控制状态的工作版本"
|
|
83
96
|
}
|
|
84
97
|
},
|
|
85
98
|
"titleLang": {
|
package/lib/adapter-config.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
// This file extends the AdapterConfig type from "@iobroker/types"
|
|
2
|
-
// using the actual properties present in io-package.json
|
|
3
|
-
// in order to provide typings for adapter.config properties
|
|
4
|
-
|
|
5
|
-
import { native } from '../io-package.json';
|
|
6
|
-
|
|
7
|
-
type _AdapterConfig = typeof native;
|
|
8
|
-
|
|
9
|
-
// Augment the globally declared type ioBroker.AdapterConfig
|
|
10
|
-
declare global {
|
|
11
|
-
namespace ioBroker {
|
|
12
|
-
interface AdapterConfig extends _AdapterConfig {
|
|
13
|
-
ipAddress: string;
|
|
14
|
-
pollInterval: number;
|
|
15
|
-
username: string;
|
|
16
|
-
password: string;
|
|
17
|
-
// Do not enter anything here!
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// this is required so the above AdapterConfig is found by TypeScript / type checking
|
|
1
|
+
// This file extends the AdapterConfig type from "@iobroker/types"
|
|
2
|
+
// using the actual properties present in io-package.json
|
|
3
|
+
// in order to provide typings for adapter.config properties
|
|
4
|
+
|
|
5
|
+
import { native } from '../io-package.json';
|
|
6
|
+
|
|
7
|
+
type _AdapterConfig = typeof native;
|
|
8
|
+
|
|
9
|
+
// Augment the globally declared type ioBroker.AdapterConfig
|
|
10
|
+
declare global {
|
|
11
|
+
namespace ioBroker {
|
|
12
|
+
interface AdapterConfig extends _AdapterConfig {
|
|
13
|
+
ipAddress: string;
|
|
14
|
+
pollInterval: number;
|
|
15
|
+
username: string;
|
|
16
|
+
password: string;
|
|
17
|
+
// Do not enter anything here!
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// this is required so the above AdapterConfig is found by TypeScript / type checking
|
|
23
23
|
export {};
|