Skip to content

Commit

Permalink
Merge pull request Grizzelbee#477 from Grizzelbee/fixes-for-adapter-c…
Browse files Browse the repository at this point in the history
…hecker

Fixes for adapter checker
  • Loading branch information
Grizzelbee authored Jan 22, 2025
2 parents e9b656b + 838615f commit e32e887
Show file tree
Hide file tree
Showing 7 changed files with 756 additions and 197 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ Please refer to the general Miele API documentation (below) for more information
If you like to get a deeper understanding or need a raw-value translation please refer to [this documentation.](machine_states.md)

## Changelog
### **WORK IN PROGRESS**
- (grizzelbee) Upd: Dependencies got updated
- (grizzelbee) Fix: Added screen size settings in Admin-UI for responsive design
- (grizzelbee) Fix: Fixed sentry MIELECLOUDSERVICE-5V

### 6.5.7 (2024-10-01)
- (grizzelbee) Upd: Dependencies got updated
- (grizzelbee) Fix: Fixed some minor issues found by adapter-checker
Expand Down Expand Up @@ -214,4 +219,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

## Copyright
Copyright (c) 2024 grizzelbee <open.source@hingsen.de>
Copyright (c) 2025 grizzelbee <open.source@hingsen.de>
115 changes: 75 additions & 40 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,70 +4,89 @@
"items": {
"donationHelp": {
"type": "staticText",
"text": "donation"
},
"text": "donation",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4 },
"donateButton": {
"type": "staticImage",
"src": "adapter/mielecloudservice/admin/paypal-donate-button.png",
"href": "https://www.paypal.com/donate/?hosted_button_id=SPUDTXGNG2MYG"
},
"href": "https://www.paypal.com/donate/?hosted_button_id=SPUDTXGNG2MYG",
"style": {
"maxWidth": 194
} },
"_basicSection": {
"newLine": true,
"type" : "header",
"text" : "Basic settings",
"size": 2,
"sm": 24,
"md": 8,
"lg": 6
},
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4 },
"sse": {
"newLine": true,
"type": "checkbox",
"label": "sse",
"tooltip": "sse_desc",
"default": true,
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
},
"md": 6,
"lg": 4,
"xl": 4 },
"API_KeyHelp": {
"type": "staticLink",
"text": "Miele_API_link",
"href": "https://www.miele.com/f/com/en/register_api.aspx"
},
"href": "https://www.miele.com/f/com/en/register_api.aspx",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4 },
"Miele_account": {
"newLine": true,
"type": "text",
"label": "Miele_Account",
"tooltip" : "Miele_Account_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
},
"md": 6,
"lg": 4,
"xl": 4 },
"Client_ID": {
"type": "text",
"label": "API Client-ID",
"tooltip" : "Client_ID_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"Miele_pwd": {
"newLine": true,
"type": "password",
"label": "Miele_pwd",
"tooltip": "Miele_pwd_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"Client_secret": {
"type": "password",
"label": "Client_secret",
"tooltip": "Client_secret_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"oauth2_vg": {
"newLine": true,
Expand Down Expand Up @@ -128,9 +147,11 @@
{"label":{"en":"Miele Србија"}, "value":"sr-RS"},
{"label":{"en":"Miele Україна"}, "value":"ru-UA"}
],
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"locale": {
"type": "select",
Expand All @@ -146,28 +167,34 @@
{"label": {"en":"Norwegian","de":"Norwegisch","ru":"Норвежский","pt":"norueguês","nl":"Noors","fr":"norvégien","it":"norvegese","es":"noruego","pl":"norweski","zh-cn":"挪威"}, "value": "nb"},
{"label": {"en":"Danish","de":"Dänisch","ru":"датский","pt":"dinamarquês","nl":"Deens","fr":"danois","it":"danese","es":"danés","pl":"duński","zh-cn":"丹麦语"}, "value": "da"},
{"label": {"en":"Netherlands","de":"Niederländisch","ru":"Нидерланды","pt":"Holanda","nl":"Nederlands","fr":"Pays-Bas","it":"Olanda","es":"PaísesBajos","pl":"Holandia","zh-cn":"荷兰"}, "value": "nl"}],
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"_delaySection": {
"newLine": true,
"type" : "header",
"text" : "Delaying of messages",
"size": 2,
"sm": 24,
"md": 8,
"lg": 6
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"delayedProcessing": {
"newLine": true,
"type": "checkbox",
"label": "delayedProcessing",
"default": false,
"tooltip": "delayedProcessing_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"messageDelay": {
"type": "number",
Expand All @@ -176,18 +203,22 @@
"label": "messageDelay",
"default": 2000,
"tooltip": "messageDelay_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"_pollingSection": {
"newLine": true,
"type" : "header",
"text" : "Polling specific settings",
"size": 2,
"sm": 24,
"md": 8,
"lg": 6
"xs": 12,
"sm": 12,
"md": 6,
"lg": 4,
"xl": 4
},
"pollInterval": {
"newLine": true,
Expand All @@ -197,9 +228,11 @@
"label": "pollInterval",
"default": 120,
"tooltip": "pollInterval_desc",
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
},
"pollUnit": {
"type": "select",
Expand All @@ -210,9 +243,11 @@
{"label": {"en":"Unit:Minutes","de":"Minuten","ru":"Минуты","pt":"Minutos","nl":"Minuten","fr":"Minutes","it":"Minuti","es":"Minutos","pl":"Minuty","zh-cn":"分钟"}, "value": 60}
],
"default": 60,
"xs": 12,
"sm": 12,
"md": 4,
"lg": 3
"md": 6,
"lg": 4,
"xl": 4
}
}
}
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ class Mielecloudservice extends utils.Adapter {
let endpoint;
const action = id.split('.').pop();
const device = id.split('.', 3).pop();
const native = this.getObject(id, null).native;
endpoint = mieleConst.ENDPOINT_ACTIONS;
switch(action){
case 'Nickname': payload.deviceName = state.val;
Expand Down
Loading

0 comments on commit e32e887

Please sign in to comment.