{"action":"created","issue":{"url":"https://api.github.com/repos/ioBroker/ioBroker.fhem/issues/11","repository_url":"https://api.github.com/repos/ioBroker/ioBroker.fhem","labels_url":"https://api.github.com/repos/ioBroker/ioBroker.fhem/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ioBroker/ioBroker.fhem/issues/11/comments","events_url":"https://api.github.com/repos/ioBroker/ioBroker.fhem/issues/11/events","html_url":"https://github.com/ioBroker/ioBroker.fhem/issues/11","id":352571458,"node_id":"MDU6SXNzdWUzNTI1NzE0NTg=","number":11,"title":"v. 0.5.0 trying to reconnect and stops with failure frequently.","user":{"login":"RalfM04","id":42563205,"node_id":"MDQ6VXNlcjQyNTYzMjA1","avatar_url":"https://avatars2.githubusercontent.com/u/42563205?v=4","gravatar_id":"","url":"https://api.github.com/users/RalfM04","html_url":"https://github.com/RalfM04","followers_url":"https://api.github.com/users/RalfM04/followers","following_url":"https://api.github.com/users/RalfM04/following{/other_user}","gists_url":"https://api.github.com/users/RalfM04/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfM04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfM04/subscriptions","organizations_url":"https://api.github.com/users/RalfM04/orgs","repos_url":"https://api.github.com/users/RalfM04/repos","events_url":"https://api.github.com/users/RalfM04/events{/privacy}","received_events_url":"https://api.github.com/users/RalfM04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-21T14:35:21Z","updated_at":"2018-08-21T19:02:34Z","closed_at":null,"author_association":"NONE","body":"The fhem adapter is trying to connect to fhem Server and stops with error,  \r\n[IO_Broker_LOG.txt](https://github.com/ioBroker/ioBroker.fhem/files/2306704/IO_Broker_LOG.txt)\r\n\r\nThe Jsonlist2 result can be found in this file\r\n[JSONLIST2.txt](https://github.com/ioBroker/ioBroker.fhem/files/2306731/JSONLIST2.txt)\r\n\r\nVersion 0.4.2 works without this problem.\r\n"},"comment":{"url":"https://api.github.com/repos/ioBroker/ioBroker.fhem/issues/comments/414786348","html_url":"https://github.com/ioBroker/ioBroker.fhem/issues/11#issuecomment-414786348","issue_url":"https://api.github.com/repos/ioBroker/ioBroker.fhem/issues/11","id":414786348,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDc4NjM0OA==","user":{"login":"RalfM04","id":42563205,"node_id":"MDQ6VXNlcjQyNTYzMjA1","avatar_url":"https://avatars2.githubusercontent.com/u/42563205?v=4","gravatar_id":"","url":"https://api.github.com/users/RalfM04","html_url":"https://github.com/RalfM04","followers_url":"https://api.github.com/users/RalfM04/followers","following_url":"https://api.github.com/users/RalfM04/following{/other_user}","gists_url":"https://api.github.com/users/RalfM04/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfM04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfM04/subscriptions","organizations_url":"https://api.github.com/users/RalfM04/orgs","repos_url":"https://api.github.com/users/RalfM04/repos","events_url":"https://api.github.com/users/RalfM04/events{/privacy}","received_events_url":"https://api.github.com/users/RalfM04/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T19:02:34Z","updated_at":"2018-08-21T19:02:34Z","author_association":"NONE","body":"Hello, I tried to replace your Code with the actual on efrom v.0.5.0.\nI found this under function parse objects.\n\nI replaced like this:\n\n   if (firstRun == true) {\n        adapter.log.info('last update: 29.04.18 LausiD ');\n        adapter.log.info('Settings: ignored PossibleSets: ' + ignorePossibleSets);\n        adapter.log.info('Settings: role button PossibleSets: noArg');\n        adapter.log.info('Settings: role level.xxx PossibleSets: slider');\n        adapter.log.info('Settings: role level.temperature PossibleSets: desired-temp');\n        adapter.log.info('Settings: role level.volume PossibleSets: ' + volumePossibleSets);\n        adapter.log.info('Settings: role level.dimmer PossibleSets: ' + dimPossibleSets);\n        adapter.log.info('Settings: ignored Readings: ' + ignoreReadings);\n        adapter.log.info('Settings: allowed Internals: ' + allowedInternals);\n        adapter.log.info('Settings: allowed attributes: ' + allowedAttributes);\n        for (var i = 0; i < objs.length; i++) {\n            if (objs[i].Attributes.room) suche = objs[i].Attributes.room;\n            if (suche.indexOf('ioBroker') != -1) iobroker = true;\n        }\n        adapter.log.info('Settings: room ioBroker = ' + iobroker);\n        adapter.log.info('Settings: channels found = ' + objs.length);\n    }\n\n    for (var i = 0; i < objs.length; i++) {\n        try {\n            name = objs[i].Name.replace(/\\./g, '_');\n            var searchRoom = 'no';\n            if (objs[i].Attributes.room) suche = objs[i].Attributes.room;\n            if (suche.indexOf('ioBroker') !== -1) {\n                iobroker = true;\n                continue;\n            }\n            } catch (err) {\n            adapter.log.error('[parseObjects] Cannot check room of object: ' + JSON.stringify(objs[i]));\n            adapter.log.error('[parseObjects] Cannot check room of object: ' + err);\n            }\n            }\n            if (firstRun == true) adapter.log.info('Check channel ' + adapter.namespace + '.' + name + ' | room: ' + objs[i].Attributes.room + ' [' + (i + 1) + '/' + objs.length + ']');\n            id = adapter.namespace + '.' + name;\n\nIt doesn’t work.\nHere are the LOG results.\n\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.522\nerror\ninstance system.adapter.fhem.0 terminated with code 1 ()\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.522\nerror\nCaught by controller[0]: at bootstrap_node.js:609:3\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.522\nerror\nCaught by controller[0]: at startup (bootstrap_node.js:188:16)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.522\nerror\nCaught by controller[0]: at Function.Module.runMain (module.js:693:10)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.522\nerror\nCaught by controller[0]: at Function.Module._load (module.js:497:3)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.522\nerror\nCaught by controller[0]: at tryModuleLoad (module.js:505:12)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: at Module.load (module.js:565:32)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: at Object.Module._extensions..js (module.js:663:10)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: at Module._compile (module.js:616:28)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: at Object.runInThisContext (vm.js:139:10)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: at createScript (vm.js:80:10)\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: SyntaxError: Unexpected token catch\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.521\nerror\nCaught by controller[0]: ^^^^^\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.520\nerror\nCaught by controller[0]: } catch (err) {\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.520\nerror\nCaught by controller[0]: /opt/iobroker/node_modules/iobroker.fhem/main.js:665\nhost.ioBroker-RasPi\n2018-08-21 21:00:50.166\ninfo\ninstance system.adapter.fhem.0 started with pid 12347\nhost.ioBroker-RasPi\n2018-08-21 21:00:20.141\ninfo\nRestart adapter system.adapter.fhem.0 because enabled\nPlease be aware that I’m not the Scripting expert.\n\nRegards\nRalf\n\n\nVon: LausiD\nGesendet: Dienstag, 21. August 2018 19:30\nAn: ioBroker/ioBroker.fhem\nCc: RalfM04; Author\nBetreff: Re: [ioBroker/ioBroker.fhem] v. 0.5.0 trying to reconnect and stopswith failure frequently. (#11)\n\nedit like this to catch the error ?\nfor (var i = 0; i < objs.length; i++) {\ntry {\nfor (var i = 0; i < objs.length; i++) {\ncontinue;\n}\n} catch (err) {\nadapter.log.error('[parseObjects] Cannot check room of object: ' + JSON.stringify(objs[i]));\nadapter.log.error('[parseObjects] Cannot check room of object: ' + err);\n}\n}\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub, or mute the thread.\n\n"}}
{"actor":{"display_login":"RalfM04"}}