diff --git a/README.md b/README.md
index 4716a11e..b22c3377 100644
--- a/README.md
+++ b/README.md
@@ -55,10 +55,10 @@ Wenn ihr in **FHEMApp** Daten aus FHEM-Logs in Charts darstellt, ist es ggf. sin
```
### Anzeigeeinstellungen für FHEMApp (optional)
-Wenn ihr in **FHEMApp** bei der mobilen Ansicht (1-spaltiges Layout) im Header sehen wollt, in welcher Bereich bzw. in welche Gruppe euch gerade befindet, dann könnt ihr unter Options den Parameter `mobileHeader` setzen. Ebenfalls in der mobilen Ansicht könnt ihr über den Parameter `homeBtn` einen Home-Button auf der rechten Seite im Header einblenden. Weiterhin könnt ihr über den Parameter `reloadBtn` einen Button für einen kompletten Browser-Refresh im Header aktivieren. Über die Parameter `expandGroups` bzw. `expandRooms` könnt ihr festlegen, ob die Gruppen bzw. Räume in der Navigationsleiste beim Starten von **FHEMApp** geöffnet oder geschlossen sein sollen. Über den Parameter `lang` kann die Sprache der App umgestellt werden. Aktuell stehen `de` (deutsch) und `en` (englisch) zur Verfügung. Über den Parameter `clockFormat` kann die Anzeige der Uhrzeit im Header verändert werden.
+Wenn ihr **FHEMApp** in der mobilen Ansicht (1-spaltiges Layout) verwendet, könnt ihr optional im Header unterschiedliche Informationen über den Parameter `mobileHeaderContent` anzeigen. Hierfür stehen die Werte `page` oder `clock` oder `date` zur Verfügung. Ebenfalls in der mobilen Ansicht könnt ihr über den Parameter `homeBtn` einen Home-Button auf der rechten Seite im Header einblenden. Weiterhin könnt ihr über den Parameter `reloadBtn` einen Button für einen kompletten Browser-Refresh im Header aktivieren. Über die Parameter `expandGroups` bzw. `expandRooms` könnt ihr festlegen, ob die Gruppen bzw. Räume in der Navigationsleiste beim Starten von **FHEMApp** geöffnet oder geschlossen sein sollen. Über den Parameter `lang` kann die Sprache der App umgestellt werden. Aktuell stehen `de` (deutsch) und `en` (englisch) zur Verfügung. Über den Parameter `clockFormat` kann die Anzeige der Uhrzeit im Header verändert werden.
```
"options": {
- "mobileHeader": true,
+ "mobileHeaderContent": "page",
"reloadBtn": true,
"homeBtn": true,
"expandGroups": false,
diff --git a/package-lock.json b/package-lock.json
index 4a16f072..a620c937 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "fhemapp",
- "version": "3.29.0",
+ "version": "3.30.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "fhemapp",
- "version": "3.29.0",
+ "version": "3.30.3",
"license": "MIT",
"dependencies": {
"@mdi/font": "^6.5.95",
@@ -26,7 +26,7 @@
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
- "@vue/cli-service": "~5.0.0",
+ "@vue/cli-service": "^5.0.3",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"sass": "^1.32.7",
@@ -2150,9 +2150,9 @@
}
},
"node_modules/@types/ws": {
- "version": "8.5.2",
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.2.tgz",
- "integrity": "sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw==",
+ "version": "8.5.3",
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz",
+ "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==",
"dev": true,
"dependencies": {
"@types/node": "*"
@@ -2391,9 +2391,9 @@
}
},
"node_modules/@vue/cli-overlay": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-5.0.1.tgz",
- "integrity": "sha512-8cLpHoQVYHoI4EjUG4+gbuUI9xxhkP5Vz/o/WLAkAAs//+1vE/A5AjCdLeQYGR9X6T4+b/kci2ArIpSSsRi8/Q==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-5.0.3.tgz",
+ "integrity": "sha512-LuEcVV8oOYcPnfoB3yBoE1fQ8p23ziFwV+BAXumXiDemIkg7piL5s+tqUgwV8fuOg3bileta+rtKQRNmcAoW6Q==",
"dev": true
},
"node_modules/@vue/cli-plugin-babel": {
@@ -2431,40 +2431,40 @@
}
},
"node_modules/@vue/cli-plugin-router": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-5.0.1.tgz",
- "integrity": "sha512-Eu56AQUEK0uULgIQotZwi5eijYNBS3+znMc0u/kaI1puW3+f/qP3YCtffp5CeVcG2Kxwrx66XBI6PMHg8hPdmA==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-5.0.3.tgz",
+ "integrity": "sha512-9GPewake2QhmnNe1p72Cejv0jyenH+gv3+3JlZf4kPR68ncqwF7YiUjxbnJnItWgq4Zep3+YqYmQ4PsIWjMPUQ==",
"dev": true,
"dependencies": {
- "@vue/cli-shared-utils": "^5.0.1"
+ "@vue/cli-shared-utils": "^5.0.3"
},
"peerDependencies": {
"@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0"
}
},
"node_modules/@vue/cli-plugin-vuex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-5.0.1.tgz",
- "integrity": "sha512-5J/n+Ht4r2eVuncwCXcZPHzYCz/2haktle4WcggWiKeg3jSQVUJbjviPBs6sOo3y/LG3CEfZMP9bPJjVDbexpQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-5.0.3.tgz",
+ "integrity": "sha512-QlrtXH+Z7YyER6r1Iz54yT6WoWyjr2rpFpIAcJP+KbXMvY8J97aupAkXYhw7Lg4zX4O2FhLKztZrjJT2Gx6ZSQ==",
"dev": true,
"peerDependencies": {
"@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0"
}
},
"node_modules/@vue/cli-service": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-5.0.1.tgz",
- "integrity": "sha512-lhTW1d8waZv1VaRSvhE5pWWfkdmAgRTRSluDfyxkehZHMAWi//rd7a9zppN3k9Zr4X3oYVii+u7wR/RcTlr9cQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-5.0.3.tgz",
+ "integrity": "sha512-Mj41sc6VlPTwejZK4RTh17H3JLdJwKgeKHEgr17E4Vb6rZiByj29EYbr6lD9eEbbgCp/PwBkY4uPrMstCavcZQ==",
"dev": true,
"dependencies": {
"@babel/helper-compilation-targets": "^7.12.16",
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@soda/get-current-script": "^1.0.2",
"@types/minimist": "^1.2.0",
- "@vue/cli-overlay": "^5.0.1",
- "@vue/cli-plugin-router": "^5.0.1",
- "@vue/cli-plugin-vuex": "^5.0.1",
- "@vue/cli-shared-utils": "^5.0.1",
+ "@vue/cli-overlay": "^5.0.3",
+ "@vue/cli-plugin-router": "^5.0.3",
+ "@vue/cli-plugin-vuex": "^5.0.3",
+ "@vue/cli-shared-utils": "^5.0.3",
"@vue/component-compiler-utils": "^3.3.0",
"@vue/vue-loader-v15": "npm:vue-loader@^15.9.7",
"@vue/web-component-wrapper": "^1.3.0",
@@ -2551,9 +2551,9 @@
}
},
"node_modules/@vue/cli-shared-utils": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-5.0.1.tgz",
- "integrity": "sha512-oL164c3yDhdLHgiFvSkXuP7z0eEY8gqTYzHHbvQJCIBtRZ/0H9Q7xICpAeMZ63lJvS2+fA5bQfv+kPII/kcjmQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-5.0.3.tgz",
+ "integrity": "sha512-xAHxFDYVohHWXOLdmGvka3ffQcRgKdACempFQkGJX74Q7OBf0zPf5WH+vQXhlR17eA3LmWdY+Nv8OfsIGim6Fg==",
"dev": true,
"dependencies": {
"chalk": "^4.1.2",
@@ -2562,7 +2562,7 @@
"launch-editor": "^2.2.1",
"lru-cache": "^6.0.0",
"node-fetch": "^2.6.7",
- "node-ipc": "^9.1.1",
+ "node-ipc": "9.2.1",
"open": "^8.0.2",
"ora": "^5.3.0",
"read-pkg": "^5.1.1",
@@ -3217,14 +3217,24 @@
}
},
"node_modules/autoprefixer": {
- "version": "10.4.2",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.2.tgz",
- "integrity": "sha512-9fOPpHKuDW1w/0EKfRmVnxTDt8166MAnLI3mgZ1JCnhNtYWxcJ6Ud5CO/AVOZi/AvFa8DY9RTy3h3+tFBlrrdQ==",
+ "version": "10.4.4",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.4.tgz",
+ "integrity": "sha512-Tm8JxsB286VweiZ5F0anmbyGiNI3v3wGv3mz9W+cxEDYB/6jbnj6GM9H9mK3wIL8ftgl+C07Lcwb8PG5PCCPzA==",
"dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ }
+ ],
"dependencies": {
- "browserslist": "^4.19.1",
- "caniuse-lite": "^1.0.30001297",
- "fraction.js": "^4.1.2",
+ "browserslist": "^4.20.2",
+ "caniuse-lite": "^1.0.30001317",
+ "fraction.js": "^4.2.0",
"normalize-range": "^0.1.2",
"picocolors": "^1.0.0",
"postcss-value-parser": "^4.2.0"
@@ -3235,10 +3245,6 @@
"engines": {
"node": "^10 || ^12 || >=14"
},
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
"peerDependencies": {
"postcss": "^8.1.0"
}
@@ -3465,13 +3471,23 @@
}
},
"node_modules/browserslist": {
- "version": "4.19.3",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.3.tgz",
- "integrity": "sha512-XK3X4xtKJ+Txj8G5c30B4gsm71s69lqXlkYui4s6EkKxuv49qjYlY6oVd+IFJ73d4YymtM3+djvvt/R/iJwwDg==",
+ "version": "4.20.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.2.tgz",
+ "integrity": "sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA==",
"dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ }
+ ],
"dependencies": {
- "caniuse-lite": "^1.0.30001312",
- "electron-to-chromium": "^1.4.71",
+ "caniuse-lite": "^1.0.30001317",
+ "electron-to-chromium": "^1.4.84",
"escalade": "^3.1.1",
"node-releases": "^2.0.2",
"picocolors": "^1.0.0"
@@ -3481,10 +3497,6 @@
},
"engines": {
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
}
},
"node_modules/buffer": {
@@ -3598,14 +3610,20 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001312",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz",
- "integrity": "sha512-Wiz1Psk2MEK0pX3rUzWaunLTZzqS2JYZFzNKqAiJGiuxIjRPLgV6+VDPOg6lQOUxmDwhTlh198JsTTi8Hzw6aQ==",
+ "version": "1.0.30001319",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001319.tgz",
+ "integrity": "sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw==",
"dev": true,
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- }
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ }
+ ]
},
"node_modules/case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",
@@ -3914,13 +3932,10 @@
"dev": true
},
"node_modules/commander": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
- "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
- "dev": true,
- "engines": {
- "node": ">= 12"
- }
+ "version": "2.20.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
+ "dev": true
},
"node_modules/commondir": {
"version": "1.0.1",
@@ -4192,13 +4207,13 @@
}
},
"node_modules/css-loader": {
- "version": "6.6.0",
- "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.6.0.tgz",
- "integrity": "sha512-FK7H2lisOixPT406s5gZM1S3l8GrfhEBT3ZiL2UX1Ng1XWs0y2GPllz/OTyvbaHe12VgQrIXIzuEGVlbUhodqg==",
+ "version": "6.7.1",
+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.1.tgz",
+ "integrity": "sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==",
"dev": true,
"dependencies": {
"icss-utils": "^5.1.0",
- "postcss": "^8.4.5",
+ "postcss": "^8.4.7",
"postcss-modules-extract-imports": "^3.0.0",
"postcss-modules-local-by-default": "^4.0.0",
"postcss-modules-scope": "^3.0.0",
@@ -4395,12 +4410,12 @@
}
},
"node_modules/cssnano": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.0.tgz",
- "integrity": "sha512-wWxave1wMlThGg4ueK98jFKaNqXnQd1nVZpSkQ9XvR+YymlzP1ofWqES1JkHtI250LksP9z5JH+oDcrKDJezAg==",
+ "version": "5.1.4",
+ "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.4.tgz",
+ "integrity": "sha512-hbfhVZreEPyzl+NbvRsjNo54JOX80b+j6nqG2biLVLaZHJEiqGyMh4xDGHtwhUKd5p59mj2GlDqlUBwJUuIu5A==",
"dev": true,
"dependencies": {
- "cssnano-preset-default": "^5.2.0",
+ "cssnano-preset-default": "^*",
"lilconfig": "^2.0.3",
"yaml": "^1.10.2"
},
@@ -4416,40 +4431,40 @@
}
},
"node_modules/cssnano-preset-default": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.0.tgz",
- "integrity": "sha512-3N5Vcptj2pqVKpHVqH6ezOJvqikR2PdLTbTrsrhF61FbLRQuujAqZ2sKN5rvcMsb7hFjrNnjZT8CGEkxoN/Pwg==",
+ "version": "5.2.4",
+ "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.4.tgz",
+ "integrity": "sha512-w1Gg8xsebln6/axZ6qDFQHuglrGfbIHOIx0g4y9+etRlRab8CGpSpe6UMsrgJe4zhCaJ0LwLmc+PhdLRTwnhIA==",
"dev": true,
"dependencies": {
"css-declaration-sorter": "^6.0.3",
- "cssnano-utils": "^3.1.0",
+ "cssnano-utils": "^*",
"postcss-calc": "^8.2.3",
- "postcss-colormin": "^5.3.0",
- "postcss-convert-values": "^5.1.0",
- "postcss-discard-comments": "^5.1.0",
- "postcss-discard-duplicates": "^5.1.0",
- "postcss-discard-empty": "^5.1.0",
- "postcss-discard-overridden": "^5.1.0",
- "postcss-merge-longhand": "^5.1.0",
- "postcss-merge-rules": "^5.1.0",
- "postcss-minify-font-values": "^5.1.0",
- "postcss-minify-gradients": "^5.1.0",
- "postcss-minify-params": "^5.1.0",
- "postcss-minify-selectors": "^5.2.0",
- "postcss-normalize-charset": "^5.1.0",
- "postcss-normalize-display-values": "^5.1.0",
- "postcss-normalize-positions": "^5.1.0",
- "postcss-normalize-repeat-style": "^5.1.0",
- "postcss-normalize-string": "^5.1.0",
- "postcss-normalize-timing-functions": "^5.1.0",
- "postcss-normalize-unicode": "^5.1.0",
- "postcss-normalize-url": "^5.1.0",
- "postcss-normalize-whitespace": "^5.1.0",
- "postcss-ordered-values": "^5.1.0",
- "postcss-reduce-initial": "^5.1.0",
- "postcss-reduce-transforms": "^5.1.0",
- "postcss-svgo": "^5.1.0",
- "postcss-unique-selectors": "^5.1.0"
+ "postcss-colormin": "^*",
+ "postcss-convert-values": "^*",
+ "postcss-discard-comments": "^*",
+ "postcss-discard-duplicates": "^*",
+ "postcss-discard-empty": "^*",
+ "postcss-discard-overridden": "^*",
+ "postcss-merge-longhand": "^*",
+ "postcss-merge-rules": "^*",
+ "postcss-minify-font-values": "^*",
+ "postcss-minify-gradients": "^*",
+ "postcss-minify-params": "^*",
+ "postcss-minify-selectors": "^*",
+ "postcss-normalize-charset": "^*",
+ "postcss-normalize-display-values": "^*",
+ "postcss-normalize-positions": "^*",
+ "postcss-normalize-repeat-style": "^*",
+ "postcss-normalize-string": "^*",
+ "postcss-normalize-timing-functions": "^*",
+ "postcss-normalize-unicode": "^*",
+ "postcss-normalize-url": "^*",
+ "postcss-normalize-whitespace": "^*",
+ "postcss-ordered-values": "^*",
+ "postcss-reduce-initial": "^*",
+ "postcss-reduce-transforms": "^*",
+ "postcss-svgo": "^*",
+ "postcss-unique-selectors": "^*"
},
"engines": {
"node": "^10 || ^12 || >=14.0"
@@ -4775,9 +4790,9 @@
]
},
"node_modules/domhandler": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz",
- "integrity": "sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==",
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz",
+ "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==",
"dev": true,
"dependencies": {
"domelementtype": "^2.2.0"
@@ -4850,9 +4865,9 @@
"dev": true
},
"node_modules/electron-to-chromium": {
- "version": "1.4.75",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.75.tgz",
- "integrity": "sha512-LxgUNeu3BVU7sXaKjUDD9xivocQLxFtq6wgERrutdY/yIOps3ODOZExK1jg8DTEg4U8TUCb5MLGeWFOYuxjF3Q==",
+ "version": "1.4.88",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.88.tgz",
+ "integrity": "sha512-oA7mzccefkvTNi9u7DXmT0LqvhnOiN2BhSrKerta7HeUC1cLoIwtbf2wL+Ah2ozh5KQd3/1njrGrwDBXx6d14Q==",
"dev": true
},
"node_modules/emoji-regex": {
@@ -5886,9 +5901,9 @@
}
},
"node_modules/fraction.js": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.3.tgz",
- "integrity": "sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
+ "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==",
"dev": true,
"engines": {
"node": "*"
@@ -6248,6 +6263,15 @@
"node": ">=12"
}
},
+ "node_modules/html-minifier-terser/node_modules/commander": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
+ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
+ "dev": true,
+ "engines": {
+ "node": ">= 12"
+ }
+ },
"node_modules/html-tags": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.1.0.tgz",
@@ -6322,9 +6346,9 @@
}
},
"node_modules/http-parser-js": {
- "version": "0.5.5",
- "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.5.tgz",
- "integrity": "sha512-x+JVEkO2PoM8qqpbPbOL3cqHPwerep7OwzK7Ay+sMQjKzaKCqWvjoXm5tqMP9tXWWTnTzAjIhXg+J99XYuPhPA==",
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz",
+ "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==",
"dev": true
},
"node_modules/http-proxy": {
@@ -6342,9 +6366,9 @@
}
},
"node_modules/http-proxy-middleware": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.3.tgz",
- "integrity": "sha512-1bloEwnrHMnCoO/Gcwbz7eSVvW50KPES01PecpagI+YLNLci4AcuKJrujW4Mc3sBLpFxMSlsLNHS5Nl/lvrTPA==",
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.4.tgz",
+ "integrity": "sha512-m/4FxX17SUvz4lJ5WPXOHDUuCwIqXLfLHs1s0uZ3oYjhoXlx9csYxaOa0ElDEJ+h8Q4iJ1s+lTMbiCa4EXIJqg==",
"dev": true,
"dependencies": {
"@types/http-proxy": "^1.17.8",
@@ -7459,9 +7483,9 @@
}
},
"node_modules/mini-css-extract-plugin": {
- "version": "2.5.3",
- "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.3.tgz",
- "integrity": "sha512-YseMB8cs8U/KCaAGQoqYmfUuhhGW0a9p9XvWXrxVOkE3/IiISTLw4ALNt7JR5B2eYauFM+PQGSbXMDmVbR7Tfw==",
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.6.0.tgz",
+ "integrity": "sha512-ndG8nxCEnAemsg4FSgS+yNyHKgkTB4nPKqCOgh65j3/30qqC5RaSQQXMm++Y6sb6E1zRSxPkztj9fqxhS1Eo6w==",
"dev": true,
"dependencies": {
"schema-utils": "^4.0.0"
@@ -7699,9 +7723,9 @@
}
},
"node_modules/node-forge": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.2.1.tgz",
- "integrity": "sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.0.tgz",
+ "integrity": "sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA==",
"dev": true,
"engines": {
"node": ">= 6.13.0"
@@ -8357,10 +8381,20 @@
}
},
"node_modules/postcss": {
- "version": "8.4.7",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.7.tgz",
- "integrity": "sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A==",
+ "version": "8.4.12",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.12.tgz",
+ "integrity": "sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==",
"dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ }
+ ],
"dependencies": {
"nanoid": "^3.3.1",
"picocolors": "^1.0.0",
@@ -8368,10 +8402,6 @@
},
"engines": {
"node": "^10 || ^12 || >=14"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
}
},
"node_modules/postcss-calc": {
@@ -8421,9 +8451,9 @@
}
},
"node_modules/postcss-discard-comments": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.0.tgz",
- "integrity": "sha512-L0IKF4jAshRyn03SkEO6ar/Ipz2oLywVbg2THf2EqqdNkBwmVMxuTR/RoAltOw4piiaLt3gCAdrbAqmTBInmhg==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.1.tgz",
+ "integrity": "sha512-5JscyFmvkUxz/5/+TB3QTTT9Gi9jHkcn8dcmmuN68JQcv3aQg4y88yEHHhwFB52l/NkaJ43O0dbksGMAo49nfQ==",
"dev": true,
"engines": {
"node": "^10 || ^12 || >=14.0"
@@ -8445,9 +8475,9 @@
}
},
"node_modules/postcss-discard-empty": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.0.tgz",
- "integrity": "sha512-782T/buGgb3HOuHOJAHpdyKzAAKsv/BxWqsutnZ+QsiHEcDkY7v+6WWdturuBiSal6XMOO1p1aJvwXdqLD5vhA==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz",
+ "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==",
"dev": true,
"engines": {
"node": "^10 || ^12 || >=14.0"
@@ -8506,13 +8536,13 @@
}
},
"node_modules/postcss-merge-longhand": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.0.tgz",
- "integrity": "sha512-Gr46srN2tsLD8fudKYoHO56RG0BLQ2nsBRnSZGY04eNBPwTeWa9KeHrbL3tOLAHyB2aliikycPH2TMJG1U+W6g==",
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.2.tgz",
+ "integrity": "sha512-18/bp9DZnY1ai9RlahOfLBbmIUKfKFPASxRCiZ1vlpZqWPCn8qWPFlEozqmWL+kBtcEQmG8W9YqGCstDImvp/Q==",
"dev": true,
"dependencies": {
"postcss-value-parser": "^4.2.0",
- "stylehacks": "^5.1.0"
+ "stylehacks": "^*"
},
"engines": {
"node": "^10 || ^12 || >=14.0"
@@ -8572,9 +8602,9 @@
}
},
"node_modules/postcss-minify-params": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.0.tgz",
- "integrity": "sha512-q67dcts4Hct6x8+JmhBgctHkbvUsqGIg2IItenjE63iZXMbhjr7AlVZkNnKtIGt/1Wsv7p/7YzeSII6Q+KPXRg==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.1.tgz",
+ "integrity": "sha512-WCpr+J9Uz8XzMpAfg3UL8z5rde6MifBbh5L8bn8S2F5hq/YDJJzASYCnCHvAB4Fqb94ys8v95ULQkW2EhCFvNg==",
"dev": true,
"dependencies": {
"browserslist": "^4.16.6",
@@ -8782,9 +8812,9 @@
}
},
"node_modules/postcss-normalize-whitespace": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.0.tgz",
- "integrity": "sha512-7O1FanKaJkpWFyCghFzIkLhehujV/frGkdofGLwhg5upbLyGsSfiTcZAdSzoPsSUgyPCkBkNMeWR8yVgPdQybg==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz",
+ "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==",
"dev": true,
"dependencies": {
"postcss-value-parser": "^4.2.0"
@@ -8873,9 +8903,9 @@
}
},
"node_modules/postcss-unique-selectors": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.0.tgz",
- "integrity": "sha512-LmUhgGobtpeVJJHuogzjLRwJlN7VH+BL5c9GKMVJSS/ejoyePZkXvNsYUtk//F6vKOGK86gfRS0xH7fXQSDtvA==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz",
+ "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==",
"dev": true,
"dependencies": {
"postcss-selector-parser": "^6.0.5"
@@ -8903,9 +8933,9 @@
}
},
"node_modules/prettier": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
- "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.0.tgz",
+ "integrity": "sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==",
"dev": true,
"optional": true,
"bin": {
@@ -8913,6 +8943,9 @@
},
"engines": {
"node": ">=10.13.0"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/pretty-error": {
@@ -10314,12 +10347,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/terser/node_modules/commander": {
- "version": "2.20.3",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
- "dev": true
- },
"node_modules/terser/node_modules/source-map": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
@@ -13300,9 +13327,9 @@
}
},
"@types/ws": {
- "version": "8.5.2",
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.2.tgz",
- "integrity": "sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw==",
+ "version": "8.5.3",
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz",
+ "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==",
"dev": true,
"requires": {
"@types/node": "*"
@@ -13494,9 +13521,9 @@
}
},
"@vue/cli-overlay": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-5.0.1.tgz",
- "integrity": "sha512-8cLpHoQVYHoI4EjUG4+gbuUI9xxhkP5Vz/o/WLAkAAs//+1vE/A5AjCdLeQYGR9X6T4+b/kci2ArIpSSsRi8/Q==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-5.0.3.tgz",
+ "integrity": "sha512-LuEcVV8oOYcPnfoB3yBoE1fQ8p23ziFwV+BAXumXiDemIkg7piL5s+tqUgwV8fuOg3bileta+rtKQRNmcAoW6Q==",
"dev": true
},
"@vue/cli-plugin-babel": {
@@ -13527,35 +13554,35 @@
}
},
"@vue/cli-plugin-router": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-5.0.1.tgz",
- "integrity": "sha512-Eu56AQUEK0uULgIQotZwi5eijYNBS3+znMc0u/kaI1puW3+f/qP3YCtffp5CeVcG2Kxwrx66XBI6PMHg8hPdmA==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-5.0.3.tgz",
+ "integrity": "sha512-9GPewake2QhmnNe1p72Cejv0jyenH+gv3+3JlZf4kPR68ncqwF7YiUjxbnJnItWgq4Zep3+YqYmQ4PsIWjMPUQ==",
"dev": true,
"requires": {
- "@vue/cli-shared-utils": "^5.0.1"
+ "@vue/cli-shared-utils": "^5.0.3"
}
},
"@vue/cli-plugin-vuex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-5.0.1.tgz",
- "integrity": "sha512-5J/n+Ht4r2eVuncwCXcZPHzYCz/2haktle4WcggWiKeg3jSQVUJbjviPBs6sOo3y/LG3CEfZMP9bPJjVDbexpQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-5.0.3.tgz",
+ "integrity": "sha512-QlrtXH+Z7YyER6r1Iz54yT6WoWyjr2rpFpIAcJP+KbXMvY8J97aupAkXYhw7Lg4zX4O2FhLKztZrjJT2Gx6ZSQ==",
"dev": true,
"requires": {}
},
"@vue/cli-service": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-5.0.1.tgz",
- "integrity": "sha512-lhTW1d8waZv1VaRSvhE5pWWfkdmAgRTRSluDfyxkehZHMAWi//rd7a9zppN3k9Zr4X3oYVii+u7wR/RcTlr9cQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-5.0.3.tgz",
+ "integrity": "sha512-Mj41sc6VlPTwejZK4RTh17H3JLdJwKgeKHEgr17E4Vb6rZiByj29EYbr6lD9eEbbgCp/PwBkY4uPrMstCavcZQ==",
"dev": true,
"requires": {
"@babel/helper-compilation-targets": "^7.12.16",
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
"@soda/get-current-script": "^1.0.2",
"@types/minimist": "^1.2.0",
- "@vue/cli-overlay": "^5.0.1",
- "@vue/cli-plugin-router": "^5.0.1",
- "@vue/cli-plugin-vuex": "^5.0.1",
- "@vue/cli-shared-utils": "^5.0.1",
+ "@vue/cli-overlay": "^5.0.3",
+ "@vue/cli-plugin-router": "^5.0.3",
+ "@vue/cli-plugin-vuex": "^5.0.3",
+ "@vue/cli-shared-utils": "^5.0.3",
"@vue/component-compiler-utils": "^3.3.0",
"@vue/vue-loader-v15": "npm:vue-loader@^15.9.7",
"@vue/web-component-wrapper": "^1.3.0",
@@ -13606,9 +13633,9 @@
}
},
"@vue/cli-shared-utils": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-5.0.1.tgz",
- "integrity": "sha512-oL164c3yDhdLHgiFvSkXuP7z0eEY8gqTYzHHbvQJCIBtRZ/0H9Q7xICpAeMZ63lJvS2+fA5bQfv+kPII/kcjmQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-5.0.3.tgz",
+ "integrity": "sha512-xAHxFDYVohHWXOLdmGvka3ffQcRgKdACempFQkGJX74Q7OBf0zPf5WH+vQXhlR17eA3LmWdY+Nv8OfsIGim6Fg==",
"dev": true,
"requires": {
"chalk": "^4.1.2",
@@ -13617,7 +13644,7 @@
"launch-editor": "^2.2.1",
"lru-cache": "^6.0.0",
"node-fetch": "^2.6.7",
- "node-ipc": "^9.1.1",
+ "node-ipc": "9.2.1",
"open": "^8.0.2",
"ora": "^5.3.0",
"read-pkg": "^5.1.1",
@@ -14144,14 +14171,14 @@
"dev": true
},
"autoprefixer": {
- "version": "10.4.2",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.2.tgz",
- "integrity": "sha512-9fOPpHKuDW1w/0EKfRmVnxTDt8166MAnLI3mgZ1JCnhNtYWxcJ6Ud5CO/AVOZi/AvFa8DY9RTy3h3+tFBlrrdQ==",
+ "version": "10.4.4",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.4.tgz",
+ "integrity": "sha512-Tm8JxsB286VweiZ5F0anmbyGiNI3v3wGv3mz9W+cxEDYB/6jbnj6GM9H9mK3wIL8ftgl+C07Lcwb8PG5PCCPzA==",
"dev": true,
"requires": {
- "browserslist": "^4.19.1",
- "caniuse-lite": "^1.0.30001297",
- "fraction.js": "^4.1.2",
+ "browserslist": "^4.20.2",
+ "caniuse-lite": "^1.0.30001317",
+ "fraction.js": "^4.2.0",
"normalize-range": "^0.1.2",
"picocolors": "^1.0.0",
"postcss-value-parser": "^4.2.0"
@@ -14336,13 +14363,13 @@
}
},
"browserslist": {
- "version": "4.19.3",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.3.tgz",
- "integrity": "sha512-XK3X4xtKJ+Txj8G5c30B4gsm71s69lqXlkYui4s6EkKxuv49qjYlY6oVd+IFJ73d4YymtM3+djvvt/R/iJwwDg==",
+ "version": "4.20.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.2.tgz",
+ "integrity": "sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA==",
"dev": true,
"requires": {
- "caniuse-lite": "^1.0.30001312",
- "electron-to-chromium": "^1.4.71",
+ "caniuse-lite": "^1.0.30001317",
+ "electron-to-chromium": "^1.4.84",
"escalade": "^3.1.1",
"node-releases": "^2.0.2",
"picocolors": "^1.0.0"
@@ -14427,9 +14454,9 @@
}
},
"caniuse-lite": {
- "version": "1.0.30001312",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz",
- "integrity": "sha512-Wiz1Psk2MEK0pX3rUzWaunLTZzqS2JYZFzNKqAiJGiuxIjRPLgV6+VDPOg6lQOUxmDwhTlh198JsTTi8Hzw6aQ==",
+ "version": "1.0.30001319",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001319.tgz",
+ "integrity": "sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw==",
"dev": true
},
"case-sensitive-paths-webpack-plugin": {
@@ -14664,9 +14691,9 @@
"dev": true
},
"commander": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
- "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
+ "version": "2.20.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
"dev": true
},
"commondir": {
@@ -14871,13 +14898,13 @@
}
},
"css-loader": {
- "version": "6.6.0",
- "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.6.0.tgz",
- "integrity": "sha512-FK7H2lisOixPT406s5gZM1S3l8GrfhEBT3ZiL2UX1Ng1XWs0y2GPllz/OTyvbaHe12VgQrIXIzuEGVlbUhodqg==",
+ "version": "6.7.1",
+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.1.tgz",
+ "integrity": "sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==",
"dev": true,
"requires": {
"icss-utils": "^5.1.0",
- "postcss": "^8.4.5",
+ "postcss": "^8.4.7",
"postcss-modules-extract-imports": "^3.0.0",
"postcss-modules-local-by-default": "^4.0.0",
"postcss-modules-scope": "^3.0.0",
@@ -15002,51 +15029,51 @@
"dev": true
},
"cssnano": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.0.tgz",
- "integrity": "sha512-wWxave1wMlThGg4ueK98jFKaNqXnQd1nVZpSkQ9XvR+YymlzP1ofWqES1JkHtI250LksP9z5JH+oDcrKDJezAg==",
+ "version": "5.1.4",
+ "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.4.tgz",
+ "integrity": "sha512-hbfhVZreEPyzl+NbvRsjNo54JOX80b+j6nqG2biLVLaZHJEiqGyMh4xDGHtwhUKd5p59mj2GlDqlUBwJUuIu5A==",
"dev": true,
"requires": {
- "cssnano-preset-default": "^5.2.0",
+ "cssnano-preset-default": "^*",
"lilconfig": "^2.0.3",
"yaml": "^1.10.2"
}
},
"cssnano-preset-default": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.0.tgz",
- "integrity": "sha512-3N5Vcptj2pqVKpHVqH6ezOJvqikR2PdLTbTrsrhF61FbLRQuujAqZ2sKN5rvcMsb7hFjrNnjZT8CGEkxoN/Pwg==",
+ "version": "5.2.4",
+ "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.4.tgz",
+ "integrity": "sha512-w1Gg8xsebln6/axZ6qDFQHuglrGfbIHOIx0g4y9+etRlRab8CGpSpe6UMsrgJe4zhCaJ0LwLmc+PhdLRTwnhIA==",
"dev": true,
"requires": {
"css-declaration-sorter": "^6.0.3",
- "cssnano-utils": "^3.1.0",
+ "cssnano-utils": "^*",
"postcss-calc": "^8.2.3",
- "postcss-colormin": "^5.3.0",
- "postcss-convert-values": "^5.1.0",
- "postcss-discard-comments": "^5.1.0",
- "postcss-discard-duplicates": "^5.1.0",
- "postcss-discard-empty": "^5.1.0",
- "postcss-discard-overridden": "^5.1.0",
- "postcss-merge-longhand": "^5.1.0",
- "postcss-merge-rules": "^5.1.0",
- "postcss-minify-font-values": "^5.1.0",
- "postcss-minify-gradients": "^5.1.0",
- "postcss-minify-params": "^5.1.0",
- "postcss-minify-selectors": "^5.2.0",
- "postcss-normalize-charset": "^5.1.0",
- "postcss-normalize-display-values": "^5.1.0",
- "postcss-normalize-positions": "^5.1.0",
- "postcss-normalize-repeat-style": "^5.1.0",
- "postcss-normalize-string": "^5.1.0",
- "postcss-normalize-timing-functions": "^5.1.0",
- "postcss-normalize-unicode": "^5.1.0",
- "postcss-normalize-url": "^5.1.0",
- "postcss-normalize-whitespace": "^5.1.0",
- "postcss-ordered-values": "^5.1.0",
- "postcss-reduce-initial": "^5.1.0",
- "postcss-reduce-transforms": "^5.1.0",
- "postcss-svgo": "^5.1.0",
- "postcss-unique-selectors": "^5.1.0"
+ "postcss-colormin": "^*",
+ "postcss-convert-values": "^*",
+ "postcss-discard-comments": "^*",
+ "postcss-discard-duplicates": "^*",
+ "postcss-discard-empty": "^*",
+ "postcss-discard-overridden": "^*",
+ "postcss-merge-longhand": "^*",
+ "postcss-merge-rules": "^*",
+ "postcss-minify-font-values": "^*",
+ "postcss-minify-gradients": "^*",
+ "postcss-minify-params": "^*",
+ "postcss-minify-selectors": "^*",
+ "postcss-normalize-charset": "^*",
+ "postcss-normalize-display-values": "^*",
+ "postcss-normalize-positions": "^*",
+ "postcss-normalize-repeat-style": "^*",
+ "postcss-normalize-string": "^*",
+ "postcss-normalize-timing-functions": "^*",
+ "postcss-normalize-unicode": "^*",
+ "postcss-normalize-url": "^*",
+ "postcss-normalize-whitespace": "^*",
+ "postcss-ordered-values": "^*",
+ "postcss-reduce-initial": "^*",
+ "postcss-reduce-transforms": "^*",
+ "postcss-svgo": "^*",
+ "postcss-unique-selectors": "^*"
}
},
"cssnano-utils": {
@@ -15292,9 +15319,9 @@
"dev": true
},
"domhandler": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz",
- "integrity": "sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==",
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz",
+ "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==",
"dev": true,
"requires": {
"domelementtype": "^2.2.0"
@@ -15352,9 +15379,9 @@
"dev": true
},
"electron-to-chromium": {
- "version": "1.4.75",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.75.tgz",
- "integrity": "sha512-LxgUNeu3BVU7sXaKjUDD9xivocQLxFtq6wgERrutdY/yIOps3ODOZExK1jg8DTEg4U8TUCb5MLGeWFOYuxjF3Q==",
+ "version": "1.4.88",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.88.tgz",
+ "integrity": "sha512-oA7mzccefkvTNi9u7DXmT0LqvhnOiN2BhSrKerta7HeUC1cLoIwtbf2wL+Ah2ozh5KQd3/1njrGrwDBXx6d14Q==",
"dev": true
},
"emoji-regex": {
@@ -16126,9 +16153,9 @@
"dev": true
},
"fraction.js": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.3.tgz",
- "integrity": "sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
+ "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==",
"dev": true
},
"fresh": {
@@ -16401,6 +16428,14 @@
"param-case": "^3.0.4",
"relateurl": "^0.2.7",
"terser": "^5.10.0"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
+ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
+ "dev": true
+ }
}
},
"html-tags": {
@@ -16454,9 +16489,9 @@
}
},
"http-parser-js": {
- "version": "0.5.5",
- "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.5.tgz",
- "integrity": "sha512-x+JVEkO2PoM8qqpbPbOL3cqHPwerep7OwzK7Ay+sMQjKzaKCqWvjoXm5tqMP9tXWWTnTzAjIhXg+J99XYuPhPA==",
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz",
+ "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==",
"dev": true
},
"http-proxy": {
@@ -16471,9 +16506,9 @@
}
},
"http-proxy-middleware": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.3.tgz",
- "integrity": "sha512-1bloEwnrHMnCoO/Gcwbz7eSVvW50KPES01PecpagI+YLNLci4AcuKJrujW4Mc3sBLpFxMSlsLNHS5Nl/lvrTPA==",
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.4.tgz",
+ "integrity": "sha512-m/4FxX17SUvz4lJ5WPXOHDUuCwIqXLfLHs1s0uZ3oYjhoXlx9csYxaOa0ElDEJ+h8Q4iJ1s+lTMbiCa4EXIJqg==",
"dev": true,
"requires": {
"@types/http-proxy": "^1.17.8",
@@ -17302,9 +17337,9 @@
"dev": true
},
"mini-css-extract-plugin": {
- "version": "2.5.3",
- "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.3.tgz",
- "integrity": "sha512-YseMB8cs8U/KCaAGQoqYmfUuhhGW0a9p9XvWXrxVOkE3/IiISTLw4ALNt7JR5B2eYauFM+PQGSbXMDmVbR7Tfw==",
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.6.0.tgz",
+ "integrity": "sha512-ndG8nxCEnAemsg4FSgS+yNyHKgkTB4nPKqCOgh65j3/30qqC5RaSQQXMm++Y6sb6E1zRSxPkztj9fqxhS1Eo6w==",
"dev": true,
"requires": {
"schema-utils": "^4.0.0"
@@ -17485,9 +17520,9 @@
}
},
"node-forge": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.2.1.tgz",
- "integrity": "sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.0.tgz",
+ "integrity": "sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA==",
"dev": true
},
"node-ipc": {
@@ -17976,9 +18011,9 @@
}
},
"postcss": {
- "version": "8.4.7",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.7.tgz",
- "integrity": "sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A==",
+ "version": "8.4.12",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.12.tgz",
+ "integrity": "sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==",
"dev": true,
"requires": {
"nanoid": "^3.3.1",
@@ -18018,9 +18053,9 @@
}
},
"postcss-discard-comments": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.0.tgz",
- "integrity": "sha512-L0IKF4jAshRyn03SkEO6ar/Ipz2oLywVbg2THf2EqqdNkBwmVMxuTR/RoAltOw4piiaLt3gCAdrbAqmTBInmhg==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.1.tgz",
+ "integrity": "sha512-5JscyFmvkUxz/5/+TB3QTTT9Gi9jHkcn8dcmmuN68JQcv3aQg4y88yEHHhwFB52l/NkaJ43O0dbksGMAo49nfQ==",
"dev": true,
"requires": {}
},
@@ -18032,9 +18067,9 @@
"requires": {}
},
"postcss-discard-empty": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.0.tgz",
- "integrity": "sha512-782T/buGgb3HOuHOJAHpdyKzAAKsv/BxWqsutnZ+QsiHEcDkY7v+6WWdturuBiSal6XMOO1p1aJvwXdqLD5vhA==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz",
+ "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==",
"dev": true,
"requires": {}
},
@@ -18068,13 +18103,13 @@
}
},
"postcss-merge-longhand": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.0.tgz",
- "integrity": "sha512-Gr46srN2tsLD8fudKYoHO56RG0BLQ2nsBRnSZGY04eNBPwTeWa9KeHrbL3tOLAHyB2aliikycPH2TMJG1U+W6g==",
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.2.tgz",
+ "integrity": "sha512-18/bp9DZnY1ai9RlahOfLBbmIUKfKFPASxRCiZ1vlpZqWPCn8qWPFlEozqmWL+kBtcEQmG8W9YqGCstDImvp/Q==",
"dev": true,
"requires": {
"postcss-value-parser": "^4.2.0",
- "stylehacks": "^5.1.0"
+ "stylehacks": "^*"
}
},
"postcss-merge-rules": {
@@ -18110,9 +18145,9 @@
}
},
"postcss-minify-params": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.0.tgz",
- "integrity": "sha512-q67dcts4Hct6x8+JmhBgctHkbvUsqGIg2IItenjE63iZXMbhjr7AlVZkNnKtIGt/1Wsv7p/7YzeSII6Q+KPXRg==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.1.tgz",
+ "integrity": "sha512-WCpr+J9Uz8XzMpAfg3UL8z5rde6MifBbh5L8bn8S2F5hq/YDJJzASYCnCHvAB4Fqb94ys8v95ULQkW2EhCFvNg==",
"dev": true,
"requires": {
"browserslist": "^4.16.6",
@@ -18238,9 +18273,9 @@
}
},
"postcss-normalize-whitespace": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.0.tgz",
- "integrity": "sha512-7O1FanKaJkpWFyCghFzIkLhehujV/frGkdofGLwhg5upbLyGsSfiTcZAdSzoPsSUgyPCkBkNMeWR8yVgPdQybg==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz",
+ "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==",
"dev": true,
"requires": {
"postcss-value-parser": "^4.2.0"
@@ -18296,9 +18331,9 @@
}
},
"postcss-unique-selectors": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.0.tgz",
- "integrity": "sha512-LmUhgGobtpeVJJHuogzjLRwJlN7VH+BL5c9GKMVJSS/ejoyePZkXvNsYUtk//F6vKOGK86gfRS0xH7fXQSDtvA==",
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz",
+ "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==",
"dev": true,
"requires": {
"postcss-selector-parser": "^6.0.5"
@@ -18317,9 +18352,9 @@
"dev": true
},
"prettier": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
- "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.0.tgz",
+ "integrity": "sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==",
"dev": true,
"optional": true
},
@@ -19338,12 +19373,6 @@
"source-map-support": "~0.5.20"
},
"dependencies": {
- "commander": {
- "version": "2.20.3",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
- "dev": true
- },
"source-map": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
diff --git a/package.json b/package.json
index 4e144867..c90c3dcc 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "fhemapp",
- "version": "3.30.3",
+ "version": "3.31.0",
"private": true,
"author": "jemu75",
"scripts": {
@@ -18,7 +18,7 @@
"vue-i18n": "^8.26.3",
"vue-json-pretty": "^1.8.2",
"vue-router": "^3.5.1",
- "vuetify": "^2.6.3"
+ "vuetify": "^2.6.3"
},
"devDependencies": {
"@babel/core": "^7.12.16",
@@ -26,7 +26,7 @@
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
- "@vue/cli-service": "~5.0.0",
+ "@vue/cli-service": "^5.0.3",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"sass": "^1.32.7",
diff --git a/public/cfg/templ_shellyrgb_mqtt.json b/public/cfg/templ_shellyrgb_mqtt.json
new file mode 100644
index 00000000..ca4c409c
--- /dev/null
+++ b/public/cfg/templ_shellyrgb_mqtt.json
@@ -0,0 +1,32 @@
+{
+ "name": "shellyrgb_mqtt",
+ "author": "jemu75",
+ "date": "2022-03-19",
+ "expand": true,
+ "status": {
+ "bar": ["state:on:100:success","state:off:0:success"],
+ "error": ["network:^(?!connected):100:error:keine Verbindung"]
+ },
+ "main": [
+ {
+ "leftBtn": "mdi-power-off",
+ "leftClick": ["state::off"],
+ "text": ["state:on:an","state:off:aus"],
+ "rightBtn": "mdi-power-on",
+ "rightClick": ["state::on"]
+ },
+ {
+ "leftBtn": "mdi-lightbulb-outline",
+ "leftClick": ["gain::gain 0"],
+ "slider": ["gain::gain %v:%n:0:100"],
+ "rightBtn": "mdi-lightbulb-on-outline",
+ "rightClick": ["gain::gain 100"]
+ }
+ ],
+ "info": {
+ "left1": ["state:on::mdi-lightbulb","state:off::mdi-lightbulb-off"],
+ "left2": ["color_0_power:0.1:%n.2w"],
+ "right1": ["new_fw:true::mdi-cloud-download"],
+ "right2": ["wifi_sta_connected:true::mdi-wifi","network:::mdi-wifi-off"]
+ }
+}
diff --git a/src/App.vue b/src/App.vue
index 86d196fb..0702e567 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -26,18 +26,18 @@
- {{ appBar.header }}
+ {{ appBar.mobileHeader }}
{{ appBar.header }}
+
connected):100:error:keine Verbindung"]
+ },
+ "main": [
+ {
+ "leftBtn": "mdi-power-off",
+ "leftClick": ["state::off"],
+ "text": ["state:on:an","state:off:aus"],
+ "rightBtn": "mdi-power-on",
+ "rightClick": ["state::on"]
+ },
+ {
+ "leftBtn": "mdi-lightbulb-outline",
+ "leftClick": ["gain::gain 0"],
+ "slider": ["gain::gain %v:%n:0:100"],
+ "rightBtn": "mdi-lightbulb-on-outline",
+ "rightClick": ["gain::gain 100"]
+ }
+ ],
+ "info": {
+ "left1": ["state:on::mdi-lightbulb","state:off::mdi-lightbulb-off"],
+ "left2": ["color_0_power:0.1:%n.2w"],
+ "right1": ["new_fw:true::mdi-cloud-download"],
+ "right2": ["wifi_sta_connected:true::mdi-wifi","network:::mdi-wifi-off"]
+ }
+}
diff --git a/www/fhemapp/css/app.3de6559d.css b/www/fhemapp/css/app.3de6559d.css
deleted file mode 100644
index 7131df95..00000000
--- a/www/fhemapp/css/app.3de6559d.css
+++ /dev/null
@@ -1 +0,0 @@
-.noselect[data-v-4f254ced]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}
\ No newline at end of file
diff --git a/www/fhemapp/css/app.eb6c420f.css b/www/fhemapp/css/app.eb6c420f.css
new file mode 100644
index 00000000..55b95d00
--- /dev/null
+++ b/www/fhemapp/css/app.eb6c420f.css
@@ -0,0 +1 @@
+.noselect[data-v-dd5f8942]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}
\ No newline at end of file
diff --git a/www/fhemapp/index.html b/www/fhemapp/index.html
index 4aa8e1c5..1f139d59 100644
--- a/www/fhemapp/index.html
+++ b/www/fhemapp/index.html
@@ -1 +1 @@
-fhemapp
\ No newline at end of file
+fhemapp
\ No newline at end of file
diff --git a/www/fhemapp/js/320-legacy.be5fa758.js b/www/fhemapp/js/775-legacy.12f4371a.js
similarity index 71%
rename from www/fhemapp/js/320-legacy.be5fa758.js
rename to www/fhemapp/js/775-legacy.12f4371a.js
index 943f4c4c..a38a1b72 100644
--- a/www/fhemapp/js/320-legacy.be5fa758.js
+++ b/www/fhemapp/js/775-legacy.12f4371a.js
@@ -1 +1 @@
-"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[320],{4320:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-row",e._l(e.app.data.deviceList,(function(e){return n(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},s=[],a=(n(1539),n(8783),n(3948),n(8309),n(4916),n(4723),n(7327),n(3123),{name:"DevicesView",components:{templ_default:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(846)]).then(n.bind(n,8115))},templ_panel:function(){return Promise.all([n.e(121),n.e(337)]).then(n.bind(n,2965))},templ_chart:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(387)]).then(n.bind(n,387))},templ_weather:function(){return n.e(947).then(n.bind(n,9285))},templ_scenes:function(){return n.e(869).then(n.bind(n,1869))},templ_sonos:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(475)]).then(n.bind(n,400))},templ_sysmon:function(){return Promise.all([n.e(121),n.e(997)]).then(n.bind(n,214))},templ_hmlan:function(){return n.e(438).then(n.bind(n,7438))},templ_cam:function(){return Promise.all([n.e(121),n.e(396)]).then(n.bind(n,8519))},templ_iframe:function(){return Promise.all([n.e(121),n.e(154)]).then(n.bind(n,2756))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()},"app.session.ready":function(e){e&&this.subscribe()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader:function(){this.app.options.mobileHeader&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.header="":this.$fhem.app.appBar.header=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.header=this.$route.name)},subscribe:function(){var e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}}),r=a,o=n(1001),p=n(3453),h=n.n(p),u=n(2877),l=(0,o.Z)(r,i,s,!1,null,null,null),m=l.exports;h()(l,{VRow:u.Z})}}]);
\ No newline at end of file
+"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[775],{3775:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-row",e._l(e.app.data.deviceList,(function(e){return n(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},s=[],a=(n(1539),n(8783),n(3948),n(8309),n(4916),n(4723),n(7327),n(3123),{name:"DevicesView",components:{templ_default:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(846)]).then(n.bind(n,8115))},templ_panel:function(){return Promise.all([n.e(121),n.e(337)]).then(n.bind(n,2965))},templ_chart:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(387)]).then(n.bind(n,387))},templ_weather:function(){return n.e(947).then(n.bind(n,9285))},templ_scenes:function(){return n.e(869).then(n.bind(n,1869))},templ_sonos:function(){return Promise.all([n.e(121),n.e(288),n.e(322),n.e(475)]).then(n.bind(n,400))},templ_sysmon:function(){return Promise.all([n.e(121),n.e(997)]).then(n.bind(n,214))},templ_hmlan:function(){return n.e(438).then(n.bind(n,7438))},templ_cam:function(){return Promise.all([n.e(121),n.e(396)]).then(n.bind(n,8519))},templ_iframe:function(){return Promise.all([n.e(121),n.e(154)]).then(n.bind(n,2756))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()},"app.session.ready":function(e){e&&this.subscribe()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader:function(){(this.app.options.mobileHeader||"page"===this.app.options.mobileHeaderContent)&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.mobileHeader="":this.$fhem.app.appBar.mobileHeader=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.mobileHeader=this.$route.name)},subscribe:function(){var e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}}),r=a,o=n(1001),p=n(3453),u=n.n(p),h=n(2877),l=(0,o.Z)(r,i,s,!1,null,null,null),m=l.exports;u()(l,{VRow:h.Z})}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/320.2ba04f2e.js b/www/fhemapp/js/775.d1046d1a.js
similarity index 61%
rename from www/fhemapp/js/320.2ba04f2e.js
rename to www/fhemapp/js/775.d1046d1a.js
index c170597a..6f83a054 100644
--- a/www/fhemapp/js/320.2ba04f2e.js
+++ b/www/fhemapp/js/775.d1046d1a.js
@@ -1 +1 @@
-"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[320],{4320:function(e,t,s){s.r(t),s.d(t,{default:function(){return d}});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("v-row",e._l(e.app.data.deviceList,(function(e){return s(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},i=[],n={name:"DevicesView",components:{templ_default:()=>Promise.all([s.e(121),s.e(288),s.e(322),s.e(846)]).then(s.bind(s,8115)),templ_panel:()=>Promise.all([s.e(121),s.e(337)]).then(s.bind(s,2965)),templ_chart:()=>Promise.all([s.e(121),s.e(288),s.e(285),s.e(387)]).then(s.bind(s,387)),templ_weather:()=>s.e(947).then(s.bind(s,9285)),templ_scenes:()=>s.e(869).then(s.bind(s,1869)),templ_sonos:()=>Promise.all([s.e(121),s.e(288),s.e(322),s.e(475)]).then(s.bind(s,400)),templ_sysmon:()=>Promise.all([s.e(121),s.e(997)]).then(s.bind(s,214)),templ_hmlan:()=>s.e(438).then(s.bind(s,7438)),templ_cam:()=>Promise.all([s.e(121),s.e(396)]).then(s.bind(s,8519)),templ_iframe:()=>Promise.all([s.e(121),s.e(154)]).then(s.bind(s,2756))},data:()=>({app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}),watch:{$route(){this.subscribe()},"app.session.ready"(e){e&&this.subscribe()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader(){this.app.options.mobileHeader&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.header="":this.$fhem.app.appBar.header=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.header=this.$route.name)},subscribe(){let e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}},p=n,h=s(1001),r=s(3453),o=s.n(r),l=s(2877),m=(0,h.Z)(p,a,i,!1,null,null,null),d=m.exports;o()(m,{VRow:l.Z})}}]);
\ No newline at end of file
+"use strict";(self["webpackChunkfhemapp"]=self["webpackChunkfhemapp"]||[]).push([[775],{3775:function(e,t,s){s.r(t),s.d(t,{default:function(){return d}});var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("v-row",e._l(e.app.data.deviceList,(function(e){return s(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},a=[],n={name:"DevicesView",components:{templ_default:()=>Promise.all([s.e(121),s.e(288),s.e(322),s.e(846)]).then(s.bind(s,8115)),templ_panel:()=>Promise.all([s.e(121),s.e(337)]).then(s.bind(s,2965)),templ_chart:()=>Promise.all([s.e(121),s.e(288),s.e(285),s.e(387)]).then(s.bind(s,387)),templ_weather:()=>s.e(947).then(s.bind(s,9285)),templ_scenes:()=>s.e(869).then(s.bind(s,1869)),templ_sonos:()=>Promise.all([s.e(121),s.e(288),s.e(322),s.e(475)]).then(s.bind(s,400)),templ_sysmon:()=>Promise.all([s.e(121),s.e(997)]).then(s.bind(s,214)),templ_hmlan:()=>s.e(438).then(s.bind(s,7438)),templ_cam:()=>Promise.all([s.e(121),s.e(396)]).then(s.bind(s,8519)),templ_iframe:()=>Promise.all([s.e(121),s.e(154)]).then(s.bind(s,2756))},data:()=>({app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}),watch:{$route(){this.subscribe()},"app.session.ready"(e){e&&this.subscribe()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader(){(this.app.options.mobileHeader||"page"===this.app.options.mobileHeaderContent)&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.mobileHeader="":this.$fhem.app.appBar.mobileHeader=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.mobileHeader=this.$route.name)},subscribe(){let e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}},p=n,o=s(1001),r=s(3453),h=s.n(r),l=s(2877),m=(0,o.Z)(p,i,a,!1,null,null,null),d=m.exports;h()(m,{VRow:l.Z})}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/app-legacy.9b866fe4.js b/www/fhemapp/js/app-legacy.9b866fe4.js
new file mode 100644
index 00000000..0d0c30bc
--- /dev/null
+++ b/www/fhemapp/js/app-legacy.9b866fe4.js
@@ -0,0 +1 @@
+(function(){var t={3437:function(t,e,n){"use strict";n(6992),n(8674),n(9601),n(7727);var a=n(144),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-app",{staticClass:"noselect"},[a("v-overlay",{attrs:{value:t.app.options.loading}},[a("v-progress-circular",{attrs:{indeterminate:"",size:"64"}})],1),a("v-app-bar",{attrs:{app:"",color:t.appBar.color,dark:"","clipped-left":""}},[t.appBar.drawer?t._e():a("div",[a("v-app-bar-nav-icon",{on:{click:function(e){e.stopPropagation(),t.appBar.drawer=!t.appBar.drawer}}})],1),t.appBar.drawer?a("div",{staticClass:"text-h5"},[t._v(" "+t._s(t.appBar.clock)+" ")]):t._e(),a("v-spacer"),t.app.options.mobileHeader||t.app.options.mobileHeaderContent?a("div",{staticClass:"text-h5 hidden-lg-and-up"},[t._v(" "+t._s(t.appBar.mobileHeader)+" ")]):t._e(),a("div",{staticClass:"text-h5 hidden-md-and-down"},[t._v(" "+t._s(t.appBar.header)+" ")]),a("v-spacer"),t.app.options.debugMode?a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.goTo("/syslog")}}},[a("v-icon",[t._v("mdi-format-list-bulleted")])],1):t._e(),t.app.options.reloadBtn?a("v-btn",{attrs:{icon:""},on:{click:function(e){return t.reload()}}},[a("v-icon",[t._v("mdi-reload")])],1):t._e(),t.app.options.homeBtn&&!t.appBar.drawer?a("v-btn",{staticClass:"text-h5",attrs:{icon:""},on:{click:function(e){return t.goTo()}}},[a("v-icon",[t._v("mdi-home")])],1):t._e(),a("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,s=e.attrs;return[a("v-icon",t._g(t._b({staticClass:"ml-3",attrs:{small:"",color:t.status.color},domProps:{textContent:t._s(t.status.icon)}},"v-icon",s,!1),n))]}}])},[a("div",{domProps:{textContent:t._s(t.status.text)}}),a("div",{domProps:{textContent:t._s(t.status.time)}})])],1),a("v-navigation-drawer",{attrs:{app:"",color:"secondary",dark:this.$vuetify.theme.dark,clipped:""},model:{value:t.appBar.drawer,callback:function(e){t.$set(t.appBar,"drawer",e)},expression:"appBar.drawer"}},[a("v-img",{attrs:{src:n(2862)}}),a("v-divider"),a("v-list",{attrs:{nav:""}},[a("v-list-item",{key:"home",attrs:{link:"",to:"/"}},[a("v-list-item-icon",[a("v-icon",[t._v("mdi-home")])],1),a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-left"},[t._v(" "+t._s(t.$t("app.navigation.home"))+" ")])],1)],1),a("v-divider"),t.showGroups?a("v-list-group",{attrs:{color:"secondary lighten-4","prepend-icon":"mdi-lightbulb-group",value:t.app.options.expandGroups},scopedSlots:t._u([{key:"activator",fn:function(){return[a("v-list-item-title",[t._v(t._s(t.$t("app.navigation.group")))])]},proxy:!0}],null,!1,444615855)},t._l(t.app.data.groupList,(function(e){return a("v-chip",{key:e.title,staticClass:"ma-2",attrs:{link:"",to:"/devices/"+e.route}},[t._v(" "+t._s(e.title)+" ")])})),1):t._e(),t.showRooms?a("v-list-group",{attrs:{color:"secondary lighten-4","prepend-icon":"mdi-floor-plan",value:t.app.options.expandRooms},scopedSlots:t._u([{key:"activator",fn:function(){return[a("v-list-item-title",[t._v(t._s(t.$t("app.navigation.room")))])]},proxy:!0}],null,!1,438615151)},t._l(t.app.data.roomList,(function(e){return a("v-chip",{key:e.title,staticClass:"ma-2",attrs:{link:"",to:"/devices/"+e.route}},[t._v(" "+t._s(e.title)+" ")])})),1):t._e(),a("v-divider"),a("v-list-item",{key:"dashboard",attrs:{link:"",to:"/dashboard"}},[a("v-list-item-icon",[a("v-icon",[t._v("mdi-view-dashboard")])],1),a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-left"},[t._v(" "+t._s(t.$t("app.navigation.dashboard"))+" ")])],1)],1),a("v-divider"),a("v-list-item",{key:"system",attrs:{link:"",to:"/system"}},[a("v-list-item-icon",[a("v-icon",[t._v("mdi-tools")])],1),a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-left"},[t._v(" "+t._s(t.$t("app.navigation.system"))+" ")])],1)],1),a("v-divider"),a("v-list-item",[a("v-list-item-content",[a("v-list-item-subtitle",[t._v(" "+t._s(t.version)+" ")])],1)],1)],1)],1),a("v-main",[a("v-container",{attrs:{fluid:""}},[a("Broadcaster"),a("router-view")],1)],1)],1)},r=[],i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-alert",{attrs:{value:t.alert,type:t.type,dense:"",text:"",outlined:""}},[n("v-row",{attrs:{align:"center"}},[n("v-col",[n("div",[t._v(" "+t._s(t.message)+" ")]),n("div",[t._v(" "+t._s(t.meta)+" ")])]),n("v-col",{staticClass:"shrink"},[n("v-btn",{attrs:{icon:"",small:""},on:{click:function(e){return t.clearMessage()}}},[n("v-icon",{attrs:{color:t.type}},[t._v(" mdi-close-circle ")])],1)],1)],1)],1)},o=[],p=(n(561),{name:"BroadCaster",data:function(){return{alert:!1,type:"info",types:["","error","info","info","success","warning"],message:"",meta:"",msgList:[]}},watch:{msgList:function(){this.msgList&&this.msgList.length>0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var t=this;this.$fhem.on("message",(function(e){var n={lvl:5,msg:"no valid message received",meta:""};Object.assign(n,e),t.msgList.unshift(n)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),c=p,l=n(1001),u=n(3453),h=n.n(u),d=n(1234),m=n(3150),f=n(2102),v=n(6428),g=n(2877),b=(0,l.Z)(c,i,o,!1,null,null,null),y=b.exports;h()(b,{VAlert:d.Z,VBtn:m.Z,VCol:f.Z,VIcon:v.Z,VRow:g.Z});var k={components:{Broadcaster:y},data:function(){return{appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1,mobileHeaderContent:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+n(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},watch:{"app.session.connect":function(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload:function(){location.reload(!0)},goTo:function(t){var e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},x=k,w=n(7524),O=n(426),C=n(5206),Z=n(5424),R=n(9846),_=n(1418),L=n(7047),j=n(6816),T=n(9443),S=n(7620),E=n(1960),I=n(459),B=n(7877),V=n(5132),D=n(1058),A=n(624),F=n(9762),P=n(9330),N=(0,l.Z)(x,s,r,!1,null,"dd5f8942",null),H=N.exports;h()(N,{VApp:w.Z,VAppBar:O.Z,VAppBarNavIcon:C.Z,VBtn:m.Z,VChip:Z.Z,VContainer:R.Z,VDivider:_.Z,VIcon:v.Z,VImg:L.Z,VList:j.Z,VListGroup:T.Z,VListItem:S.Z,VListItemContent:E.km,VListItemIcon:I.Z,VListItemSubtitle:E.oZ,VListItemTitle:E.V9,VMain:B.Z,VNavigationDrawer:V.Z,VOverlay:D.Z,VProgressCircular:A.Z,VSpacer:F.Z,VTooltip:P.Z});n(1539),n(8783),n(3948);var M=n(8345);a.Z.use(M.Z);var $=[{path:"/",name:"Home",component:function(){return n.e(775).then(n.bind(n,3775))}},{path:"/system",name:"System",component:function(){return n.e(775).then(n.bind(n,3775))}},{path:"/dashboard",name:"Dashboard",component:function(){return n.e(775).then(n.bind(n,3775))}},{path:"/devices/:filter",name:"Devices",component:function(){return n.e(775).then(n.bind(n,3775))}},{path:"/settings",name:"Settings",component:function(){return n.e(884).then(n.bind(n,6884))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(44)]).then(n.bind(n,4044))}}],U=new M.Z({mode:"hash",base:"",routes:$}),q=U,z=n(9132),G=n(9146),J=n(1846);a.Z.use(z.Z);var X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}},K=new z.Z(X),W=n(7166),Q=n.n(W),Y=(n(4747),n(4916),n(4723),n(7152));function tt(){var t=n(8973),e={};return t.keys().forEach((function(n){var a=n.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){var s=a[1];e[s]=t(n)}})),e}a.Z.use(Y.Z);var et=new Y.Z({locale:"de",fallbackLocale:"en",messages:tt()}),nt=n(2032),at=n(8932),st=n(6198),rt=n(9726),it=n(6133),ot=n(2751),pt=n(796),ct=n(6035),lt=(n(5666),n(7042),n(3123),n(5306),n(7941),n(8309),n(1249),n(2707),n(9600),n(7601),n(6977),n(9714),n(2222),n(4603),n(8450),n(8386),n(2479),n(7187)),ut=n.n(lt),ht=function(t){(0,pt.Z)(n,t);var e=(0,ct.Z)(n);function n(){var t;return(0,it.Z)(this,n),t=e.call(this),t.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null,mobileHeader:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]},t}return(0,ot.Z)(n,[{key:"loading",set:function(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}},{key:"log",value:function(t){var e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],n=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),s=(new Date).getMilliseconds(),r={time:a+":"+("000"+s).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:n[t.lvl||5]};this.app.options.logRecord&&r.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(r),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==r.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",r))}},{key:"getDate",value:function(t){var e=t?parseInt(t):0;return function(t){return new Date(t.setDate(t.getDate()-e)).toISOString()}(new Date).split("T")[0]}},{key:"getDateTime",value:function(t){var e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"createURL",value:function(t){var e=this.app.connection,n=e.location?e.location:"",a=e.port?":"+e.port.replace(":",""):"",s=e.path?"/"+e.path.replace("/",""):"",r="";return"object"==(0,rt.Z)(t)&&t.length>0&&t.forEach((function(t){t.param&&t.value&&(r+=r?"&":"?",r+=t.param+"="+encodeURIComponent(t.value))})),n+a+s+r}},{key:"getEl",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a0?s.push.apply(s,(0,at.Z)(e)):s.push(e)),"string"===typeof e&&s.push({param:"cmd",value:e}),r=this.createURL(s),this.log({lvl:3,msg:"Request: "+r}),t.next=9,fetch(r).then((function(t){var e=null;return"csrf"===n&&(e=t.headers.get("x-fhem-csrftoken")),"json"===n&&(e=t.json()),e||(e=t.text()),"object"===(0,rt.Z)(a)?Object.assign(a,{data:e}):e})).catch((function(t){return i.log({lvl:1,msg:"Request failed "+r,meta:t.message})}));case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n,a){return t.apply(this,arguments)}return e}()},{key:"getJsonFile",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=new Headers,n.append("pragma","no-cache"),n.append("cache-control","no-cache"),a={method:"GET",headers:n},t.next=6,fetch(e,a).then((function(t){return t.json()})).catch((function(t){return r.log({lvl:1,msg:"Read Json-Data from "+e+" failed.",meta:t})}));case 6:return s=t.sent,s&&this.log({lvl:5,msg:"Json-Data parsed from "+e,meta:s}),t.next=10,s;case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"readConfig",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getJsonFile(e);case 2:if(n=t.sent,n){for(a=0,s=Object.keys(n);a0)){t.next=41;break}n=[],a=[],this.app.data.routeList.splice(0),s=(0,nt.Z)(e.Results),t.prev=8,s.s();case 10:if((r=s.n()).done){t.next=27;break}return i=r.value,t.next=14,this.createOptions(i);case 14:if(o=t.sent,!o.template){t.next=25;break}return t.next=18,this.getTemplate(o);case 18:p=t.sent,p&&this.app.templates.push(p),o.room&&this.createNaviItems(o,n,"room"),o.group&&this.createNaviItems(o,a,"group"),o.home&&this.createRoutes(o,"/"),o.dashboard&&this.createRoutes(o,"/dashboard"),o.system&&this.createRoutes(o,"/system");case 25:t.next=10;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](8),s.e(t.t0);case 32:return t.prev=32,s.f(),t.finish(32);case 35:n.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),a.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),this.app.data.roomList=Object.assign([],n),this.app.data.groupList=Object.assign([],a),this.app.session.ready=!0,this.loading=!1;case 41:case"end":return t.stop()}}),t,this,[[8,29,32,35]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"createConnected",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},a=this.app.hasConnected.indexOf(e.Name),-1!=a){t.next=30;break}if(this.app.hasConnected.push(e.Name),!("connected"in e.Options)){t.next=28;break}s=Object.keys(e.Options.connected),r=0,i=s;case 7:if(!(re.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0})),this.app.data.deviceList=Object.assign([],r),this.loading=!1),i++;case 39:t.next=15;break;case 41:t.next=46;break;case 43:t.prev=43,t.t0=t["catch"](13),o.e(t.t0);case 46:return t.prev=46,o.f(),t.finish(46);case 49:case"end":return t.stop()}}),t,this,[[13,43,46,49]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"checkUpdate",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]);case 2:if(e=t.sent,n=0,e){a=e.split("\n").splice(2),s=(0,nt.Z)(a);try{for(s.s();!(r=s.n()).done;)i=r.value,i.match("UPD")&&!i.match("excluded")&&n++}catch(o){s.e(o)}finally{s.f()}}return t.abrupt("return",n>0);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleLogData",value:function(t){var e=t.split("\n");e.length>3&&e.splice(-3,3);var n,a=[],s=e.length>this.app.options.maxChartPoints?parseInt(e.length/this.app.options.maxChartPoints):1,r=s,i=0,o=1,p=(0,nt.Z)(e);try{for(p.s();!(n=p.n()).done;){var c=n.value,l=c.split(" "),u=Date.parse(l[0].replace("_","T")),h=parseFloat(l[1]);i+=h,(o>=r||o===e.length)&&(o===e.length&&(s-=r-o),a.push({timestamp:u,value:i/s}),r+=s,i=0),o++}}catch(d){p.e(d)}finally{p.f()}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+e.length+")"}),a}},{key:"readLogData",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,c,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],this.loading=!0,!(e.defs&&e.defs.length>0)){t.next=40;break}a=0,s=(0,nt.Z)(e.defs),t.prev=5,s.s();case 7:if((r=s.n()).done){t.next=32;break}return i=r.value,o=/\(.*\)/.exec(i),p=o?i.replace(o[0],"_").split(":"):i.split(":"),c="get ",c+=p[0]?p[0]:e.deviceName,c+=e.from?" - - "+e.from:"",c+=e.to?" "+e.to:"",c+=o?" "+o[0].replace(/\(|\)/g,""):" 4:"+p[1],t.next=18,this.request([{param:"cmd",value:c},{param:"XHR",value:"1"}],"text",{id:a});case 18:if(l=t.sent,!l){t.next=29;break}return t.t0=n,t.t1=l.id,t.t2=this,t.next=25,l.data;case 25:t.t3=t.sent,t.t4=t.t2.handleLogData.call(t.t2,t.t3),t.t5={id:t.t1,data:t.t4},t.t0.push.call(t.t0,t.t5);case 29:a++;case 30:t.next=7;break;case 32:t.next=37;break;case 34:t.prev=34,t.t6=t["catch"](5),s.e(t.t6);case 37:return t.prev=37,s.f(),t.finish(37);case 40:return this.loading=!1,t.abrupt("return",Object.assign(e,{data:n}));case 42:case"end":return t.stop()}}),t,this,[[5,34,37,40]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"replaceVals",value:function(t,e){for(var n=/-?[0-9]/.exec(e),a=[],s=2;s1?c+"Tage ":c>0?c+"Tag ":"";h+=l>0?l+"h ":"",h+=u>0?u+"min":"",r=t[s].replace("%a",h)}if(/%n/.test(t[s])&&n){/%n.[0-9]/.test(t[s])||(t[s]=t[s].replace("%n","%n.0"));var d=/%n../.exec(t[s]),m=d[0].replace("%n.","");r=t[s].replace(d[0],parseFloat(e.slice(n.index)).toFixed(m))}if(/%i/.test(t[s])&&n){var f=parseFloat(t[s].split("%i")[1]);if("isNaN"!=f){var v=f.toString().split(".")[1]||"",g=v.length,b=parseFloat(e.slice(n.index))+f;r=t[s].replace("%i"+f,b.toFixed(g))}}r=r.replace(/:/g,":"),a.push(r)}return a}},{key:"handleVals",value:function(t,e){var n=[];if("string"===typeof e){var a=("::"+e).split(":");n=this.replaceVals(a,"")}if("object"===(0,rt.Z)(t)&&"object"===(0,rt.Z)(e)&&e.length>0){var s,r=(0,nt.Z)(e);try{for(r.s();!(s=r.n()).done;){var i=s.value,o=i.split(":");if(o.length>2){var p=/\./.test(o[0])?o[0].split("."):["Readings",o[0],"Value"],c=this.getEl.apply(this,[t].concat((0,at.Z)(p)))||this.getEl(t,"Readings",o[0],"Value");if(c){var l=!1,u=parseFloat(o[1]);if(isNaN(u))RegExp(o[1]?o[1]:".").test(c)&&(l=!0);else{var h=/-?[0-9]/.exec(c);-1!=h.index&&parseFloat(c.slice(h.index))>=u&&(l=!0)}if(l){n=this.replaceVals(o,c);break}}}}}catch(d){r.e(d)}finally{r.f()}}return n}},{key:"handleTemplate",value:function(t){var e=this.getEl(t,"Options","setup","show"),n=this.getEl(t,"Options","setup","status","bar"),a=this.getEl(t,"Options","setup","status","error"),s=this.getEl(t,"Options","setup","info");if(e){var r=this.handleVals(t,e);t.Options.show="false"!==r[0],r[1]&&(t.Options.setup.size=r[1]),r[2]&&(t.Options.sortby=r[2])}if(n){var i=this.getEl(t,"Options","setup","status","min")||0,o=this.getEl(t,"Options","setup","status","max")||100,p=this.handleVals(t,n),c=100/(o-i),l=(p[0]||"0"-i)*c;t.Options.status.level=p[2]?100-l:l,t.Options.status.color=p[1]||"success"}if(a){var u=this.handleVals(t,a);u.length>0?(t.Options.status.level=u[0]||"100",t.Options.status.color=u[1]||"error",t.Options.status.error=u[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(s){var h=this.handleVals(t,s.left1),d=this.handleVals(t,s.left2),m=this.handleVals(t,s.mid1),f=this.handleVals(t,s.mid2),v=this.handleVals(t,s.right1),g=this.handleVals(t,s.right2);t.Options.info.left1IconColor=h[2]||"",t.Options.info.left1Icon=h[1]||"",t.Options.info.left1Text=h[0]||"",t.Options.info.left2IconColor=d[2]||"",t.Options.info.left2Icon=d[1]||"",t.Options.info.left2Text=d[0]||"",t.Options.info.mid1IconColor=m[2]||"",t.Options.info.mid1Icon=m[1]||"",t.Options.info.mid1Text=m[0]||"",t.Options.info.mid2IconColor=f[2]||"",t.Options.info.mid2Icon=f[1]||"",t.Options.info.mid2Text=f[0]||"",t.Options.info.right1IconColor=v[2]||"",t.Options.info.right1Icon=v[1]||"",t.Options.info.right1Text=v[0]||"",t.Options.info.right2IconColor=g[2]||"",t.Options.info.right2Icon=g[1]||"",t.Options.info.right2Text=g[0]||""}}},{key:"handleData",value:function(t){var e=JSON.parse(t),n=null;if(!e[2].match("0){var i=this.handleData(r);if(i){var o,p=0,c=(0,nt.Z)(this.app.data.deviceList);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=this.app.data.deviceList[p],h=Object.assign({},u);if(l.Name===i.Name&&("Readings"===i.devicePart&&this.getEl(h,"Readings",i.param,i.paramPart)&&(h.Readings[i.param][i.paramPart]=i.value),"Attributes"===i.devicePart&&this.getEl(h,"Attributes",i.param)&&(h.Attributes[i.param]=i.value),this.handleTemplate(h),this.app.data.deviceList.splice(p,1,h),this.app.data.deviceList.sort((function(t,e){return t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))),"Connected"in l)for(var d=0,m=0,f=Object.values(l.Connected);m
e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))}d++}p++}}catch(b){c.e(b)}finally{c.f()}}}}}catch(b){s.e(b)}finally{s.f()}}},{key:"connOpen",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),t.next=5,this.request({},"csrf");case 5:this.app.session.csrf=t.sent,this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure();case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"connClose",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,this.app.session.restart||(n=0==this.app.session.restartCnt?1:3e3,this.app.session.restart=!0,setTimeout((function(){s.app.session.restart=!1,s.app.session.restartCnt++,s.connStart()}),n),a={info:"Connection ("+this.app.connection.type+") "+(e?"failed.":"was closed."),errCode:e||""},this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+n/1e3+" seconds...",meta:a}),this.loading=!1);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"connStart",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(e),"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(n.replace(/^http/i,"ws")),this.app.conn.onopen=function(){return a.connOpen()},this.app.conn.onmessage=function(t){return a.doUpdate(t)},this.app.conn.onclose=function(){return a.connClose()},this.app.conn.onerror=function(t){return a.connClose(t)}):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",n,!0),this.app.conn.onreadystatechange=function(){200===a.app.conn.status&&2===a.app.conn.readyState&&a.connOpen(),200===a.app.conn.status&&3===a.app.conn.readyState&&a.doUpdate()},this.app.conn.onerror=function(t){return a.connClose(t)},this.app.conn.send());case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setClock",value:function(){var t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"clock"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat)),"date"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}},{key:"init",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e,n){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,t.next=4,this.readConfig("./cfg/config.json");case 4:this.connStart(),e&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(e.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(e.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(e.framework.theme.themes.dark,this.app.theme.themes.dark)),n&&this.app.options.lang&&(n.locale=this.app.options.lang),this.setClock(),setInterval((function(){return a.setClock()}),this.app.options.clockInterval);case 9:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()}]),n}(ut()),dt={install:function(t,e,n){t.prototype.$fhem=new ht,t.prototype.$fhem.init(e,n)}};a.Z.use(dt,K,et),a.Z.use(Q()),a.Z.component("apex-chart",Q()),a.Z.config.productionTip=!1,new a.Z({vuetify:K,router:q,i18n:et,render:function(t){return t(H)}}).$mount("#app")},8973:function(t,e,n){var a={"./de.json":9929,"./en.json":790};function s(t){var e=r(t);return n(e)}function r(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}s.keys=function(){return Object.keys(a)},s.resolve=r,t.exports=s,s.id=8973},2862:function(t,e,n){"use strict";t.exports=n.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.31.0"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function n(a){var s=e[a];if(void 0!==s)return s.exports;var r=e[a]={exports:{}};return t[a].call(r.exports,r,r.exports,n),r.exports}n.m=t,function(){var t=[];n.O=function(e,a,s,r){if(!a){var i=1/0;for(l=0;l=r)&&Object.keys(n.O).every((function(t){return n.O[t](a[p])}))?a.splice(p--,1):(o=!1,r0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[a,s,r]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,a){return n.f[a](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/"+t+"-legacy."+{44:"3af77626",121:"62a3b348",154:"c725f673",285:"39686d97",288:"6d3eb988",322:"c29a322f",337:"ef87a395",387:"c8bf8023",396:"c0fe53a6",438:"e54dc5ad",475:"24b478c9",775:"12f4371a",846:"2d01c4df",869:"8b8fa91e",884:"c1922847",947:"43621317",997:"64da21ee"}[t]+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",337:"b2abc4be",387:"5322d21c",396:"8ecd64f4",438:"85e1c6a8",475:"35328724",846:"b79779ed",869:"5fde8d03",947:"85e1c6a8",997:"8ecd64f4"}[t]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";n.l=function(a,s,r,i){if(t[a])t[a].push(s);else{var o,p;if(void 0!==r)for(var c=document.getElementsByTagName("script"),l=0;l0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var t=this;this.$fhem.on("message",(function(e){var n={lvl:5,msg:"no valid message received",meta:""};Object.assign(n,e),t.msgList.unshift(n)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),c=p,l=n(1001),u=n(3453),h=n.n(u),d=n(1234),m=n(3150),f=n(2102),v=n(6428),g=n(2877),b=(0,l.Z)(c,i,o,!1,null,null,null),y=b.exports;h()(b,{VAlert:d.Z,VBtn:m.Z,VCol:f.Z,VIcon:v.Z,VRow:g.Z});var k={components:{Broadcaster:y},data:function(){return{appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+n(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},watch:{"app.session.connect":function(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload:function(){location.reload(!0)},goTo:function(t){var e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},x=k,w=n(7524),O=n(426),C=n(5206),Z=n(5424),R=n(9846),_=n(1418),L=n(7047),j=n(6816),T=n(9443),S=n(7620),E=n(1960),I=n(459),V=n(7877),B=n(5132),D=n(1058),A=n(624),P=n(9762),F=n(9330),N=(0,l.Z)(x,s,r,!1,null,"4f254ced",null),M=N.exports;h()(N,{VApp:w.Z,VAppBar:O.Z,VAppBarNavIcon:C.Z,VBtn:m.Z,VChip:Z.Z,VContainer:R.Z,VDivider:_.Z,VIcon:v.Z,VImg:L.Z,VList:j.Z,VListGroup:T.Z,VListItem:S.Z,VListItemContent:E.km,VListItemIcon:I.Z,VListItemSubtitle:E.oZ,VListItemTitle:E.V9,VMain:V.Z,VNavigationDrawer:B.Z,VOverlay:D.Z,VProgressCircular:A.Z,VSpacer:P.Z,VTooltip:F.Z});n(1539),n(8783),n(3948);var H=n(8345);a.Z.use(H.Z);var $=[{path:"/",name:"Home",component:function(){return n.e(320).then(n.bind(n,4320))}},{path:"/system",name:"System",component:function(){return n.e(320).then(n.bind(n,4320))}},{path:"/dashboard",name:"Dashboard",component:function(){return n.e(320).then(n.bind(n,4320))}},{path:"/devices/:filter",name:"Devices",component:function(){return n.e(320).then(n.bind(n,4320))}},{path:"/settings",name:"Settings",component:function(){return n.e(884).then(n.bind(n,6884))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e(121),n.e(288),n.e(285),n.e(44)]).then(n.bind(n,4044))}}],U=new H.Z({mode:"hash",base:"",routes:$}),q=U,z=n(9132),G=n(9146),J=n(1846);a.Z.use(z.Z);var X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}},K=new z.Z(X),W=n(7166),Q=n.n(W),Y=(n(4747),n(4916),n(4723),n(7152));function tt(){var t=n(8973),e={};return t.keys().forEach((function(n){var a=n.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){var s=a[1];e[s]=t(n)}})),e}a.Z.use(Y.Z);var et=new Y.Z({locale:"de",fallbackLocale:"en",messages:tt()}),nt=n(2032),at=n(8932),st=n(6198),rt=n(9726),it=n(6133),ot=n(2751),pt=n(796),ct=n(6035),lt=(n(5666),n(7042),n(3123),n(5306),n(7941),n(8309),n(1249),n(2707),n(9600),n(7601),n(6977),n(9714),n(2222),n(4603),n(8450),n(8386),n(2479),n(7187)),ut=n.n(lt),ht=function(t){(0,pt.Z)(n,t);var e=(0,ct.Z)(n);function n(){var t;return(0,it.Z)(this,n),t=e.call(this),t.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]},t}return(0,ot.Z)(n,[{key:"loading",set:function(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}},{key:"log",value:function(t){var e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],n=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),s=(new Date).getMilliseconds(),r={time:a+":"+("000"+s).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:n[t.lvl||5]};this.app.options.logRecord&&r.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(r),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==r.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",r))}},{key:"getDate",value:function(t){var e=t?parseInt(t):0;return function(t){return new Date(t.setDate(t.getDate()-e)).toISOString()}(new Date).split("T")[0]}},{key:"getDateTime",value:function(t){var e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"createURL",value:function(t){var e=this.app.connection,n=e.location?e.location:"",a=e.port?":"+e.port.replace(":",""):"",s=e.path?"/"+e.path.replace("/",""):"",r="";return"object"==(0,rt.Z)(t)&&t.length>0&&t.forEach((function(t){t.param&&t.value&&(r+=r?"&":"?",r+=t.param+"="+encodeURIComponent(t.value))})),n+a+s+r}},{key:"getEl",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a0?s.push.apply(s,(0,at.Z)(e)):s.push(e)),"string"===typeof e&&s.push({param:"cmd",value:e}),r=this.createURL(s),this.log({lvl:3,msg:"Request: "+r}),t.next=9,fetch(r).then((function(t){var e=null;return"csrf"===n&&(e=t.headers.get("x-fhem-csrftoken")),"json"===n&&(e=t.json()),e||(e=t.text()),"object"===(0,rt.Z)(a)?Object.assign(a,{data:e}):e})).catch((function(t){return i.log({lvl:1,msg:"Request failed "+r,meta:t.message})}));case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})));function e(e,n,a){return t.apply(this,arguments)}return e}()},{key:"getJsonFile",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=new Headers,n.append("pragma","no-cache"),n.append("cache-control","no-cache"),a={method:"GET",headers:n},t.next=6,fetch(e,a).then((function(t){return t.json()})).catch((function(t){return r.log({lvl:1,msg:"Read Json-Data from "+e+" failed.",meta:t})}));case 6:return s=t.sent,s&&this.log({lvl:5,msg:"Json-Data parsed from "+e,meta:s}),t.next=10,s;case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"readConfig",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getJsonFile(e);case 2:if(n=t.sent,n){for(a=0,s=Object.keys(n);a0)){t.next=41;break}n=[],a=[],this.app.data.routeList.splice(0),s=(0,nt.Z)(e.Results),t.prev=8,s.s();case 10:if((r=s.n()).done){t.next=27;break}return i=r.value,t.next=14,this.createOptions(i);case 14:if(o=t.sent,!o.template){t.next=25;break}return t.next=18,this.getTemplate(o);case 18:p=t.sent,p&&this.app.templates.push(p),o.room&&this.createNaviItems(o,n,"room"),o.group&&this.createNaviItems(o,a,"group"),o.home&&this.createRoutes(o,"/"),o.dashboard&&this.createRoutes(o,"/dashboard"),o.system&&this.createRoutes(o,"/system");case 25:t.next=10;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](8),s.e(t.t0);case 32:return t.prev=32,s.f(),t.finish(32);case 35:n.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),a.sort((function(t,e){return t.title>e.title?1:e.title>t.title?-1:0})),this.app.data.roomList=Object.assign([],n),this.app.data.groupList=Object.assign([],a),this.app.session.ready=!0,this.loading=!1;case 41:case"end":return t.stop()}}),t,this,[[8,29,32,35]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"createConnected",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},a=this.app.hasConnected.indexOf(e.Name),-1!=a){t.next=30;break}if(this.app.hasConnected.push(e.Name),!("connected"in e.Options)){t.next=28;break}s=Object.keys(e.Options.connected),r=0,i=s;case 7:if(!(re.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0})),this.app.data.deviceList=Object.assign([],r),this.loading=!1),i++;case 39:t.next=15;break;case 41:t.next=46;break;case 43:t.prev=43,t.t0=t["catch"](13),o.e(t.t0);case 46:return t.prev=46,o.f(),t.finish(46);case 49:case"end":return t.stop()}}),t,this,[[13,43,46,49]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"checkUpdate",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]);case 2:if(e=t.sent,n=0,e){a=e.split("\n").splice(2),s=(0,nt.Z)(a);try{for(s.s();!(r=s.n()).done;)i=r.value,i.match("UPD")&&!i.match("excluded")&&n++}catch(o){s.e(o)}finally{s.f()}}return t.abrupt("return",n>0);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleLogData",value:function(t){var e=t.split("\n");e.length>3&&e.splice(-3,3);var n,a=[],s=e.length>this.app.options.maxChartPoints?parseInt(e.length/this.app.options.maxChartPoints):1,r=s,i=0,o=1,p=(0,nt.Z)(e);try{for(p.s();!(n=p.n()).done;){var c=n.value,l=c.split(" "),u=Date.parse(l[0].replace("_","T")),h=parseFloat(l[1]);i+=h,(o>=r||o===e.length)&&(o===e.length&&(s-=r-o),a.push({timestamp:u,value:i/s}),r+=s,i=0),o++}}catch(d){p.e(d)}finally{p.f()}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+e.length+")"}),a}},{key:"readLogData",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s,r,i,o,p,c,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=[],this.loading=!0,!(e.defs&&e.defs.length>0)){t.next=40;break}a=0,s=(0,nt.Z)(e.defs),t.prev=5,s.s();case 7:if((r=s.n()).done){t.next=32;break}return i=r.value,o=/\(.*\)/.exec(i),p=o?i.replace(o[0],"_").split(":"):i.split(":"),c="get ",c+=p[0]?p[0]:e.deviceName,c+=e.from?" - - "+e.from:"",c+=e.to?" "+e.to:"",c+=o?" "+o[0].replace(/\(|\)/g,""):" 4:"+p[1],t.next=18,this.request([{param:"cmd",value:c},{param:"XHR",value:"1"}],"text",{id:a});case 18:if(l=t.sent,!l){t.next=29;break}return t.t0=n,t.t1=l.id,t.t2=this,t.next=25,l.data;case 25:t.t3=t.sent,t.t4=t.t2.handleLogData.call(t.t2,t.t3),t.t5={id:t.t1,data:t.t4},t.t0.push.call(t.t0,t.t5);case 29:a++;case 30:t.next=7;break;case 32:t.next=37;break;case 34:t.prev=34,t.t6=t["catch"](5),s.e(t.t6);case 37:return t.prev=37,s.f(),t.finish(37);case 40:return this.loading=!1,t.abrupt("return",Object.assign(e,{data:n}));case 42:case"end":return t.stop()}}),t,this,[[5,34,37,40]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"replaceVals",value:function(t,e){for(var n=/-?[0-9]/.exec(e),a=[],s=2;s1?c+"Tage ":c>0?c+"Tag ":"";h+=l>0?l+"h ":"",h+=u>0?u+"min":"",r=t[s].replace("%a",h)}if(/%n/.test(t[s])&&n){/%n.[0-9]/.test(t[s])||(t[s]=t[s].replace("%n","%n.0"));var d=/%n../.exec(t[s]),m=d[0].replace("%n.","");r=t[s].replace(d[0],parseFloat(e.slice(n.index)).toFixed(m))}if(/%i/.test(t[s])&&n){var f=parseFloat(t[s].split("%i")[1]);if("isNaN"!=f){var v=f.toString().split(".")[1]||"",g=v.length,b=parseFloat(e.slice(n.index))+f;r=t[s].replace("%i"+f,b.toFixed(g))}}r=r.replace(/:/g,":"),a.push(r)}return a}},{key:"handleVals",value:function(t,e){var n=[];if("string"===typeof e){var a=("::"+e).split(":");n=this.replaceVals(a,"")}if("object"===(0,rt.Z)(t)&&"object"===(0,rt.Z)(e)&&e.length>0){var s,r=(0,nt.Z)(e);try{for(r.s();!(s=r.n()).done;){var i=s.value,o=i.split(":");if(o.length>2){var p=/\./.test(o[0])?o[0].split("."):["Readings",o[0],"Value"],c=this.getEl.apply(this,[t].concat((0,at.Z)(p)))||this.getEl(t,"Readings",o[0],"Value");if(c){var l=!1,u=parseFloat(o[1]);if(isNaN(u))RegExp(o[1]?o[1]:".").test(c)&&(l=!0);else{var h=/-?[0-9]/.exec(c);-1!=h.index&&parseFloat(c.slice(h.index))>=u&&(l=!0)}if(l){n=this.replaceVals(o,c);break}}}}}catch(d){r.e(d)}finally{r.f()}}return n}},{key:"handleTemplate",value:function(t){var e=this.getEl(t,"Options","setup","show"),n=this.getEl(t,"Options","setup","status","bar"),a=this.getEl(t,"Options","setup","status","error"),s=this.getEl(t,"Options","setup","info");if(e){var r=this.handleVals(t,e);t.Options.show="false"!==r[0],r[1]&&(t.Options.setup.size=r[1]),r[2]&&(t.Options.sortby=r[2])}if(n){var i=this.getEl(t,"Options","setup","status","min")||0,o=this.getEl(t,"Options","setup","status","max")||100,p=this.handleVals(t,n),c=100/(o-i),l=(p[0]||"0"-i)*c;t.Options.status.level=p[2]?100-l:l,t.Options.status.color=p[1]||"success"}if(a){var u=this.handleVals(t,a);u.length>0?(t.Options.status.level=u[0]||"100",t.Options.status.color=u[1]||"error",t.Options.status.error=u[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(s){var h=this.handleVals(t,s.left1),d=this.handleVals(t,s.left2),m=this.handleVals(t,s.mid1),f=this.handleVals(t,s.mid2),v=this.handleVals(t,s.right1),g=this.handleVals(t,s.right2);t.Options.info.left1IconColor=h[2]||"",t.Options.info.left1Icon=h[1]||"",t.Options.info.left1Text=h[0]||"",t.Options.info.left2IconColor=d[2]||"",t.Options.info.left2Icon=d[1]||"",t.Options.info.left2Text=d[0]||"",t.Options.info.mid1IconColor=m[2]||"",t.Options.info.mid1Icon=m[1]||"",t.Options.info.mid1Text=m[0]||"",t.Options.info.mid2IconColor=f[2]||"",t.Options.info.mid2Icon=f[1]||"",t.Options.info.mid2Text=f[0]||"",t.Options.info.right1IconColor=v[2]||"",t.Options.info.right1Icon=v[1]||"",t.Options.info.right1Text=v[0]||"",t.Options.info.right2IconColor=g[2]||"",t.Options.info.right2Icon=g[1]||"",t.Options.info.right2Text=g[0]||""}}},{key:"handleData",value:function(t){var e=JSON.parse(t),n=null;if(!e[2].match("0){var i=this.handleData(r);if(i){var o,p=0,c=(0,nt.Z)(this.app.data.deviceList);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=this.app.data.deviceList[p],h=Object.assign({},u);if(l.Name===i.Name&&("Readings"===i.devicePart&&this.getEl(h,"Readings",i.param,i.paramPart)&&(h.Readings[i.param][i.paramPart]=i.value),"Attributes"===i.devicePart&&this.getEl(h,"Attributes",i.param)&&(h.Attributes[i.param]=i.value),this.handleTemplate(h),this.app.data.deviceList.splice(p,1,h),this.app.data.deviceList.sort((function(t,e){return t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))),"Connected"in l)for(var d=0,m=0,f=Object.values(l.Connected);m
e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0}))}d++}p++}}catch(b){c.e(b)}finally{c.f()}}}}}catch(b){s.e(b)}finally{s.f()}}},{key:"connOpen",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),t.next=5,this.request({},"csrf");case 5:this.app.session.csrf=t.sent,this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure();case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"connClose",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e){var n,a,s=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,this.app.session.restart||(n=0==this.app.session.restartCnt?1:3e3,this.app.session.restart=!0,setTimeout((function(){s.app.session.restart=!1,s.app.session.restartCnt++,s.connStart()}),n),a={info:"Connection ("+this.app.connection.type+") "+(e?"failed.":"was closed."),errCode:e||""},this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+n/1e3+" seconds...",meta:a}),this.loading=!1);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"connStart",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(){var e,n,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(e),"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(n.replace(/^http/i,"ws")),this.app.conn.onopen=function(){return a.connOpen()},this.app.conn.onmessage=function(t){return a.doUpdate(t)},this.app.conn.onclose=function(){return a.connClose()},this.app.conn.onerror=function(t){return a.connClose(t)}):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",n,!0),this.app.conn.onreadystatechange=function(){200===a.app.conn.status&&2===a.app.conn.readyState&&a.connOpen(),200===a.app.conn.status&&3===a.app.conn.readyState&&a.doUpdate()},this.app.conn.onerror=function(t){return a.connClose(t)},this.app.conn.send());case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setClock",value:function(){var t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.options.mobileHeader||(this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}},{key:"init",value:function(){var t=(0,st.Z)(regeneratorRuntime.mark((function t(e,n){var a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,t.next=4,this.readConfig("./cfg/config.json");case 4:this.connStart(),e&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(e.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(e.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(e.framework.theme.themes.dark,this.app.theme.themes.dark)),n&&this.app.options.lang&&(n.locale=this.app.options.lang),this.setClock(),setInterval((function(){return a.setClock()}),this.app.options.clockInterval);case 9:case"end":return t.stop()}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}()}]),n}(ut()),dt={install:function(t,e,n){t.prototype.$fhem=new ht,t.prototype.$fhem.init(e,n)}};a.Z.use(dt,K,et),a.Z.use(Q()),a.Z.component("apex-chart",Q()),a.Z.config.productionTip=!1,new a.Z({vuetify:K,router:q,i18n:et,render:function(t){return t(M)}}).$mount("#app")},8973:function(t,e,n){var a={"./de.json":9929,"./en.json":790};function s(t){var e=r(t);return n(e)}function r(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}s.keys=function(){return Object.keys(a)},s.resolve=r,t.exports=s,s.id=8973},2862:function(t,e,n){"use strict";t.exports=n.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.30.3"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function n(a){var s=e[a];if(void 0!==s)return s.exports;var r=e[a]={exports:{}};return t[a].call(r.exports,r,r.exports,n),r.exports}n.m=t,function(){var t=[];n.O=function(e,a,s,r){if(!a){var i=1/0;for(l=0;l=r)&&Object.keys(n.O).every((function(t){return n.O[t](a[p])}))?a.splice(p--,1):(o=!1,r0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[a,s,r]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,a){return n.f[a](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/"+t+"-legacy."+{44:"3af77626",121:"62a3b348",154:"c725f673",285:"39686d97",288:"6d3eb988",320:"be5fa758",322:"c29a322f",337:"ef87a395",387:"c8bf8023",396:"c0fe53a6",438:"e54dc5ad",475:"24b478c9",846:"2d01c4df",869:"8b8fa91e",884:"c1922847",947:"43621317",997:"64da21ee"}[t]+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",337:"b2abc4be",387:"5322d21c",396:"8ecd64f4",438:"85e1c6a8",475:"35328724",846:"b79779ed",869:"5fde8d03",947:"85e1c6a8",997:"8ecd64f4"}[t]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";n.l=function(a,s,r,i){if(t[a])t[a].push(s);else{var o,p;if(void 0!==r)for(var c=document.getElementsByTagName("script"),l=0;l({alert:!1,type:"info",types:["","error","info","info","success","warning"],message:"",meta:"",msgList:[]}),watch:{msgList(){this.msgList&&this.msgList.length>0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted(){this.$fhem.on("message",(t=>{let e={lvl:5,msg:"no valid message received",meta:""};Object.assign(e,t),this.msgList.unshift(e)}))},methods:{clearMessage(){this.msgList.length>0&&this.msgList.splice(0,1)}}},p=l,c=s(1001),h=s(3453),d=s.n(h),u=s(1234),m=s(3150),f=s(2102),g=s(6428),v=s(2877),b=(0,c.Z)(p,i,r,!1,null,null,null),y=b.exports;d()(b,{VAlert:u.Z,VBtn:m.Z,VCol:f.Z,VIcon:g.Z,VRow:v.Z});var O={components:{Broadcaster:y},data:()=>({appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+s(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}),computed:{showRooms(){return this.app.data.roomList.length>0},showGroups(){return this.app.data.groupList.length>0}},watch:{"app.session.connect"(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload(){location.reload(!0)},goTo(t){let e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},w=O,C=s(7524),k=s(426),x=s(5206),_=s(5424),L=s(9846),R=s(1418),j=s(7047),T=s(6816),S=s(9443),Z=s(7620),E=s(1960),I=s(459),V=s(7877),B=s(5132),D=s(1058),P=s(624),A=s(9762),F=s(9330),N=(0,c.Z)(w,a,o,!1,null,"4f254ced",null),M=N.exports;d()(N,{VApp:C.Z,VAppBar:k.Z,VAppBarNavIcon:x.Z,VBtn:m.Z,VChip:_.Z,VContainer:L.Z,VDivider:R.Z,VIcon:g.Z,VImg:j.Z,VList:T.Z,VListGroup:S.Z,VListItem:Z.Z,VListItemContent:E.km,VListItemIcon:I.Z,VListItemSubtitle:E.oZ,VListItemTitle:E.V9,VMain:V.Z,VNavigationDrawer:B.Z,VOverlay:D.Z,VProgressCircular:P.Z,VSpacer:A.Z,VTooltip:F.Z});var H=s(8345);n.Z.use(H.Z);const $=[{path:"/",name:"Home",component:()=>s.e(320).then(s.bind(s,4320))},{path:"/system",name:"System",component:()=>s.e(320).then(s.bind(s,4320))},{path:"/dashboard",name:"Dashboard",component:()=>s.e(320).then(s.bind(s,4320))},{path:"/devices/:filter",name:"Devices",component:()=>s.e(320).then(s.bind(s,4320))},{path:"/settings",name:"Settings",component:()=>s.e(884).then(s.bind(s,6884))},{path:"/syslog",name:"Syslog",component:()=>Promise.all([s.e(121),s.e(288),s.e(285),s.e(44)]).then(s.bind(s,4044))}],U=new H.Z({mode:"hash",base:"",routes:$});var q=U,z=s(9132),G=s(9146),J=s(1846);n.Z.use(z.Z);const X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}};var K=new z.Z(X),W=s(7166),Q=s.n(W),Y=s(7152);function tt(){const t=s(8973),e={};return t.keys().forEach((s=>{const n=s.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const a=n[1];e[a]=t(s)}})),e}n.Z.use(Y.Z);var et=new Y.Z({locale:"de",fallbackLocale:"en",messages:tt()}),st=s(7187),nt=s.n(st);class at extends(nt()){constructor(){super(),this.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]}}set loading(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}log(t){let e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],s=["","error","info","success","success","warning"],n=(new Date).toLocaleTimeString(this.app.options.lang),a=(new Date).getMilliseconds(),o={time:n+":"+("000"+a).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:s[t.lvl||5]};this.app.options.logRecord&&o.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(o),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==o.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",o))}getDate(t){let e=t?parseInt(t):0;return(t=>new Date(t.setDate(t.getDate()-e)).toISOString())(new Date).split("T")[0]}getDateTime(t){let e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}createURL(t){let e=this.app.connection,s=e.location?e.location:"",n=e.port?":"+e.port.replace(":",""):"",a=e.path?"/"+e.path.replace("/",""):"",o="";return"object"==typeof t&&t.length>0&&t.forEach((t=>{t.param&&t.value&&(o+=o?"&":"?",o+=t.param+"="+encodeURIComponent(t.value))})),s+n+a+o}getEl(t,...e){return e.reduce(((t,e)=>t&&t[e]),t)}async request(t,e,s){let n=[];"csrf"!=e&&n.push({param:"fwcsrf",value:this.app.session.csrf}),"json"!==e&&"csrf"!==e||n.push({param:"XHR",value:"1"}),"object"===typeof t&&(t.length>0?n.push(...t):n.push(t)),"string"===typeof t&&n.push({param:"cmd",value:t});let a=this.createURL(n);return this.log({lvl:3,msg:"Request: "+a}),await fetch(a).then((t=>{let n=null;return"csrf"===e&&(n=t.headers.get("x-fhem-csrftoken")),"json"===e&&(n=t.json()),n||(n=t.text()),"object"===typeof s?Object.assign(s,{data:n}):n})).catch((t=>this.log({lvl:1,msg:"Request failed "+a,meta:t.message})))}async getJsonFile(t){let e=new Headers;e.append("pragma","no-cache"),e.append("cache-control","no-cache");let s={method:"GET",headers:e},n=await fetch(t,s).then((t=>t.json())).catch((e=>this.log({lvl:1,msg:"Read Json-Data from "+t+" failed.",meta:e})));return n&&this.log({lvl:5,msg:"Json-Data parsed from "+t,meta:n}),await n}async readConfig(t){let e=await this.getJsonFile(t);if(e){for(const t of Object.keys(e))t in this.app&&Object.assign(this.app[t],e[t]);this.app.options.debugMode&&(this.app.appBar.color="pink darken-4")}else this.log({lvl:2,msg:"No Configuration File found. FHEMApp starting with default settings.",meta:this.app.options})}async createOptions(t){let e=null;if("appOptions"in t.Attributes){try{e=JSON.parse(t.Attributes.appOptions)}catch(s){this.log({lvl:1,msg:"Read `appOptions` from "+t.Name+" failed.",meta:s.message})}e&&(e.device=t.Name,e.name||(e.name=this.getEl(t,"Attributes","alias")||t.Name),e.sortby||this.app.options.ignoreFhemSortby||(e.sortby=this.getEl(t,"Attributes","sortby")||"zzz"),e.room||this.app.options.ignoreFhemRoom||(e.room=this.getEl(t,"Attributes","room")||""),e.group||this.app.options.ignoreFhemGroup||(e.group=this.getEl(t,"Attributes","group")||""),"hidden"===e.room&&(e.room=""),"hidden"===e.group&&(e.group=""),e.sortby||(e.sortby="zzz"),e.setup||(e.setup={}),e.show=!0,e.status={level:null,color:null,isActive:!0,error:null},e.info={left1Icon:null,left1IconColor:null,left1Text:null,left2Icon:null,left2IconColor:null,left2Text:null,mid1Icon:null,mid1IconColor:null,mid1Text:null,mid2Icon:null,mid2IconColor:null,mid2Text:null,right1Icon:null,right1IconColor:null,right1Text:null,right2Icon:null,right2IconColor:null,right2Text:null})}return await e}createRoutes(t,e){let s=this.app.data.routeList.map((t=>t.route)).indexOf(e);-1!=s?this.app.data.routeList[s].deviceList.push(t.device):this.app.data.routeList.push({route:e,deviceList:[t.device]})}createNaviItems(t,e,s){let n=t[s].split(",");for(const a of n){let n=s+"="+a;-1==e.map((t=>t.title)).indexOf(a)&&e.push({title:a,route:n}),this.createRoutes(t,n)}}async getTemplate(t){if(-1==this.app.componentMap.map((t=>t.name)).indexOf(t.template)&&-1==this.app.templates.map((t=>t.name)).indexOf(t.template))return await this.getJsonFile("./cfg/templ_"+t.template+".json")}async loadStructure(){let t=await this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json");if(t&&t.Results.length>0){let e=[],s=[];this.app.data.routeList.splice(0);for(const n of t.Results){let t=await this.createOptions(n);if(t.template){let n=await this.getTemplate(t);n&&this.app.templates.push(n),t.room&&this.createNaviItems(t,e,"room"),t.group&&this.createNaviItems(t,s,"group"),t.home&&this.createRoutes(t,"/"),t.dashboard&&this.createRoutes(t,"/dashboard"),t.system&&this.createRoutes(t,"/system")}}e.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),s.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),this.app.data.roomList=Object.assign([],e),this.app.data.groupList=Object.assign([],s),this.app.session.ready=!0,this.loading=!1}}async createConnected(t){let e={},s=this.app.hasConnected.indexOf(t.Name);if(-1==s){if(this.app.hasConnected.push(t.Name),"connected"in t.Options){let s=Object.keys(t.Options.connected);for(const n of s){let s=await this.request({param:"cmd",value:"jsonlist2 "+t.Options.connected[n]},"json");if(s&&1==s.Results.length){"PossibleSets"in s.Results[0]&&delete s.Results[0].PossibleSets,"PossibleAttrs"in s.Results[0]&&delete s.Results[0].PossibleAttrs;let t=await this.createOptions(s.Results[0]);t&&(s.Results[0].Options=t),t&&s.Results[0].Options.connected&&(s.Results[0].Connected=await this.createConnected(s.Results[0])),s.Results[0].Options&&this.handleTemplate(s.Results[0]),e[n]=s.Results[0]}}}}else this.log({lvl:1,msg:"FHEM Device "+t.Name+" is defined as connected device, witch is called from himself. ",meta:t});return e}getSetup(t){let e=this.app.templates.map((t=>t.name)).indexOf(t);if(-1!=e){let t=this.app.templates[e],s={};return t.status&&Object.assign(s,{status:t.status}),t.main&&Object.assign(s,{main:t.main}),t.info&&Object.assign(s,{info:t.info}),t.show&&Object.assign(s,{show:t.show}),s.size=t.size||"col-12 col-sm-6 col-md-4 col-lg-4",s.expand=t.expand||!1,s.expanded=t.expanded||!1,s}this.log({lvl:1,msg:"Template Definition "+t+" not found."})}getComponent(t){let e={component:"templ_default"},s=this.app.componentMap.map((t=>t.name)).indexOf(t);if(-1!=s){let t=this.app.componentMap[s].component;t&&(e.component=t)}return e}async getDevices(t){let e=this.app.data.routeList.map((t=>t.route)).indexOf(t);if(this.app.data.deviceList.splice(0),this.app.hasConnected=[],-1!=e||t.match("device=")){let s=-1!=e?this.app.data.routeList[e].deviceList.join(","):t.replace("device=","").split("&")[0];if(s){this.loading=!0;let t=await this.request({param:"cmd",value:"jsonlist2 "+s},"json"),e=[],n=1;for(const s of t.Results){"PossibleSets"in s&&delete s.PossibleSets,"PossibleAttrs"in s&&delete s.PossibleAttrs;let a=await this.createOptions(s),o=this.getComponent(a.template);if(Object.assign(a,o),"templ_default"===a.component){let t=await this.getSetup(a.template);a.setup&&Object.assign(t,a.setup),a.setup=t}s.Options=a,s.Options.connected&&(s.Connected=await this.createConnected(s)),this.handleTemplate(s),e.push(s),n===t.Results.length&&(e.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0)),this.app.data.deviceList=Object.assign([],e),this.loading=!1),n++}}}}async checkUpdate(){let t=await this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]),e=0;if(t){let s=t.split("\n").splice(2);for(const t of s)t.match("UPD")&&!t.match("excluded")&&e++}return e>0}handleLogData(t){let e=t.split("\n");e.length>3&&e.splice(-3,3);let s=[],n=e.length>this.app.options.maxChartPoints?parseInt(e.length/this.app.options.maxChartPoints):1,a=n,o=0,i=1;for(const r of e){let t=r.split(" "),l=Date.parse(t[0].replace("_","T")),p=parseFloat(t[1]);o+=p,(i>=a||i===e.length)&&(i===e.length&&(n-=a-i),s.push({timestamp:l,value:o/n}),a+=n,o=0),i++}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+e.length+")"}),s}async readLogData(t){let e=[];if(this.loading=!0,t.defs&&t.defs.length>0){let s=0;for(const n of t.defs){let a=/\(.*\)/.exec(n),o=a?n.replace(a[0],"_").split(":"):n.split(":"),i="get ";i+=o[0]?o[0]:t.deviceName,i+=t.from?" - - "+t.from:"",i+=t.to?" "+t.to:"",i+=a?" "+a[0].replace(/\(|\)/g,""):" 4:"+o[1];let r=await this.request([{param:"cmd",value:i},{param:"XHR",value:"1"}],"text",{id:s});r&&e.push({id:r.id,data:this.handleLogData(await r.data)}),s++}}return this.loading=!1,Object.assign(t,{data:e})}replaceVals(t,e){let s=/-?[0-9]/.exec(e),n=[];for(var a=2;a1?r+"Tage ":r>0?r+"Tag ":"";c+=l>0?l+"h ":"",c+=p>0?p+"min":"",o=t[a].replace("%a",c)}if(/%n/.test(t[a])&&s){/%n.[0-9]/.test(t[a])||(t[a]=t[a].replace("%n","%n.0"));let n=/%n../.exec(t[a]),i=n[0].replace("%n.","");o=t[a].replace(n[0],parseFloat(e.slice(s.index)).toFixed(i))}if(/%i/.test(t[a])&&s){let n=parseFloat(t[a].split("%i")[1]);if("isNaN"!=n){let i=n.toString().split(".")[1]||"",r=i.length,l=parseFloat(e.slice(s.index))+n;o=t[a].replace("%i"+n,l.toFixed(r))}}o=o.replace(/:/g,":"),n.push(o)}return n}handleVals(t,e){let s=[];if("string"===typeof e){let t=("::"+e).split(":");s=this.replaceVals(t,"")}if("object"===typeof t&&"object"===typeof e&&e.length>0)for(const n of e){let e=n.split(":");if(e.length>2){let n=/\./.test(e[0])?e[0].split("."):["Readings",e[0],"Value"],a=this.getEl(t,...n)||this.getEl(t,"Readings",e[0],"Value");if(a){let t=!1,n=parseFloat(e[1]);if(isNaN(n))RegExp(e[1]?e[1]:".").test(a)&&(t=!0);else{let e=/-?[0-9]/.exec(a);-1!=e.index&&parseFloat(a.slice(e.index))>=n&&(t=!0)}if(t){s=this.replaceVals(e,a);break}}}}return s}handleTemplate(t){let e=this.getEl(t,"Options","setup","show"),s=this.getEl(t,"Options","setup","status","bar"),n=this.getEl(t,"Options","setup","status","error"),a=this.getEl(t,"Options","setup","info");if(e){let s=this.handleVals(t,e);t.Options.show="false"!==s[0],s[1]&&(t.Options.setup.size=s[1]),s[2]&&(t.Options.sortby=s[2])}if(s){let e=this.getEl(t,"Options","setup","status","min")||0,n=this.getEl(t,"Options","setup","status","max")||100,a=this.handleVals(t,s),o=100/(n-e),i=(a[0]||"0"-e)*o;t.Options.status.level=a[2]?100-i:i,t.Options.status.color=a[1]||"success"}if(n){let e=this.handleVals(t,n);e.length>0?(t.Options.status.level=e[0]||"100",t.Options.status.color=e[1]||"error",t.Options.status.error=e[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(a){let e=this.handleVals(t,a.left1),s=this.handleVals(t,a.left2),n=this.handleVals(t,a.mid1),o=this.handleVals(t,a.mid2),i=this.handleVals(t,a.right1),r=this.handleVals(t,a.right2);t.Options.info.left1IconColor=e[2]||"",t.Options.info.left1Icon=e[1]||"",t.Options.info.left1Text=e[0]||"",t.Options.info.left2IconColor=s[2]||"",t.Options.info.left2Icon=s[1]||"",t.Options.info.left2Text=s[0]||"",t.Options.info.mid1IconColor=n[2]||"",t.Options.info.mid1Icon=n[1]||"",t.Options.info.mid1Text=n[0]||"",t.Options.info.mid2IconColor=o[2]||"",t.Options.info.mid2Icon=o[1]||"",t.Options.info.mid2Text=o[0]||"",t.Options.info.right1IconColor=i[2]||"",t.Options.info.right1Icon=i[1]||"",t.Options.info.right1Text=i[0]||"",t.Options.info.right2IconColor=r[2]||"",t.Options.info.right2Icon=r[1]||"",t.Options.info.right2Text=r[0]||""}}handleData(t){let e=JSON.parse(t),s=null;if(!e[2].match("0){let t=this.handleData(s);if(t){let e=0;for(const s of this.app.data.deviceList){let n=this.app.data.deviceList[e],a=Object.assign({},n);if(s.Name===t.Name&&("Readings"===t.devicePart&&this.getEl(a,"Readings",t.param,t.paramPart)&&(a.Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(a,"Attributes",t.param)&&(a.Attributes[t.param]=t.value),this.handleTemplate(a),this.app.data.deviceList.splice(e,1,a),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))),"Connected"in s){let n=0;for(const o of Object.values(s.Connected)){if(o.Name===t.Name){let o=Object.keys(s.Connected)[n];"Readings"===t.devicePart&&this.getEl(a.Connected[o],"Readings",t.param,t.paramPart)&&(a.Connected[o].Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(a.Connected[o],"Attributes",t.param)&&(a.Connected[o].Attributes[t.param]=t.value),this.handleTemplate(a),this.app.data.deviceList.splice(e,1,a),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))}n++}}e++}}}}async connOpen(){this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),this.app.session.csrf=await this.request({},"csrf"),this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure()}async connClose(t){if(this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,!this.app.session.restart){let e=0==this.app.session.restartCnt?1:3e3;this.app.session.restart=!0,setTimeout((()=>{this.app.session.restart=!1,this.app.session.restartCnt++,this.connStart()}),e);let s={info:"Connection ("+this.app.connection.type+") "+(t?"failed.":"was closed."),errCode:t||""};this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+e/1e3+" seconds...",meta:s}),this.loading=!1}}async connStart(){let t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],e=this.createURL(t);"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(e.replace(/^http/i,"ws")),this.app.conn.onopen=()=>this.connOpen(),this.app.conn.onmessage=t=>this.doUpdate(t),this.app.conn.onclose=()=>this.connClose(),this.app.conn.onerror=t=>this.connClose(t)):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",e,!0),this.app.conn.onreadystatechange=()=>{200===this.app.conn.status&&2===this.app.conn.readyState&&this.connOpen(),200===this.app.conn.status&&3===this.app.conn.readyState&&this.doUpdate()},this.app.conn.onerror=t=>this.connClose(t),this.app.conn.send())}setClock(){let t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.options.mobileHeader||(this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}async init(t,e){this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,await this.readConfig("./cfg/config.json"),this.connStart(),t&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(t.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(t.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(t.framework.theme.themes.dark,this.app.theme.themes.dark)),e&&this.app.options.lang&&(e.locale=this.app.options.lang),this.setClock(),setInterval((()=>this.setClock()),this.app.options.clockInterval)}}var ot={install(t,e,s){t.prototype.$fhem=new at,t.prototype.$fhem.init(e,s)}};n.Z.use(ot,K,et),n.Z.use(Q()),n.Z.component("apex-chart",Q()),n.Z.config.productionTip=!1,new n.Z({vuetify:K,router:q,i18n:et,render:t=>t(M)}).$mount("#app")},8973:function(t,e,s){var n={"./de.json":9929,"./en.json":790};function a(t){var e=o(t);return s(e)}function o(t){if(!s.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=o,t.exports=a,a.id=8973},2862:function(t,e,s){"use strict";t.exports=s.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.30.3"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function s(n){var a=e[n];if(void 0!==a)return a.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,s),o.exports}s.m=t,function(){var t=[];s.O=function(e,n,a,o){if(!n){var i=1/0;for(c=0;c
=o)&&Object.keys(s.O).every((function(t){return s.O[t](n[l])}))?n.splice(l--,1):(r=!1,o0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[n,a,o]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,n){return s.f[n](t,e),e}),[]))}}(),function(){s.u=function(t){return"js/"+t+"."+{44:"1ae09cf8",121:"006dace8",154:"cb009208",285:"6fc47f33",288:"6d3eb988",320:"2ba04f2e",322:"a37a620a",337:"3c817406",387:"06272897",396:"02bb2eaa",438:"27924680",475:"e1a25454",846:"510798d7",869:"df959138",884:"472374d2",947:"371294c0",997:"e21ab267"}[t]+".js"}}(),function(){s.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",337:"b2abc4be",387:"5322d21c",396:"8ecd64f4",438:"85e1c6a8",475:"35328724",846:"b79779ed",869:"5fde8d03",947:"85e1c6a8",997:"8ecd64f4"}[t]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";s.l=function(n,a,o,i){if(t[n])t[n].push(a);else{var r,l;if(void 0!==o)for(var p=document.getElementsByTagName("script"),c=0;c({alert:!1,type:"info",types:["","error","info","info","success","warning"],message:"",meta:"",msgList:[]}),watch:{msgList(){this.msgList&&this.msgList.length>0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted(){this.$fhem.on("message",(t=>{let e={lvl:5,msg:"no valid message received",meta:""};Object.assign(e,t),this.msgList.unshift(e)}))},methods:{clearMessage(){this.msgList.length>0&&this.msgList.splice(0,1)}}},p=l,c=s(1001),h=s(3453),d=s.n(h),u=s(1234),m=s(3150),f=s(2102),g=s(6428),v=s(2877),b=(0,c.Z)(p,i,r,!1,null,null,null),y=b.exports;d()(b,{VAlert:u.Z,VBtn:m.Z,VCol:f.Z,VIcon:g.Z,VRow:v.Z});var O={components:{Broadcaster:y},data:()=>({appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1,expandGroups:!1,expandRooms:!1,mobileHeaderContent:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+s(4147).i8,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}),computed:{showRooms(){return this.app.data.roomList.length>0},showGroups(){return this.app.data.groupList.length>0}},watch:{"app.session.connect"(t){this.status.color=t?"success":"error",this.status.text=t?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload(){location.reload(!0)},goTo(t){let e=t||"/";this.$router.currentRoute.path!=e&&this.$router.push(e)}}},w=O,C=s(7524),k=s(426),x=s(5206),_=s(5424),L=s(9846),R=s(1418),j=s(7047),T=s(6816),S=s(9443),Z=s(7620),E=s(1960),I=s(459),B=s(7877),V=s(5132),D=s(1058),F=s(624),P=s(9762),A=s(9330),N=(0,c.Z)(w,n,o,!1,null,"dd5f8942",null),H=N.exports;d()(N,{VApp:C.Z,VAppBar:k.Z,VAppBarNavIcon:x.Z,VBtn:m.Z,VChip:_.Z,VContainer:L.Z,VDivider:R.Z,VIcon:g.Z,VImg:j.Z,VList:T.Z,VListGroup:S.Z,VListItem:Z.Z,VListItemContent:E.km,VListItemIcon:I.Z,VListItemSubtitle:E.oZ,VListItemTitle:E.V9,VMain:B.Z,VNavigationDrawer:V.Z,VOverlay:D.Z,VProgressCircular:F.Z,VSpacer:P.Z,VTooltip:A.Z});var M=s(8345);a.Z.use(M.Z);const $=[{path:"/",name:"Home",component:()=>s.e(775).then(s.bind(s,3775))},{path:"/system",name:"System",component:()=>s.e(775).then(s.bind(s,3775))},{path:"/dashboard",name:"Dashboard",component:()=>s.e(775).then(s.bind(s,3775))},{path:"/devices/:filter",name:"Devices",component:()=>s.e(775).then(s.bind(s,3775))},{path:"/settings",name:"Settings",component:()=>s.e(884).then(s.bind(s,6884))},{path:"/syslog",name:"Syslog",component:()=>Promise.all([s.e(121),s.e(288),s.e(285),s.e(44)]).then(s.bind(s,4044))}],U=new M.Z({mode:"hash",base:"",routes:$});var q=U,z=s(9132),G=s(9146),J=s(1846);a.Z.use(z.Z);const X={lang:{locales:{de:G.Z},current:"de"},theme:{dark:!0,themes:{dark:{primary:J.Z.grey.darken4,secondary:J.Z.grey.darken3,success:J.Z.green.accent2,accent:J.Z.green.accent2},light:{primary:J.Z.grey,secondary:J.Z.grey.lighten3,success:J.Z.green.accent3,accent:J.Z.green.accent3}}}};var K=new z.Z(X),W=s(7166),Q=s.n(W),Y=s(7152);function tt(){const t=s(8973),e={};return t.keys().forEach((s=>{const a=s.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){const n=a[1];e[n]=t(s)}})),e}a.Z.use(Y.Z);var et=new Y.Z({locale:"de",fallbackLocale:"en",messages:tt()}),st=s(7187),at=s.n(st);class nt extends(at()){constructor(){super(),this.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem",type:"websocket"},conn:null,connOffset:0,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:1e3,clockFormat:{hour:"2-digit",minute:"2-digit"},clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null,mobileHeader:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"},{name:"cam",component:"templ_cam"},{name:"iframe",component:"templ_iframe"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""},hasConnected:[]}}set loading(t){t&&this.app.options.loadCount++,!t&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}log(t){let e=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],s=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),n=(new Date).getMilliseconds(),o={time:a+":"+("000"+n).slice(-3),msg:t.msg||"",lvl:t.lvl||5,meta:t.meta||null,icon:e[t.lvl||5],color:s[t.lvl||5]};this.app.options.logRecord&&o.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(o),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==o.lvl&&(this.app.options.loadCount=0,this.app.options.loading=!1,this.emit("message",o))}getDate(t){let e=t?parseInt(t):0;return(t=>new Date(t.setDate(t.getDate()-e)).toISOString())(new Date).split("T")[0]}getDateTime(t){let e=t||(new Date).toISOString();return new Date(e.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}createURL(t){let e=this.app.connection,s=e.location?e.location:"",a=e.port?":"+e.port.replace(":",""):"",n=e.path?"/"+e.path.replace("/",""):"",o="";return"object"==typeof t&&t.length>0&&t.forEach((t=>{t.param&&t.value&&(o+=o?"&":"?",o+=t.param+"="+encodeURIComponent(t.value))})),s+a+n+o}getEl(t,...e){return e.reduce(((t,e)=>t&&t[e]),t)}async request(t,e,s){let a=[];"csrf"!=e&&a.push({param:"fwcsrf",value:this.app.session.csrf}),"json"!==e&&"csrf"!==e||a.push({param:"XHR",value:"1"}),"object"===typeof t&&(t.length>0?a.push(...t):a.push(t)),"string"===typeof t&&a.push({param:"cmd",value:t});let n=this.createURL(a);return this.log({lvl:3,msg:"Request: "+n}),await fetch(n).then((t=>{let a=null;return"csrf"===e&&(a=t.headers.get("x-fhem-csrftoken")),"json"===e&&(a=t.json()),a||(a=t.text()),"object"===typeof s?Object.assign(s,{data:a}):a})).catch((t=>this.log({lvl:1,msg:"Request failed "+n,meta:t.message})))}async getJsonFile(t){let e=new Headers;e.append("pragma","no-cache"),e.append("cache-control","no-cache");let s={method:"GET",headers:e},a=await fetch(t,s).then((t=>t.json())).catch((e=>this.log({lvl:1,msg:"Read Json-Data from "+t+" failed.",meta:e})));return a&&this.log({lvl:5,msg:"Json-Data parsed from "+t,meta:a}),await a}async readConfig(t){let e=await this.getJsonFile(t);if(e){for(const t of Object.keys(e))t in this.app&&Object.assign(this.app[t],e[t]);this.app.options.debugMode&&(this.app.appBar.color="pink darken-4")}else this.log({lvl:2,msg:"No Configuration File found. FHEMApp starting with default settings.",meta:this.app.options})}async createOptions(t){let e=null;if("appOptions"in t.Attributes){try{e=JSON.parse(t.Attributes.appOptions)}catch(s){this.log({lvl:1,msg:"Read `appOptions` from "+t.Name+" failed.",meta:s.message})}e&&(e.device=t.Name,e.name||(e.name=this.getEl(t,"Attributes","alias")||t.Name),e.sortby||this.app.options.ignoreFhemSortby||(e.sortby=this.getEl(t,"Attributes","sortby")||"zzz"),e.room||this.app.options.ignoreFhemRoom||(e.room=this.getEl(t,"Attributes","room")||""),e.group||this.app.options.ignoreFhemGroup||(e.group=this.getEl(t,"Attributes","group")||""),"hidden"===e.room&&(e.room=""),"hidden"===e.group&&(e.group=""),e.sortby||(e.sortby="zzz"),e.setup||(e.setup={}),e.show=!0,e.status={level:null,color:null,isActive:!0,error:null},e.info={left1Icon:null,left1IconColor:null,left1Text:null,left2Icon:null,left2IconColor:null,left2Text:null,mid1Icon:null,mid1IconColor:null,mid1Text:null,mid2Icon:null,mid2IconColor:null,mid2Text:null,right1Icon:null,right1IconColor:null,right1Text:null,right2Icon:null,right2IconColor:null,right2Text:null})}return await e}createRoutes(t,e){let s=this.app.data.routeList.map((t=>t.route)).indexOf(e);-1!=s?this.app.data.routeList[s].deviceList.push(t.device):this.app.data.routeList.push({route:e,deviceList:[t.device]})}createNaviItems(t,e,s){let a=t[s].split(",");for(const n of a){let a=s+"="+n;-1==e.map((t=>t.title)).indexOf(n)&&e.push({title:n,route:a}),this.createRoutes(t,a)}}async getTemplate(t){if(-1==this.app.componentMap.map((t=>t.name)).indexOf(t.template)&&-1==this.app.templates.map((t=>t.name)).indexOf(t.template))return await this.getJsonFile("./cfg/templ_"+t.template+".json")}async loadStructure(){let t=await this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json");if(t&&t.Results.length>0){let e=[],s=[];this.app.data.routeList.splice(0);for(const a of t.Results){let t=await this.createOptions(a);if(t.template){let a=await this.getTemplate(t);a&&this.app.templates.push(a),t.room&&this.createNaviItems(t,e,"room"),t.group&&this.createNaviItems(t,s,"group"),t.home&&this.createRoutes(t,"/"),t.dashboard&&this.createRoutes(t,"/dashboard"),t.system&&this.createRoutes(t,"/system")}}e.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),s.sort(((t,e)=>t.title>e.title?1:e.title>t.title?-1:0)),this.app.data.roomList=Object.assign([],e),this.app.data.groupList=Object.assign([],s),this.app.session.ready=!0,this.loading=!1}}async createConnected(t){let e={},s=this.app.hasConnected.indexOf(t.Name);if(-1==s){if(this.app.hasConnected.push(t.Name),"connected"in t.Options){let s=Object.keys(t.Options.connected);for(const a of s){let s=await this.request({param:"cmd",value:"jsonlist2 "+t.Options.connected[a]},"json");if(s&&1==s.Results.length){"PossibleSets"in s.Results[0]&&delete s.Results[0].PossibleSets,"PossibleAttrs"in s.Results[0]&&delete s.Results[0].PossibleAttrs;let t=await this.createOptions(s.Results[0]);t&&(s.Results[0].Options=t),t&&s.Results[0].Options.connected&&(s.Results[0].Connected=await this.createConnected(s.Results[0])),s.Results[0].Options&&this.handleTemplate(s.Results[0]),e[a]=s.Results[0]}}}}else this.log({lvl:1,msg:"FHEM Device "+t.Name+" is defined as connected device, witch is called from himself. ",meta:t});return e}getSetup(t){let e=this.app.templates.map((t=>t.name)).indexOf(t);if(-1!=e){let t=this.app.templates[e],s={};return t.status&&Object.assign(s,{status:t.status}),t.main&&Object.assign(s,{main:t.main}),t.info&&Object.assign(s,{info:t.info}),t.show&&Object.assign(s,{show:t.show}),s.size=t.size||"col-12 col-sm-6 col-md-4 col-lg-4",s.expand=t.expand||!1,s.expanded=t.expanded||!1,s}this.log({lvl:1,msg:"Template Definition "+t+" not found."})}getComponent(t){let e={component:"templ_default"},s=this.app.componentMap.map((t=>t.name)).indexOf(t);if(-1!=s){let t=this.app.componentMap[s].component;t&&(e.component=t)}return e}async getDevices(t){let e=this.app.data.routeList.map((t=>t.route)).indexOf(t);if(this.app.data.deviceList.splice(0),this.app.hasConnected=[],-1!=e||t.match("device=")){let s=-1!=e?this.app.data.routeList[e].deviceList.join(","):t.replace("device=","").split("&")[0];if(s){this.loading=!0;let t=await this.request({param:"cmd",value:"jsonlist2 "+s},"json"),e=[],a=1;for(const s of t.Results){"PossibleSets"in s&&delete s.PossibleSets,"PossibleAttrs"in s&&delete s.PossibleAttrs;let n=await this.createOptions(s),o=this.getComponent(n.template);if(Object.assign(n,o),"templ_default"===n.component){let t=await this.getSetup(n.template);n.setup&&Object.assign(t,n.setup),n.setup=t}s.Options=n,s.Options.connected&&(s.Connected=await this.createConnected(s)),this.handleTemplate(s),e.push(s),a===t.Results.length&&(e.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0)),this.app.data.deviceList=Object.assign([],e),this.loading=!1),a++}}}}async checkUpdate(){let t=await this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]),e=0;if(t){let s=t.split("\n").splice(2);for(const t of s)t.match("UPD")&&!t.match("excluded")&&e++}return e>0}handleLogData(t){let e=t.split("\n");e.length>3&&e.splice(-3,3);let s=[],a=e.length>this.app.options.maxChartPoints?parseInt(e.length/this.app.options.maxChartPoints):1,n=a,o=0,i=1;for(const r of e){let t=r.split(" "),l=Date.parse(t[0].replace("_","T")),p=parseFloat(t[1]);o+=p,(i>=n||i===e.length)&&(i===e.length&&(a-=n-i),s.push({timestamp:l,value:o/a}),n+=a,o=0),i++}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+e.length+")"}),s}async readLogData(t){let e=[];if(this.loading=!0,t.defs&&t.defs.length>0){let s=0;for(const a of t.defs){let n=/\(.*\)/.exec(a),o=n?a.replace(n[0],"_").split(":"):a.split(":"),i="get ";i+=o[0]?o[0]:t.deviceName,i+=t.from?" - - "+t.from:"",i+=t.to?" "+t.to:"",i+=n?" "+n[0].replace(/\(|\)/g,""):" 4:"+o[1];let r=await this.request([{param:"cmd",value:i},{param:"XHR",value:"1"}],"text",{id:s});r&&e.push({id:r.id,data:this.handleLogData(await r.data)}),s++}}return this.loading=!1,Object.assign(t,{data:e})}replaceVals(t,e){let s=/-?[0-9]/.exec(e),a=[];for(var n=2;n1?r+"Tage ":r>0?r+"Tag ":"";c+=l>0?l+"h ":"",c+=p>0?p+"min":"",o=t[n].replace("%a",c)}if(/%n/.test(t[n])&&s){/%n.[0-9]/.test(t[n])||(t[n]=t[n].replace("%n","%n.0"));let a=/%n../.exec(t[n]),i=a[0].replace("%n.","");o=t[n].replace(a[0],parseFloat(e.slice(s.index)).toFixed(i))}if(/%i/.test(t[n])&&s){let a=parseFloat(t[n].split("%i")[1]);if("isNaN"!=a){let i=a.toString().split(".")[1]||"",r=i.length,l=parseFloat(e.slice(s.index))+a;o=t[n].replace("%i"+a,l.toFixed(r))}}o=o.replace(/:/g,":"),a.push(o)}return a}handleVals(t,e){let s=[];if("string"===typeof e){let t=("::"+e).split(":");s=this.replaceVals(t,"")}if("object"===typeof t&&"object"===typeof e&&e.length>0)for(const a of e){let e=a.split(":");if(e.length>2){let a=/\./.test(e[0])?e[0].split("."):["Readings",e[0],"Value"],n=this.getEl(t,...a)||this.getEl(t,"Readings",e[0],"Value");if(n){let t=!1,a=parseFloat(e[1]);if(isNaN(a))RegExp(e[1]?e[1]:".").test(n)&&(t=!0);else{let e=/-?[0-9]/.exec(n);-1!=e.index&&parseFloat(n.slice(e.index))>=a&&(t=!0)}if(t){s=this.replaceVals(e,n);break}}}}return s}handleTemplate(t){let e=this.getEl(t,"Options","setup","show"),s=this.getEl(t,"Options","setup","status","bar"),a=this.getEl(t,"Options","setup","status","error"),n=this.getEl(t,"Options","setup","info");if(e){let s=this.handleVals(t,e);t.Options.show="false"!==s[0],s[1]&&(t.Options.setup.size=s[1]),s[2]&&(t.Options.sortby=s[2])}if(s){let e=this.getEl(t,"Options","setup","status","min")||0,a=this.getEl(t,"Options","setup","status","max")||100,n=this.handleVals(t,s),o=100/(a-e),i=(n[0]||"0"-e)*o;t.Options.status.level=n[2]?100-i:i,t.Options.status.color=n[1]||"success"}if(a){let e=this.handleVals(t,a);e.length>0?(t.Options.status.level=e[0]||"100",t.Options.status.color=e[1]||"error",t.Options.status.error=e[2]||"Fehler",t.Options.status.isActive=!1):t.Options.status.isActive=!0}if(n){let e=this.handleVals(t,n.left1),s=this.handleVals(t,n.left2),a=this.handleVals(t,n.mid1),o=this.handleVals(t,n.mid2),i=this.handleVals(t,n.right1),r=this.handleVals(t,n.right2);t.Options.info.left1IconColor=e[2]||"",t.Options.info.left1Icon=e[1]||"",t.Options.info.left1Text=e[0]||"",t.Options.info.left2IconColor=s[2]||"",t.Options.info.left2Icon=s[1]||"",t.Options.info.left2Text=s[0]||"",t.Options.info.mid1IconColor=a[2]||"",t.Options.info.mid1Icon=a[1]||"",t.Options.info.mid1Text=a[0]||"",t.Options.info.mid2IconColor=o[2]||"",t.Options.info.mid2Icon=o[1]||"",t.Options.info.mid2Text=o[0]||"",t.Options.info.right1IconColor=i[2]||"",t.Options.info.right1Icon=i[1]||"",t.Options.info.right1Text=i[0]||"",t.Options.info.right2IconColor=r[2]||"",t.Options.info.right2Icon=r[1]||"",t.Options.info.right2Text=r[0]||""}}handleData(t){let e=JSON.parse(t),s=null;if(!e[2].match("0){let t=this.handleData(s);if(t){let e=0;for(const s of this.app.data.deviceList){let a=this.app.data.deviceList[e],n=Object.assign({},a);if(s.Name===t.Name&&("Readings"===t.devicePart&&this.getEl(n,"Readings",t.param,t.paramPart)&&(n.Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(n,"Attributes",t.param)&&(n.Attributes[t.param]=t.value),this.handleTemplate(n),this.app.data.deviceList.splice(e,1,n),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))),"Connected"in s){let a=0;for(const o of Object.values(s.Connected)){if(o.Name===t.Name){let o=Object.keys(s.Connected)[a];"Readings"===t.devicePart&&this.getEl(n.Connected[o],"Readings",t.param,t.paramPart)&&(n.Connected[o].Readings[t.param][t.paramPart]=t.value),"Attributes"===t.devicePart&&this.getEl(n.Connected[o],"Attributes",t.param)&&(n.Connected[o].Attributes[t.param]=t.value),this.handleTemplate(n),this.app.data.deviceList.splice(e,1,n),this.app.data.deviceList.sort(((t,e)=>t.Options.sortby>e.Options.sortby?1:e.Options.sortby>t.Options.sortby?-1:0))}a++}}e++}}}}async connOpen(){this.app.session.connect=!0,this.app.session.restartCnt=0,this.log({lvl:2,msg:"Connection with FHEM is opened.",meta:this.app.connection}),this.app.session.csrf=await this.request({},"csrf"),this.log({lvl:2,msg:"Crsf-Token received.",meta:{token:this.app.session.csrf}}),this.loadStructure()}async connClose(t){if(this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.ready=!1,this.app.conn=null,!this.app.session.restart){let e=0==this.app.session.restartCnt?1:3e3;this.app.session.restart=!0,setTimeout((()=>{this.app.session.restart=!1,this.app.session.restartCnt++,this.connStart()}),e);let s={info:"Connection ("+this.app.connection.type+") "+(t?"failed.":"was closed."),errCode:t||""};this.log({lvl:2,msg:"Connection with FHEM was closed. Try to Reconnect in "+e/1e3+" seconds...",meta:s}),this.loading=!1}}async connStart(){let t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],e=this.createURL(t);"websocket"===this.app.connection.type?(this.app.conn=new WebSocket(e.replace(/^http/i,"ws")),this.app.conn.onopen=()=>this.connOpen(),this.app.conn.onmessage=t=>this.doUpdate(t),this.app.conn.onclose=()=>this.connClose(),this.app.conn.onerror=t=>this.connClose(t)):(this.app.conn=new XMLHttpRequest,this.app.conn.open("GET",e,!0),this.app.conn.onreadystatechange=()=>{200===this.app.conn.status&&2===this.app.conn.readyState&&this.connOpen(),200===this.app.conn.status&&3===this.app.conn.readyState&&this.doUpdate()},this.app.conn.onerror=t=>this.connClose(t),this.app.conn.send())}setClock(){let t=new Date;this.app.appBar.clock=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat),this.app.appBar.header=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"clock"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,this.app.options.clockFormat)),"date"===this.app.options.mobileHeaderContent&&(this.app.appBar.mobileHeader=t.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"}))}async init(t,e){this.log({lvl:2,msg:"Starting FHEMApp..."}),this.loading=!0,await this.readConfig("./cfg/config.json"),this.connStart(),t&&this.app.theme&&(-1!=this.app.theme.dark&&Object.assign(t.framework.theme,{dark:this.app.theme.dark}),this.app.theme.themes.light&&Object.assign(t.framework.theme.themes.light,this.app.theme.themes.light),this.app.theme.themes.dark&&Object.assign(t.framework.theme.themes.dark,this.app.theme.themes.dark)),e&&this.app.options.lang&&(e.locale=this.app.options.lang),this.setClock(),setInterval((()=>this.setClock()),this.app.options.clockInterval)}}var ot={install(t,e,s){t.prototype.$fhem=new nt,t.prototype.$fhem.init(e,s)}};a.Z.use(ot,K,et),a.Z.use(Q()),a.Z.component("apex-chart",Q()),a.Z.config.productionTip=!1,new a.Z({vuetify:K,router:q,i18n:et,render:t=>t(H)}).$mount("#app")},8973:function(t,e,s){var a={"./de.json":9929,"./en.json":790};function n(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}n.keys=function(){return Object.keys(a)},n.resolve=o,t.exports=n,n.id=8973},2862:function(t,e,s){"use strict";t.exports=s.p+"img/FHEM_Logo.a2a7fc8d.png"},4147:function(t){"use strict";t.exports={i8:"3.31.0"}},9929:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"},"dates":{"from":"von","to":"bis"}},"templates":{"sysmon":{"updateBtn":["prüfe Updates...","system aktuell","update","update läuft.."],"restartBtn":"neustart","updateDialog":{"header":"FHEM Update","text":"Update wurde erfolgreich beendet. FHEM sollte neu gestartet werden.","restartBtn":"jetzt neustarten"}}}}')},790:function(t){"use strict";t.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"},"dates":{"from":"From","to":"To"}},"templates":{"sysmon":{"updateBtn":["check updates...","up to date","update","update running..."],"restartBtn":"restart","updateDialog":{"header":"FHEM Update","text":"Update was successful finished. FHEM should be restarted now.","restartBtn":"restart now"}}}}')}},e={};function s(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={exports:{}};return t[a].call(o.exports,o,o.exports,s),o.exports}s.m=t,function(){var t=[];s.O=function(e,a,n,o){if(!a){var i=1/0;for(c=0;c
=o)&&Object.keys(s.O).every((function(t){return s.O[t](a[l])}))?a.splice(l--,1):(r=!1,o0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[a,n,o]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,a){return s.f[a](t,e),e}),[]))}}(),function(){s.u=function(t){return"js/"+t+"."+{44:"1ae09cf8",121:"006dace8",154:"cb009208",285:"6fc47f33",288:"6d3eb988",322:"a37a620a",337:"3c817406",387:"06272897",396:"02bb2eaa",438:"27924680",475:"e1a25454",775:"d1046d1a",846:"510798d7",869:"df959138",884:"472374d2",947:"371294c0",997:"e21ab267"}[t]+".js"}}(),function(){s.miniCssF=function(t){return"css/"+t+"."+{44:"7086d1d2",154:"8ecd64f4",285:"b6c37c1b",288:"a57bcf5c",337:"b2abc4be",387:"5322d21c",396:"8ecd64f4",438:"85e1c6a8",475:"35328724",846:"b79779ed",869:"5fde8d03",947:"85e1c6a8",997:"8ecd64f4"}[t]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="fhemapp:";s.l=function(a,n,o,i){if(t[a])t[a].push(n);else{var r,l;if(void 0!==o)for(var p=document.getElementsByTagName("script"),c=0;c