{"action":"opened","issue":{"url":"https://api.github.com/repos/Cereal2nd/domogik-plugin-onewire/issues/3","labels_url":"https://api.github.com/repos/Cereal2nd/domogik-plugin-onewire/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Cereal2nd/domogik-plugin-onewire/issues/3/comments","events_url":"https://api.github.com/repos/Cereal2nd/domogik-plugin-onewire/issues/3/events","html_url":"https://github.com/Cereal2nd/domogik-plugin-onewire/issues/3","id":110873685,"number":3,"title":"New device DS2405 creation make a 550 Internal error","user":{"login":"vdomos","id":1257481,"avatar_url":"https://avatars.githubusercontent.com/u/1257481?v=3","gravatar_id":"","url":"https://api.github.com/users/vdomos","html_url":"https://github.com/vdomos","followers_url":"https://api.github.com/users/vdomos/followers","following_url":"https://api.github.com/users/vdomos/following{/other_user}","gists_url":"https://api.github.com/users/vdomos/gists{/gist_id}","starred_url":"https://api.github.com/users/vdomos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdomos/subscriptions","organizations_url":"https://api.github.com/users/vdomos/orgs","repos_url":"https://api.github.com/users/vdomos/repos","events_url":"https://api.github.com/users/vdomos/events{/privacy}","received_events_url":"https://api.github.com/users/vdomos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-11T18:19:03Z","updated_at":"2015-10-11T18:19:03Z","closed_at":null,"body":"The creation of a new DS2405 device in the OneWire plugin causes an 500 - \"Internal server error\"\r\n\r\nAdmin GUI:\r\n    Ooops! It seems that something is broken somewhere...\r\n\r\n    This page means that you encountered an error. If this is not expected (and why would you expect for an error ?) you could do the following to help us :\r\n\r\n        Check in the logs if you find anything.\r\n        If there is nothing in the logs, you could start the admin in a terminal : killall -9 dmg_admin ;     dmg_admin -f and check if you see some errors.\r\n        With these informations, create a ticket on our bug tracker : http://tracker.domogik.org/projects/domogik/issues/new\r\n        Take a cup of coffee or tea.\r\n\r\nHere the admin.log:\r\n    2015-10-10 12:11:50,494 domogik.admin.application ERROR Exception on /client/plugin-onewire.ares/dmg_devices/known [GET]\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python2.7/dist-packages/flask/app.py\", line 1817, in wsgi_app\r\n        response = self.full_dispatch_request()\r\n      File \"/usr/lib/python2.7/dist-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n        rv = self.handle_user_exception(e)\r\n      File \"/usr/lib/python2.7/dist-packages/flask/app.py\", line 1381, in handle_user_exception\r\n        reraise(exc_type, exc_value, tb)\r\n      File \"/usr/lib/python2.7/dist-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n        rv = self.dispatch_request()\r\n      File \"/usr/lib/python2.7/dist-packages/flask/app.py\", line 1461, in dispatch_request\r\n        return self.view_functions[rule.endpoint](**req.view_args)\r\n      File \"/usr/local/lib/python2.7/dist-packages/flask_login.py\", line 792, in decorated_view\r\n        return func(*args, **kwargs)\r\n      File \"/opt/dmg/domogik-0.4.1/src/domogik/admin/views/clients.py\", line 149, in client_devices_known\r\n        devices = app.db.list_devices_by_plugin(client_id)\r\n      File \"/opt/dmg/domogik-0.4.1/src/domogik/common/database.py\", line 393, in list_devices_by_plugin\r\n        device_list.append(self.get_device(device=device))\r\n      File \"/opt/dmg/domogik-0.4.1/src/domogik/common/database.py\", line 462, in get_device\r\n        'xpl_command' : a_cmd.xpl_command.json_id,\r\n    AttributeError: 'NoneType' object has no attribute 'json_id'\r\n\r\nAll the plugins don't restart:\r\n    xplplugin_onewire.log:2015-10-10 11:54:24,931 domogik-onewire ERROR Unable to retrieve the device list\r\n    xplplugin_diskfree.log:2015-10-10 12:00:57,351 domogik-diskfree ERROR Unable to retrieve the device list\r\n\r\nOther errors in logs:\r\n    xplgw.log:2015-10-10 11:54:22,231 domogik-xplgw ERROR Updating client list failed, no response from manager\r\n    manager.log:2015-10-10 11:54:19,930 domogik-manager ERROR Query config for client weather on host ares, key auto_startup : no response from dbmgr\r\n    manager.log:2015-10-10 11:54:24,961 domogik-manager ERROR Query config for client diskfree on host ares, key * : no response from dbmgr\r\n\r\nHere is the new DS2405 onewire device in database => 05.4AEC29CDBAAB:\r\n    (root@localhost) [domogik]> select * from core_device;\r\n    +----+-----------------+-------------+-----------------+---------+-----------------------------+----------------------+----------------+\r\n    | id | name            | description | reference       | address | device_type_id              | client_id            | client_version |\r\n    +----+-----------------+-------------+-----------------+---------+-----------------------------+----------------------+----------------+\r\n    |  1 | Meteo Yahoo     | Meteo lqly  |                 | NULL    | weather.weather             | plugin-weather.ares  | 1.2            |\r\n    |  4 | thn132n.bd      | Temp. Ext   |                 | NULL    | rfxcom.temperature          | plugin-rfxcom.ares   | 1.68.2         |\r\n    |  5 | thgr228n.78     |             | Temp. Sejour    | NULL    | rfxcom.temperature_humidity | plugin-rfxcom.ares   | 1.68.2         |\r\n    |  8 | 28.67C6697351FF | NULL        | 67C6697351FF    | NULL    | onewire.thermometer         | plugin-onewire.ares  | 1.0            |\r\n    | 10 | sda root        |             | sda root        | NULL    | diskfree.disk_usage         | plugin-diskfree.ares | 1.3            |\r\n    | 12 | 28.5C1FD0040000 |             | 28.5C1FD0040000 | NULL    | onewire.thermometer         | plugin-onewire.ares  | 1.0            |\r\n    | 13 | 05.4AEC29CDBAAB |             | 05.4AEC29CDBAAB | NULL    | onewire.gpio                | plugin-onewire.ares  | 1.0            |\r\n    +----+-----------------+-------------+-----------------+---------+-----------------------------+----------------------+----------------+\r\n\r\n\r\nIn the core_xplstat the device with ID # 13 have a **get_temp** in **json_id**, it's normal for a GPIO ?\r\n    (root@localhost) [domogik]> select * from core_xplstat;   \r\n    +----+-----------+-------------------------+--------------------------+------------------+\r\n    | id | device_id | json_id                 | name                     | schema           |\r\n    +----+-----------+-------------------------+--------------------------+------------------+\r\n    |  1 |         1 | forecast_day_3          | Forecast day 3           | weather.forecast |\r\n    ...\r\n    | 47 |        13 | get_temp                | get_temp                 | sensor.basic     |\r\n    +----+-----------+-------------------------+--------------------------+------------------+\r\n    32 rows in set (0.00 sec)\r\n\r\n"}}