0){var n=t.handleData(e);n&&t.app.data.deviceList.forEach((function(e,a){var r=t.app.data.deviceList[a],s=Object.assign({},r);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(s,"Readings",n.param,n.paramPart)&&(s.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s,"Attributes",n.param)&&(s.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)),"Connected"in e&&Object.values(e.Connected).forEach((function(r,i){if(r.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(s.Connected[o],"Readings",n.param,n.paramPart)&&(s.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s.Connected[o],"Attributes",n.param)&&(s.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)}}))}))}}))}},{key:"connClose",value:function(){var e=this;this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,this.app.session.restart||(this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.init()}),3e3)),this.log={type:"status",message:"Connection with FHEM was closed. Try to Reconnect in 3 seconds...",debugLevel:2}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"status",message:"Connection with FHEM is opened.",meta:e.session,debugLevel:2},e.app.options.loading=!1})).catch((function(t){e.app.session.csrf=null,e.app.session.connect=!1,e.log={type:"error",message:"Retrieve csrf-Token failed.",meta:t,debugLevel:1}})).finally((function(){return e.app.options.loading=!1}))}},{key:"setClock",value:function(){var e=new Date;this.app.options.clock=e.toLocaleString("de-DE",{hour:"2-digit",minute:"2-digit"}),this.app.options.date=e.toLocaleString("de-DE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}},{key:"init",value:function(){var e=this,t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(t).replace(/^http/i,"ws");this.app.socket=new WebSocket(n),this.app.socket.onopen=function(){return e.connOpen()},this.app.socket.onmessage=function(t){return e.doUpdate(t)},this.app.socket.onclose=function(){return e.connClose()},this.setClock(),setInterval((function(){return e.setClock()}),this.app.options.clockInterval)}}]),n}(oe.a),ue=n("1321"),pe=n.n(ue);r["a"].use(pe.a),r["a"].component("apexchart",pe.a),r["a"].config.productionTip=!1,r["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){r["a"].prototype.$fhem.log={type:"error",message:"Loading config.json failed.",meta:e,debugLevel:1}})).then((function(e){var t;e&&(e.connection&&Object.assign(r["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(r["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=r["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Y.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Y.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Y.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"status",message:"Config: "+JSON.stringify(e),debugLevel:2},r["a"].prototype.$fhem.log={type:"status",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection),debugLevel:2},new r["a"]({vuetify:Y,router:J,render:function(e){return e(B)}}).$mount("#app")}))},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"}});
\ No newline at end of file
diff --git a/www/fhemapp/js/app.453e9b15.js b/www/fhemapp/js/app.453e9b15.js
deleted file mode 100644
index 2ffa600b..00000000
--- a/www/fhemapp/js/app.453e9b15.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(e){function t(t){for(var a,r,o=t[0],c=t[1],u=t[2],p=0,l=[];p
0?(this.type=this.msgList[0].type,this.message=this.msgList[0].message,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var e=this;this.$fhem.on("message",(function(t){var n={type:"warning",message:"no valid message received",meta:""};Object.assign(n,t),e.msgList.unshift(n)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),p=u,l=n("2877"),h=n("6544"),d=n.n(h),m=n("0798"),f=n("8336"),g=n("62ad"),v=n("132d"),b=n("0fd9"),y=Object(l["a"])(p,o,c,!1,null,null,null),k=y.exports;d()(y,{VAlert:m["a"],VBtn:f["a"],VCol:g["a"],VIcon:v["a"],VRow:b["a"]});var O={components:{Broadcaster:k},data:function(){return{drawer:null,back:!1,appBarColor:"primary",app:{options:{loading:!1,clock:null},session:{connect:!1},data:{roomList:[],groupList:[],header:""}},version:"v3.7.2",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(e){this.status.color=e?"success":"error",this.status.text=e?"online":"offline",this.status.time=this.$fhem.getDateTime()},$route:function(e){this.back="/"!==e.path}},mounted:function(){var e=this;this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.$fhem.on("connect",(function(){return e.loadRoutes()})),this.$fhem.init(),this.loadRoutes(),this.app.options.debugMode&&(this.appBarColor="pink darken-4")},methods:{loadRoutes:function(){this.app.session.connect&&(this.$fhem.getRoutes("room"),this.$fhem.getRoutes("group"))},goTo:function(){this.$router.go(-1)}}},w=O,j=n("7496"),L=n("40dc"),x=n("5bc1"),R=n("cc20"),C=n("a523"),_=n("ce7e"),P=n("adda"),E=n("8860"),S=n("56b0"),D=n("da13"),V=n("5d23"),F=n("34c3"),A=n("f6c4"),N=n("f774"),T=n("a797"),M=n("490a"),$=n("2fa4"),H=n("3a2f"),I=Object(l["a"])(w,s,i,!1,null,null,null),B=I.exports;d()(I,{VApp:j["a"],VAppBar:L["a"],VAppBarNavIcon:x["a"],VBtn:f["a"],VChip:R["a"],VContainer:C["a"],VDivider:_["a"],VIcon:v["a"],VImg:P["a"],VList:E["a"],VListGroup:S["a"],VListItem:D["a"],VListItemContent:V["a"],VListItemIcon:F["a"],VListItemSubtitle:V["b"],VListItemTitle:V["c"],VMain:A["a"],VNavigationDrawer:N["a"],VOverlay:T["a"],VProgressCircular:M["a"],VSpacer:$["a"],VTooltip:H["a"]});n("3ca3"),n("ddb0");var q=n("8c4f");r["a"].use(q["a"]);var U=[{path:"/",name:"Home",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/system",name:"System",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/dashboard",name:"Dashboard",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/devices/:filter",name:"Devices",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/edit-devices",name:"EditDevice",component:function(){return Promise.all([n.e("chunk-4034692a"),n.e("chunk-225a9a68"),n.e("chunk-72c6e8d8"),n.e("chunk-085bcd30")]).then(n.bind(null,"f87a"))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e("chunk-4034692a"),n.e("chunk-225a9a68"),n.e("chunk-72c6e8d8"),n.e("chunk-2c05d556")]).then(n.bind(null,"beee"))}}],z=new q["a"]({mode:"hash",base:"",routes:U}),J=z,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");r["a"].use(G["a"]);var Q={lang:{locales:{de:W.a},current:"de"},theme:{dark:!0,themes:{dark:{primary:K["a"].grey.darken4,secondary:K["a"].grey.darken3,success:K["a"].green.accent2,accent:K["a"].green.accent2},light:{primary:K["a"].grey,secondary:K["a"].grey.lighten3,success:K["a"].green.accent3,accent:K["a"].green.accent3}}}},Y=new G["a"](Q),Z=n("b85c"),ee=n("1da1"),te=n("53ca"),ne=n("d4ec"),ae=n("bee2"),re=n("262e"),se=n("2caf"),ie=(n("96cf"),n("fb6a"),n("1276"),n("ac1f"),n("5319"),n("13d5"),n("159b"),n("466d"),n("d81d"),n("b680"),n("99af"),n("4d63"),n("25f0"),n("b64b"),n("b0c0"),n("07ac"),n("faa1")),oe=n.n(ie),ce=function(e){Object(re["a"])(n,e);var t=Object(se["a"])(n);function n(){var e;return Object(ne["a"])(this,n),e=t.call(this),e.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem"},socket:null,session:{connect:!1,csrf:null,restart:!1,logList:[],logLast:{}},options:{debugMode:!1,debugLevel:3,loading:!1,loadCount:0,clock:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},templates:[],componentMap:[],data:{roomList:[],groupList:[],deviceList:[],header:""}},e}return Object(ae["a"])(n,[{key:"loading",set:function(e){e&&this.app.options.loadCount++,!e&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loading=this.app.options.loadCount>0}},{key:"log",set:function(e){var t={type:"info",timestamp:Date.now(),timeFlag:null,debugLevel:this.app.options.debugLevel,message:"",icon:"",color:""};Object.assign(t,e);var n=new Date(t.timestamp).toLocaleTimeString("de-DE"),a=new Date(t.timestamp).getMilliseconds();t.timeFlag=n+":"+("000"+a).slice(-3),"error"===t.type&&(t.icon="mdi-alert-outline",t.color="error"),"status"===t.type&&(t.icon="mdi-connection",t.color="info"),"request"===t.type&&(t.icon="mdi-send-circle-outline",t.color="success"),"warning"===t.type&&(t.icon="mdi-help-circle-outline",t.color="warning"),"info"===t.type&&(t.icon="mdi-sync",t.color="success"),"intern"===t.type&&(t.icon="mdi-hexagon-multiple-outline",t.color="warning"),this.app.session.logLast=t,"error"===t.type&&this.emit("message",{type:t.type,message:t.message,meta:t.meta}),this.app.options.logRecord&&t.debugLevel<=this.app.options.debugLevel&&(this.app.session.logList.unshift(t),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer))}},{key:"getDate",value:function(e){var t=e?parseInt(e):0;return function(e){return new Date(e.setDate(e.getDate()+t)).toISOString()}(new Date).split("T")[0]}},{key:"getDateTime",value:function(e){var t=e||Date.now();return new Date(t).toLocaleString(void 0,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"getEl",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&e.forEach((function(e){e.param&&e.value&&(s+=s?"&":"?",s+=e.param+"="+encodeURIComponent(e.value))})),n+a+r+s}},{key:"getCsrfToken",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){n.request({},"csrf").then((function(t){return e(t)})).catch((function(e){return t(e)}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t,n,r){var s,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){var o=[];"csrf"!=n&&o.push({param:"fwcsrf",value:i.app.session.csrf}),"json"!==n&&"csrf"!==n||o.push({param:"XHR",value:"1"}),"object"===Object(te["a"])(t)&&(t.length>0?o.push.apply(o,Object(a["a"])(t)):o.push(t)),"string"===typeof t&&o.push({param:"cmd",value:t});var c=i.createURL(o);i.log={type:"request",message:"Request: "+c,debugLevel:3},fetch(c).then((function(t){if(t.ok)if("csrf"===n){var a=t.headers.get("x-fhem-csrftoken");e("object"===Object(te["a"])(r)?Object.assign(r,{data:a}):a)}else"json"===n?t.json().then((function(t){e("object"===Object(te["a"])(r)?Object.assign(r,{data:t}):t)})):t.text().then((function(t){e("object"===Object(te["a"])(r)?Object.assign(r,{data:t}):t)}))})).catch((function(e){s({error:e,request:c})}))})),e.abrupt("return",s);case 2:case"end":return e.stop()}}),e)})));function t(t,n,a){return e.apply(this,arguments)}return t}()},{key:"handleLogData",value:function(e){var t=e.split("\n");t.length>3&&t.splice(-3,3);var n,a=[],r=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,s=r,i=0,o=1,c=Object(Z["a"])(t);try{for(c.s();!(n=c.n()).done;){var u=n.value,p=u.split(" "),l=Date.parse(p[0].replace("_","T")),h=parseFloat(p[1]);i+=h,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),a.push({timestamp:l,value:i/r}),s+=r,i=0),o++}}catch(d){c.e(d)}finally{c.f()}return this.log={type:"intern",message:"handle Chartdata (Lines: "+t.length+")",debugLevel:5},a}},{key:"readLogData",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t){var n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Promise((function(e,n){t.defs&&t.defs.length>0?function(){var r,s=[],i=0,o=Object(Z["a"])(t.defs);try{for(o.s();!(r=o.n()).done;){var c=r.value,u=/\(.*\)/.exec(c),p=u?c.replace(u[0],"_").split(":"):c.split(":"),l="get ";l+=p[0]?p[0]:t.deviceName,l+=t.from?" - - "+t.from:"",l+=t.to?" "+t.to:"",l+=u?" "+u[0].replace(/\(|\)/g,""):" 4:"+p[1],a.log={type:"intern",message:"Loading Chartdata - "+l,debugLevel:5},a.request([{param:"cmd",value:l},{param:"XHR",value:"1"}],"text",{id:i}).then((function(n){s.push({id:n.id,data:a.handleLogData(n.data)}),s.length===t.defs.length&&(Object.assign(t,{data:s}),e(t))})).catch((function(e){a.log={type:"error",message:"Fetch data from FHEM Logfile failed.",meta:e,debugLevel:1},n()})),i++}}catch(h){o.e(h)}finally{o.f()}}():(a.log={type:"error",message:"No Definitions for Chart found.",meta:t,debugLevel:1},n())})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"checkUpdate",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){n.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]).then((function(t){var n,a=t.split("\n").splice(2),r=0,s=1,i=Object(Z["a"])(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.match("UPD")&&!o.match("excluded")&&r++,s===a.length&&e(r>0),s++}}catch(c){i.e(c)}finally{i.f()}})).catch((function(e){n.log={type:"error",message:"FHEM check for Updates failed.",meta:e,debugLevel:1},t(e)}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getRoutes",value:function(e){var t=this;if(this.app.options.loading=!0,"room"===e||"group"===e){var n=e+"List",a=[];this.app.data[n].splice(0),this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json").then(function(){var n=Object(ee["a"])(regeneratorRuntime.mark((function n(r){var s,i,o,c,u,p,l,h,d,m,f;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=1,i=Object(Z["a"])(r.Results),n.prev=2,i.s();case 4:if((o=i.n()).done){n.next=15;break}return c=o.value,n.next=8,t.createOptions(c);case 8:if(u=n.sent,p=u[e],p&&u.template){l=p.split(","),h=Object(Z["a"])(l);try{for(h.s();!(d=h.n()).done;)m=d.value,f="/devices/"+e+"="+m,-1==a.map((function(e){return e.title})).indexOf(m)&&a.push({title:m,route:f})}catch(g){h.e(g)}finally{h.f()}}s===r.Results.length&&(a.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),t.app.data[e+"List"]=Object.assign([],a),t.app.options.loading=!1),s++;case 13:n.next=4;break;case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](2),i.e(n.t0);case 20:return n.prev=20,i.f(),n.finish(20);case 23:case"end":return n.stop()}}),n,null,[[2,17,20,23]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(n){t.log={type:"error",message:"Loading "+e+"s from FHEM failed.",meta:n,debugLevel:1},t.app.options.loading=!1}))}else this.log={type:"error",message:"Creating Routes failed.",meta:e,debugLevel:1},this.app.options.loading=!1}},{key:"replaceVals",value:function(e,t){for(var n=/-?[0-9]/.exec(t),a=[],r=2;r0){var r,s=Object(Z["a"])(t);try{for(s.s();!(r=s.n()).done;){var i=r.value,o=i.split(":");if(o.length>2){var c=o[0].match(/\./)?o[0].split("."):["Readings",o[0],"Value"],u=this.getEl.apply(this,[e].concat(Object(a["a"])(c)));if(u){var p=!1;if(isNaN(parseFloat(o[1])))RegExp(o[1]?o[1]:".").test(u)&&(p=!0);else{var l=/-?[0-9]/.exec(u);-1!=l.index&&parseFloat(u.slice(l.index))>=parseFloat(o[1])&&(p=!0)}if(p){n=this.replaceVals(o,u);break}}}}}catch(h){s.e(h)}finally{s.f()}}return n}},{key:"handleStates",value:function(e,t,n){var r=this.getEl(e,"Options","states")||n;if(r){var s,i=Object(Z["a"])(r);try{for(i.s();!(s=i.n()).done;){var o=s.value,c=o.split(":");if(c[0]){var u=c[0].match(/\./)?c[0].split("."):["Readings",c[0],"Value"],p=this.getEl.apply(this,[e].concat(Object(a["a"])(u)));if(p){var l=!1;if(isNaN(parseFloat(c[1]))?RegExp(c[1]?c[1]:".").test(p)&&(l=!0):parseFloat(p)>=parseFloat(c[1])&&(l=!0),l){var h={};c[2]&&(h.mainState=c[0]===c[2]?p:c[2]),c[3]&&(h.mainLevel=c[0]===c[3]?p:c[3]),c[4]&&(h.mainColor=c[4]),c[5]&&(h.systemIcon=c[5]),Object.assign(t,h);break}}}else this.log={type:"error",message:"Wrong Definition for Device-States.",meta:e,debugLevel:1}}}catch(d){i.e(d)}finally{i.f()}}return t}},{key:"createConnected",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t){var n,a,r,s,i,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n={},!("connected"in t.Options)){e.next=12;break}a=Object.keys(t.Options.connected),r=0,s=a;case 4:if(!(rt.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),t.app.data.deviceList=Object.assign([],r),t.app.options.loading=!1),s++;case 29:n.next=5;break;case 31:n.next=36;break;case 33:n.prev=33,n.t0=n["catch"](3),i.e(n.t0);case 36:return n.prev=36,i.f(),n.finish(36);case 39:case"end":return n.stop()}}),n,null,[[3,33,36,39]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){t.log={type:"error",message:"Request to FHEM failed.",meta:e,debugLevel:1},t.app.options.loading=!1}))}},{key:"handleData",value:function(e){var t=JSON.parse(e),n=null;if(!t[2].match("0){var n=t.handleData(e);n&&t.app.data.deviceList.forEach((function(e,a){var r=t.app.data.deviceList[a],s=Object.assign({},r);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(s,"Readings",n.param,n.paramPart)&&(s.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s,"Attributes",n.param)&&(s.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)),"Connected"in e&&Object.values(e.Connected).forEach((function(r,i){if(r.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(s.Connected[o],"Readings",n.param,n.paramPart)&&(s.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s.Connected[o],"Attributes",n.param)&&(s.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)}}))}))}}))}},{key:"connClose",value:function(){var e=this;this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,this.app.session.restart||(this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.init()}),3e3)),this.log={type:"status",message:"Connection with FHEM was closed. Try to Reconnect in 3 seconds...",debugLevel:2}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"status",message:"Connection with FHEM is opened.",meta:e.session,debugLevel:2},e.app.options.loading=!1})).catch((function(t){e.app.session.csrf=null,e.app.session.connect=!1,e.log={type:"error",message:"Retrieve csrf-Token failed.",meta:t,debugLevel:1}})).finally((function(){return e.app.options.loading=!1}))}},{key:"init",value:function(){var e=this,t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(t).replace("http","ws");this.app.socket=new WebSocket(n),this.app.socket.onopen=function(){return e.connOpen()},this.app.socket.onmessage=function(t){return e.doUpdate(t)},this.app.socket.onclose=function(){return e.connClose()},setInterval((function(){e.app.options.clock=(new Date).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})}),1e3)}}]),n}(oe.a),ue=n("1321"),pe=n.n(ue);r["a"].use(pe.a),r["a"].component("apexchart",pe.a),r["a"].config.productionTip=!1,r["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){r["a"].prototype.$fhem.log={type:"error",message:"Loading config.json failed.",meta:e,debugLevel:1}})).then((function(e){var t;e&&(e.connection&&Object.assign(r["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(r["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=r["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Y.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Y.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Y.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"status",message:"Config: "+JSON.stringify(e),debugLevel:2},r["a"].prototype.$fhem.log={type:"status",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection),debugLevel:2},new r["a"]({vuetify:Y,router:J,render:function(e){return e(B)}}).$mount("#app")}))},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"}});
\ No newline at end of file