home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.42k stars 30.31k forks source link

Issue with Deconz after upgrade #17082

Closed csiza closed 5 years ago

csiza commented 6 years ago

Hello guys,

I am having an issue with my Deconz Component after upgrading to 0.78, 0.79.1, 0.79.2 After reboot all of my Deconz devices, sensors, lights are lost from the HA, however on the Deconz GUI everything is there any works fine. I found that in the Integrations menu (where Deconz is configured it shows as “Setup_error”. Also in the logs: "Timeout getting deCONZ data from "IP of deconz"...

On latest upgrades 0.79.1, 0.79.2 it is very random when it is working and when it is not, but definitely not stable. Also when it is working I am randomly loosing connections to my xiaomi sensors.

Currently I am on 0.79.0b1 where It seems everything is working fine.

Thanks Csiza

Kane610 commented 6 years ago

How are you running deconz?

csiza commented 6 years ago

I have integrated using discovery. + installed the deconz addon in hassio. It was running just fine earlier, but not on the new versions of HA.

Kane610 commented 6 years ago

When you say very random when it is working; is that per restart?

ghost commented 6 years ago

Which version of the deconz add in are you on? Have you added the device location in the add-on settings?

csiza commented 6 years ago

Sorry guys about my late answer. So, When I say random, yes, after restart sometimes HA can connect to deconz sometimes not. I am using 2.05.35 version. But also upgraded to .39. So not really sure what is the issue here. I have started experiencing connection issue starting at HA 0.78.3. and sensor unreachable issue with deconz .39. But not really sure. How do I add device location for deconz? Why it matters?

ghost commented 6 years ago

This is what I mean by specifying the location:

Before starting the add-on for the first time after installing or upgrading, in the add-on config you must specify the device name that has been assigned to your RaspBee/Conbee as the "deconz_device". Replace null and specify the device name in quotes (e.g. "/dev/ttyUSB0" or "/dev/ttyAMA0"). The other config options have sensible defaults that should not need to be changed unless you are debugging.

rich710se commented 6 years ago

Same happens today for me on 0.79.3. But it worked perfect yesterday and I havent upgraded since. Just rebooted HA this morning, and I had some internet-problems so my connection was lost. But I don't think that should have someting to do with it. Heres the only two lines that show up in my log: 2018-10-04 16:08:39 ERROR (MainThread) [pydeconz.utils] Error getting deCONZ data from http://192.168.1.111:80/api/XXXXX. 2018-10-04 16:08:39 ERROR (MainThread) [pydeconz] Couldn't load data from deCONZ If I go in to the integration under Configuration all the panels for the devices are there, but a note under each says (entity unavailable)

csiza commented 6 years ago

This is what I mean by specifying the location:

Before starting the add-on for the first time after installing or upgrading, in the add-on config you must specify the device name that has been assigned to your RaspBee/Conbee as the "deconz_device". Replace null and specify the device name in quotes (e.g. "/dev/ttyUSB0" or "/dev/ttyAMA0"). The other config options have sensible defaults that should not need to be changed unless you are debugging.

that config is there only on 2.0.5.39. But When I upgraded it I have added /dev/ttyUSB0. Issue is still persists.

Kane610 commented 6 years ago

Is the address to deconz really correct? I've reread all the posts twice, you are getting timeouts which would suggest the wrong IP to deconz

rich710se commented 6 years ago

Yes, the adress is really correct in my case. Thew only thing I did yesterday to have the problem solved, was to delete the integration with pushing the trashbin in the upper right corner of my deconz-integration. Rebooted Hass, and then all my devices was back .

Kane610 commented 6 years ago

Ok. Next time we see this I'd like to see the storage/core.config_entry for deconz together with the deConz configuration.yaml

csiza commented 6 years ago

I am using discovery so not giving any explicit settings for deconz in configuration.yaml. But in the logs I am seeing the right IP. Would it makes sense to define deconz explicitly even when discovery is enabled?

Kane610 commented 6 years ago

Well no-one has mentioned any issues with discovery before. Might be worth to try.

Paul-dH commented 6 years ago

Hi all, all my lights are unavailable and the log file shows the same error message. I've tried to remove the integration and after a reboot I was able to re-add it to home assistant. But the lights are still unavailable.

I did found that I had configured the webport of deconz to 4080 because 8080 is used by the Unifi Controller. When I dug a little deeper also port 8443 was the same as Deconz. So I disabled the Unifi add-on and configured Deconz to default again. Rebooted Hass and still no lights.

I've put the ConBee in my laptop and there everything was ok, created a backup and restored it in Hass. This was no success, I now have 2 gateway's, one from hassio and one with the IP address of my laptop...

I have tried to reinstall deconz, remove the integration and add-on. Reboot and added the add-on back. This resulted in a complete empty Deconz instance... So this didn’t work either.

I'm restoring back to 79.0 now...

Please let me know what I can do to help :)

Kane610 commented 6 years ago

@Paul-dH Next time we see this I'd like to see the storage/core.config_entry for deconz together with the deConz configuration.yaml

can you share this?

Paul-dH commented 6 years ago

Hi @Kane610 Luckily I've created a backup yesterday, had to do a little unpacking and searching but;

core.config_entries:

{
    "data": {
        "entries": [
            {
                "connection_class": "unknown",
                "data": {},
                "domain": "cast",
                "entry_id": "aa8cb4d7d6574f928a4e2d1ad1b41854",
                "source": "discovery",
                "title": "Google Cast",
                "version": 1
            },
            {
                "connection_class": "unknown",
                "data": {
                    "allow_clip_sensor": true,
                    "allow_deconz_groups": false,
                    "api_key": "EAAA66BB63",
                    "bridgeid": "00212EFFFF0279D7",
                    "host": "10.1.0.5",
                    "port": 4080
                },
                "domain": "deconz",
                "entry_id": "3a8d1e5aa75445269e0c34115de4c987",
                "source": "user",
                "title": "deCONZ-00212EFFFF0279D7",
                "version": 1
            },
            {
                "connection_class": "local_push",
                "data": {},
                "domain": "mqtt",
                "entry_id": "1ee6c7a648c74a9ea7a896e29e19b13a",
                "source": "import",
                "title": "configuration.yaml",
                "version": 1
            }
        ]
    },
    "key": "core.config_entries",
    "version": 1
}

Options.json:

{
  "deconz_device": "/dev/ttyAMA0",
  "web_port": 4080,
  "websockets_port": 4443,
  "debug_info": 1,
  "debug_aps": 0,
  "debug_zcl": 0,
  "debug_zdp": 0,
  "debug_otau": 0
}

In the add-on log these lines are being writen:

20:52:33:139 dev /dev/ttyAMA0
20:52:36:166 Content not completely loaded (got 0 of 0), wait 20ms
20:52:36:186 Content not completely loaded (got 0 of 0), fetch rest [2]
20:52:37:168    /inform --> HTTP/1.1 404 Not Found
20:52:52:552 Content not completely loaded (got 0 of 0), wait 20ms
20:52:52:572 Content not completely loaded (got 0 of 0), fetch rest [2]
20:52:53:554    /inform --> HTTP/1.1 404 Not Found

In homeassistant.log are many more lines visible, it looks like it worked then. I have to say that after the downgrade and restore Deconz is still broken... Doh :(

If you want more logfiles, that is no problem. Please provide a preffered way to receive the logs.

Kane610 commented 6 years ago

@Paul-dH you shouldn't have Conbee on /dev/ttyAMA0. But that shouldn't really block the web connection from setting up.

Can you post your logs as well? Have you enabled debug for deconz?

Paul-dH commented 6 years ago

Are you by any chance online at the discordapp? My nick is Paul_dH

Oh, and yes I do have debug logging enabled for Deconz

odgregg commented 6 years ago

Had this issue with 0.78, it was fixed in 0.79.0 (I didn't update to any of the point releases).

Now it's broken again in 0.80.0

Kane610 commented 6 years ago

If it is failing sporadically it is probably something in your environment.

Ipaddress, port, New containers?

odgregg commented 6 years ago

Haven't changed any of those, or added anything new. It's not failing sporadically, it's on every restart of HASS that it gets this error. I then have to remove it under integrations and re-add.

The error in the log is:

2018-10-13 09:12:56 ERROR (MainThread) [pydeconz.utils] Timeout getting deCONZ data from http://192.168.1.110:8080/api/D941xxxxxx

Loading that URL works fine. And this worked 100% reliably on 0.79.0, well at least the 10 or so reboots under that version. Under 0.78 and 0.80 it's happened every reboot.

Kane610 commented 6 years ago

And after readding it to HASS it works until restart? The restart only affect the hass instance? Deconz is available the whole time?

odgregg commented 6 years ago

Yes, deconz is available during the restart. And yes, works until restart

Kane610 commented 6 years ago

Have you reset deconz previously? Do you happen to have a deconz configuration in configuration.yaml perhaps?

odgregg commented 6 years ago

No deconz configured in yaml file, but there is one commented out. Just did another restart, deconz is definitely available the whole time.

csiza commented 6 years ago

Has anyone of of you tried to upgrade to 0.80 yet? I am still on 0.79.0b1 and afraid to upgrade.. :)

odgregg commented 6 years ago

Yes, had the problem on 0.80.0 but think I just solved it.

Noticed there was an update for HassOS to 1.11 (I was on 1.10)

Seems to be fixed since applying that update. I've rebooted, and then restarted, and deconz has stayed connected.

ghost commented 6 years ago

How do you update hassos without having to reinstall everything?

odgregg commented 6 years ago

If you've installed the more recent HassOS image, you can update date it easily. Go to Hass.io->System and check if there's an "Update" button in the "Host System" section. I think it took about 10 minutes to update for me and reboot.

ghost commented 6 years ago

Thanks. Didn't even realise you could scroll down in that section!

Kane610 commented 5 years ago

So it is working for you guys now? @odgregg @jamesking420 @csiza?

odgregg commented 5 years ago

Yes, working reliably so far for me after upgrading HassOS to 1.11

Kane610 commented 5 years ago

Should we consider this issue solved then?

csiza commented 5 years ago

Also updated to 0.80.1 and looks ok. Just one more thing. Have you updated the latest deconz firmware too? Can I go for it too?

Kane610 commented 5 years ago

@csiza I haven't updated yet, still on the firmware for 2.05.34. There are some issues being ironed out that I'd like to wait for first. But it depends on what devices you have. Details are on deconz GitHub.

Kane610 commented 5 years ago

Since OP has got this solved I'm closing this issue.

csiza commented 5 years ago

After HA restart deconz issue is back ... :(

2018-10-16 22:13:31 ERROR (MainThread) [pydeconz.utils] Timeout getting deCONZ data from http://192.168.1.148:8080/api/609F849A93. 2018-10-16 22:13:31 ERROR (MainThread) [pydeconz] Couldn't load data from deCONZ

Kane610 commented 5 years ago

@csiza did you do like @odgregg and update HassOS to 1.11?

csiza commented 5 years ago

I am not using HassOS but Hass.io and yes that is updated to the latest version which 138.

csiza commented 5 years ago

Tried something else too. I removed the integration to deconz. Then added back and bumm the devices appeared as it should be. Unfortunately after reboot it is gone again. Timeout... :( Not sure really...

Kane610 commented 5 years ago

@csiza can you get logs that cover:

csiza commented 5 years ago

Sure, How to get those logs?

Kane610 commented 5 years ago

Enable debug for deconz, follow instructions on component documentation

csiza commented 5 years ago

I hope this is it. After restart:

2018-10-17 14:31:05 INFO (MainThread) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz
2018-10-17 14:31:05 INFO (MainThread) [homeassistant.setup] Setting up deconz
2018-10-17 14:31:05 INFO (MainThread) [homeassistant.setup] Setup of domain deconz took 0.0 seconds.
2018-10-17 14:31:05 DEBUG (MainThread) [pydeconz.utils] Sending {} to http://192.168.1.148:8080/api/B97B386E13
2018-10-17 14:31:16 ERROR (MainThread) [pydeconz.utils] Timeout getting deCONZ data from http://192.168.1.148:8080/api/B97B386E13.
2018-10-17 14:31:16 ERROR (MainThread) [pydeconz] Couldn't load data from deCONZ

After re-adding:

018-10-17 14:46:53 DEBUG (MainThread) [pydeconz.utils] Sending {} to https://dresden-light.appspot.com/discover
2018-10-17 14:46:53 DEBUG (MainThread) [pydeconz.utils] HTTP request response: [{'macaddress': '00212EFFFF022F7C', 'name': 'Csiza-Zigbee-GW', 'internalipaddress': '192.168.1.148', 'publicipaddress': '86.101.39.225', 'internalport': 8080, 'id': '00212EFFFF022F7C'}]
2018-10-17 14:46:53 INFO (MainThread) [pydeconz.utils] Discovered the following bridges: [{'bridgeid': '00212EFFFF022F7C', 'host': '192.168.1.148', 'port': 8080}].
2018-10-17 14:47:02 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow/31566111d8234fdd9f0a6b7ea10ae3f4 to 192.168.1.1 (auth: True)
2018-10-17 14:47:02 DEBUG (MainThread) [pydeconz.utils] Sending {'auth': None, 'data': b'{"devicetype": "pydeconz"}'} to http://192.168.1.148:8080/api
2018-10-17 14:47:02 DEBUG (MainThread) [pydeconz.utils] HTTP request response: [{'success': {'username': '65B9786F6D'}}]
2018-10-17 14:47:02 INFO (MainThread) [pydeconz.utils] API key: 65B9786F6D
2018-10-17 14:47:04 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow/31566111d8234fdd9f0a6b7ea10ae3f4 to 192.168.1.1 (auth: True)
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.utils] Sending {} to http://192.168.1.148:8080/api/65B9786F6D
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.utils] HTTP request response: {'config': {'UTC': '2018-10-17T12:47:04', 'apiversion': '1.0.9', 'backup': {'errorcode': 0, 'status': 'idle'}, 'bridgeid': '00212EFFFF022F7C', 'datastoreversion': '60', 'devicename': 'ConBee', 'dhcp': True, 'factorynew': False, 'fwversion': '0x261f0500', 'gateway': '192.168.1.1', 'internetservices': {'remoteaccess': 'disconnected'}, 'ipaddress': '192.168.1.148', 'linkbutton': True, 'localtime': '2018-10-17T14:47:04', 'mac': '02:19:05:81:61:e4', 'modelid': 'deCONZ', 'name': 'Csiza-Zigbee-GW', 'netmask': '255.255.255.0', 'networkopenduration': 60, 'panid': 28851, 'portalconnection': 'disconnected', 'portalservices': False, 'portalstate': {'communication': 'disconnected', 'incoming': False, 'outgoing': False, 'signedon': False}, 'proxyaddress': 'none', 'proxyport': 0, 'replacesbridgeid': None, 'rfconnected': True, 'starterkitid': '', 'swupdate': {'checkforupdate': False, 'devicetypes': {'bridge': False, 'lights': [], 'sensors': []}, 'notify': False, 'text': '', 'updatestate': 0, 'url': ''}, 'swupdate2': {'autoinstall': {'on': False, 'updatetime': ''}, 'bridge': {'lastinstall': '', 'state': 'allreadytoinstall'}, 'checkforupdate': False, 'install': False, 'lastchange': '', 'lastinstall': '', 'state': 'allreadytoinstall'}, 'swversion': '2.5.35', 'timeformat': '12h', 'timezone': 'Etc/GMT-2', 'uuid': 'c4dbb627-175e-4ec0-8e95-0576c5302746', 'websocketnotifyall': True, 'websocketport': 8443, 'whitelist': {'039808304E': {'create date': '2018-10-17T11:17:16', 'last use date': '2018-10-17T11:21:11', 'name': 'pydeconz'}, '047F87ADE0': {'create date': '2018-10-02T18:12:18', 'last use date': '2018-10-12T17:35:49', 'name': 'Phoscon'}, '04A0D49B36': {'create date': '2018-09-03T09:41:00', 'last use date': '2018-09-03T09:42:30', 'name': 'Phoscon#S375x617'}, '05BA5BE549': {'create date': '2018-08-29T08:28:30', 'last use date': '2018-09-08T07:02:38', 'name': 'Phoscon#B1190x612'}, '05BF53A3C2': {'create date': '2018-08-04T20:07:10', 'last use date': '2018-08-26T19:36:28', 'name': 'Phoscon#B1240x642'}, '11D1D2EE32': {'create date': '2018-06-24T20:29:21', 'last use date': '2018-06-25T07:57:24', 'name': 'Phoscon#S375x617'}, '157677907D': {'create date': '2018-08-26T16:31:03', 'last use date': '2018-08-28T06:23:34', 'name': 'Phoscon#B1190x612'}, '16BDBDFCE1': {'create date': '2018-08-27T16:24:07', 'last use date': '2018-08-27T16:24:11', 'name': 'Phoscon#S375x617'}, '1BD68B54F3': {'create date': '2018-10-16T20:52:14', 'last use date': '2018-10-17T11:18:06', 'name': 'Phoscon'}, '1C47D1E645': {'create date': '2018-08-27T16:26:17', 'last use date': '2018-08-27T16:26:21', 'name': 'Phoscon#S375x617'}, '1E1562051E': {'create date': '2018-10-17T10:45:13', 'last use date': '2018-10-17T10:45:18', 'name': 'pydeconz'}, '204D808FAF': {'create date': '2018-10-17T11:27:57', 'last use date': '2018-10-17T11:33:41', 'name': 'pydeconz'}, '308C07E066': {'create date': '2018-08-24T10:04:15', 'last use date': '2018-08-24T11:35:38', 'name': 'Phoscon#B1190x612'}, '38BF0D80D5': {'create date': '2018-09-19T17:23:43', 'last use date': '2018-09-20T22:11:54', 'name': 'Phoscon'}, '463145C252': {'create date': '2018-06-24T16:30:43', 'last use date': '2018-06-24T16:32:10', 'name': 'Phoscon#S974x718'}, '50DFA0CDFF': {'create date': '2018-06-23T14:01:30', 'last use date': '2018-06-23T20:14:29', 'name': 'Phoscon#B1280x716'}, '57D318109A': {'create date': '2018-08-21T20:50:44', 'last use date': '2018-08-21T20:51:06', 'name': 'Phoscon'}, '609F849A93': {'create date': '2018-06-23T14:14:07', 'last use date': '2018-10-16T21:05:00', 'name': 'pydeconz'}, '624E9EDF8E': {'create date': '2018-09-17T20:19:47', 'last use date': '2018-09-18T06:19:36', 'name': 'Phoscon#B1280x716'}, '65B9786F6D': {'create date': '2018-10-17T12:47:02', 'last use date': '2018-10-17T12:47:04', 'name': 'pydeconz'}, '66E8C1C156': {'create date': '2018-09-19T17:25:40', 'last use date': '2018-09-20T22:11:54', 'name': 'Phoscon'}, '6B5F204C49': {'create date': '2018-06-28T19:32:44', 'last use date': '2018-06-29T05:56:22', 'name': 'Phoscon#B375x553'}, '7D6EA46C98': {'create date': '2018-06-23T20:02:52', 'last use date': '2018-06-29T12:50:54', 'name': 'Phoscon#B1280x716'}, '7F8B103784': {'create date': '2018-08-26T17:20:46', 'last use date': '2018-10-04T05:39:23', 'name': 'Phoscon'}, '812426A43C': {'create date': '2018-06-24T15:42:03', 'last use date': '2018-06-27T20:26:19', 'name': 'Phoscon#B1230x686'}, '8593618787': {'create date': '2018-07-05T16:24:32', 'last use date': '2018-09-13T14:52:48', 'name': 'Phoscon#B1024x653'}, '8737419186': {'create date': '2018-09-17T20:02:26', 'last use date': '2018-09-17T20:16:57', 'name': 'Phoscon'}, '8CE95ADF5E': {'create date': '2018-09-17T20:16:54', 'last use date': '2018-09-18T05:53:28', 'name': 'Phoscon#B1230x686'}, '8E84B27F95': {'create date': '2018-08-24T11:35:22', 'last use date': '2018-08-27T16:52:08', 'name': 'Phoscon#B1190x612'}, '95A6B86D6A': {'create date': '2018-07-31T18:40:03', 'last use date': '2018-07-31T18:40:05', 'name': 'Phoscon#B1240x642'}, '97597916E9': {'create date': '2018-06-25T18:12:00', 'last use date': '2018-06-25T20:13:36', 'name': 'Phoscon#B1280x716'}, '9BB6F8FED9': {'create date': '2018-06-25T07:57:14', 'last use date': '2018-06-25T07:58:42', 'name': 'Phoscon#S375x617'}, 'B3F82122F1': {'create date': '2018-08-24T10:18:47', 'last use date': '2018-08-24T11:35:54', 'name': 'Phoscon#B1190x612'}, 'B97B386E13': {'create date': '2018-10-17T11:35:20', 'last use date': '2018-10-17T12:31:15', 'name': 'pydeconz'}, 'C4ECBA305E': {'create date': '2018-09-03T09:39:39', 'last use date': '2018-09-03T09:40:03', 'name': 'Phoscon#S375x617'}, 'CA1AF50079': {'create date': '2018-09-19T16:45:24', 'last use date': '2018-09-19T16:45:27', 'name': 'Phoscon'}, 'CD48D306B5': {'create date': '2018-06-23T13:10:10', 'last use date': '2018-06-23T14:00:11', 'name': 'Phoscon#B1280x716'}, 'D5F578FBEE': {'create date': '2018-09-16T17:30:59', 'last use date': '2018-09-16T18:46:54', 'name': 'Phoscon'}, 'DC04F4B160': {'create date': '2018-08-26T19:38:03', 'last use date': '2018-08-26T19:38:08', 'name': 'Phoscon#B1463x797'}, 'DD987DF20A': {'create date': '2018-08-27T06:29:42', 'last use date': '2018-08-27T16:24:11', 'name': 'Phoscon#S375x617'}, 'E05EB5746E': {'create date': '2018-10-03T12:01:33', 'last use date': '2018-10-03T12:21:37', 'name': 'Phoscon'}, 'EA0C8BD06B': {'create date': '2018-10-17T11:27:41', 'last use date': '2018-10-17T12:47:00', 'name': 'Phoscon'}, 'EC1D46FC01': {'create date': '2018-09-26T18:33:56', 'last use date': '2018-10-16T20:52:03', 'name': 'Phoscon'}, 'F4D25F0F06': {'create date': '2018-09-18T11:12:18', 'last use date': '2018-09-18T20:40:08', 'name': 'Phoscon'}}, 'zigbeechannel': 15}, 'groups': {'2': {'action': {'bri': 127, 'colormode': 'hs', 'ct': 0, 'effect': 'none', 'hue': 0, 'on': False, 'sat': 127, 'scene': None, 'xy': [0, 0]}, 'class': 'Other', 'devicemembership': [], 'etag': 'eada862ffe86672500bc5ef8d7420136', 'hidden': False, 'id': '2', 'lights': ['1', '2'], 'lightsequence': [], 'multideviceids': [], 'name': 'TV Lamp', 'scenes': [], 'state': {'all_on': False, 'any_on': False}, 'type': 'LightGroup'}}, 'lights': {'1': {'etag': 'eada862ffe86672500bc5ef8d7420136', 'hascolor': False, 'manufacturername': 'IKEA of Sweden', 'modelid': 'TRADFRI bulb GU10 W 400lm', 'name': 'TV Lamp 1', 'state': {'alert': 'none', 'bri': 121, 'on': False, 'reachable': True}, 'swversion': '1.2.214', 'type': 'Dimmable light', 'uniqueid': '00:0b:57:ff:fe:e8:37:78-01'}, '2': {'etag': 'eada862ffe86672500bc5ef8d7420136', 'hascolor': False, 'manufacturername': 'IKEA of Sweden', 'modelid': 'TRADFRI bulb GU10 W 400lm', 'name': 'TV Lamp 2', 'state': {'alert': 'none', 'bri': 121, 'on': False, 'reachable': True}, 'swversion': '1.2.214', 'type': 'Dimmable light', 'uniqueid': '90:fd:9f:ff:fe:71:5d:05-01'}}, 'resourcelinks': {}, 'rules': {}, 'schedules': {}, 'sensors': {'1': {'config': {'configured': True, 'on': True, 'sunriseoffset': 30, 'sunsetoffset': -30}, 'etag': '7a7ab35e2e9019a4b294d05160f44520', 'manufacturername': 'Philips', 'modelid': 'PHDL00', 'name': 'Daylight', 'state': {'dark': False, 'daylight': True, 'lastupdated': '2018-10-17T10:30:22', 'status': 170}, 'swversion': '1.0', 'type': 'Daylight', 'uniqueid': '00:21:2e:ff:ff:02:2f:7c-01'}, '12': {'config': {'battery': 100, 'on': True, 'reachable': True, 'temperature': 2500, 'tholddark': 12000, 'tholdoffset': 7000}, 'ep': 1, 'etag': 'f0d8477743337efe586396bd5e4e57fc', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_motion.aq2', 'name': 'Motion Sensor', 'state': {'dark': False, 'daylight': True, 'lastupdated': '2018-10-17T12:28:53', 'lightlevel': 19139, 'lux': 82}, 'type': 'ZHALightLevel', 'uniqueid': '00:15:8d:00:02:2e:c3:97-01-0400'}, '13': {'config': {'battery': 100, 'duration': 60, 'on': True, 'reachable': True, 'temperature': 2500}, 'ep': 1, 'etag': 'f0d8477743337efe586396bd5e4e57fc', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_motion.aq2', 'name': 'Motion Sensor', 'state': {'lastupdated': '2018-10-17T12:28:53', 'presence': False}, 'type': 'ZHAPresence', 'uniqueid': '00:15:8d:00:02:2e:c3:97-01-0406'}, '2': {'config': {'battery': 100, 'on': True, 'reachable': True, 'temperature': 2700}, 'ep': 1, 'etag': 'a17f5262cce19595d43706aa05ed04e7', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_magnet.aq2', 'name': 'Window / Door Sensor', 'state': {'lastupdated': '2018-10-17T12:16:29', 'open': False}, 'type': 'ZHAOpenClose', 'uniqueid': '00:15:8d:00:02:0b:53:27-01-0006'}, '5': {'config': {'battery': 100, 'on': True, 'reachable': True}, 'ep': 1, 'etag': '7eeeb6b3e956af14062fc0b42421b634', 'manufacturername': 'LUMI', 'modelid': 'lumi.weather', 'name': 'Multi Sensor', 'state': {'humidity': 4850, 'lastupdated': '2018-10-17T12:34:21'}, 'type': 'ZHAHumidity', 'uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0405'}, '6': {'config': {'battery': 100, 'on': True, 'reachable': True}, 'ep': 1, 'etag': '7eeeb6b3e956af14062fc0b42421b634', 'manufacturername': 'LUMI', 'modelid': 'lumi.weather', 'name': 'Pressure 6', 'state': {'lastupdated': '2018-10-17T12:34:21', 'pressure': 1005}, 'type': 'ZHAPressure', 'uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0403'}, '7': {'config': {'battery': 100, 'offset': 0, 'on': True, 'reachable': True}, 'ep': 1, 'etag': '7eeeb6b3e956af14062fc0b42421b634', 'manufacturername': 'LUMI', 'modelid': 'lumi.weather', 'name': 'Temperature 7', 'state': {'lastupdated': '2018-10-17T12:34:21', 'temperature': 2462}, 'type': 'ZHATemperature', 'uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0402'}, '8': {'config': {'battery': 100, 'offset': 0, 'on': True, 'reachable': True}, 'ep': 1, 'etag': '297224911ff8b84137dfc6033e2aec31', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_ht', 'name': 'Multi Sensor (2)', 'state': {'lastupdated': '2018-10-17T12:05:04', 'temperature': 2320}, 'type': 'ZHATemperature', 'uniqueid': '00:15:8d:00:02:0e:cf:83-01-0402'}, '9': {'config': {'battery': 100, 'on': True, 'reachable': True}, 'ep': 1, 'etag': '297224911ff8b84137dfc6033e2aec31', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_ht', 'name': 'Humidity 9', 'state': {'humidity': 5079, 'lastupdated': '2018-10-17T12:05:04'}, 'type': 'ZHAHumidity', 'uniqueid': '00:15:8d:00:02:0e:cf:83-01-0405'}}}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz] {'config': {'UTC': '2018-10-17T12:47:04',
            'apiversion': '1.0.9',
            'backup': {'errorcode': 0, 'status': 'idle'},
            'bridgeid': '00212EFFFF022F7C',
            'datastoreversion': '60',
            'devicename': 'ConBee',
            'dhcp': True,
            'factorynew': False,
            'fwversion': '0x261f0500',
            'gateway': '192.168.1.1',
            'internetservices': {'remoteaccess': 'disconnected'},
            'ipaddress': '192.168.1.148',
            'linkbutton': True,
            'localtime': '2018-10-17T14:47:04',
            'mac': '02:19:05:81:61:e4',
            'modelid': 'deCONZ',
            'name': 'Csiza-Zigbee-GW',
            'netmask': '255.255.255.0',
            'networkopenduration': 60,
            'panid': 28851,
            'portalconnection': 'disconnected',
            'portalservices': False,
            'portalstate': {'communication': 'disconnected',
                            'incoming': False,
                            'outgoing': False,
                            'signedon': False},
            'proxyaddress': 'none',
            'proxyport': 0,
            'replacesbridgeid': None,
            'rfconnected': True,
            'starterkitid': '',
            'swupdate': {'checkforupdate': False,
                         'devicetypes': {'bridge': False,
                                         'lights': [],
                                         'sensors': []},
                         'notify': False,
                         'text': '',
                         'updatestate': 0,
                         'url': ''},
            'swupdate2': {'autoinstall': {'on': False, 'updatetime': ''},
                          'bridge': {'lastinstall': '',
                                     'state': 'allreadytoinstall'},
                          'checkforupdate': False,
                          'install': False,
                          'lastchange': '',
                          'lastinstall': '',
                          'state': 'allreadytoinstall'},
            'swversion': '2.5.35',
            'timeformat': '12h',
            'timezone': 'Etc/GMT-2',
            'uuid': 'c4dbb627-175e-4ec0-8e95-0576c5302746',
            'websocketnotifyall': True,
            'websocketport': 8443,
            'whitelist': {'039808304E': {'create date': '2018-10-17T11:17:16',
                                         'last use date': '2018-10-17T11:21:11',
                                         'name': 'pydeconz'},
                          '047F87ADE0': {'create date': '2018-10-02T18:12:18',
                                         'last use date': '2018-10-12T17:35:49',
                                         'name': 'Phoscon'},
                          '04A0D49B36': {'create date': '2018-09-03T09:41:00',
                                         'last use date': '2018-09-03T09:42:30',
                                         'name': 'Phoscon#S375x617'},
                          '05BA5BE549': {'create date': '2018-08-29T08:28:30',
                                         'last use date': '2018-09-08T07:02:38',
                                         'name': 'Phoscon#B1190x612'},
                          '05BF53A3C2': {'create date': '2018-08-04T20:07:10',
                                         'last use date': '2018-08-26T19:36:28',
                                         'name': 'Phoscon#B1240x642'},
                          '11D1D2EE32': {'create date': '2018-06-24T20:29:21',
                                         'last use date': '2018-06-25T07:57:24',
                                         'name': 'Phoscon#S375x617'},
                          '157677907D': {'create date': '2018-08-26T16:31:03',
                                         'last use date': '2018-08-28T06:23:34',
                                         'name': 'Phoscon#B1190x612'},
                          '16BDBDFCE1': {'create date': '2018-08-27T16:24:07',
                                         'last use date': '2018-08-27T16:24:11',
                                         'name': 'Phoscon#S375x617'},
                          '1BD68B54F3': {'create date': '2018-10-16T20:52:14',
                                         'last use date': '2018-10-17T11:18:06',
                                         'name': 'Phoscon'},
                          '1C47D1E645': {'create date': '2018-08-27T16:26:17',
                                         'last use date': '2018-08-27T16:26:21',
                                         'name': 'Phoscon#S375x617'},
                          '1E1562051E': {'create date': '2018-10-17T10:45:13',
                                         'last use date': '2018-10-17T10:45:18',
                                         'name': 'pydeconz'},
                          '204D808FAF': {'create date': '2018-10-17T11:27:57',
                                         'last use date': '2018-10-17T11:33:41',
                                         'name': 'pydeconz'},
                          '308C07E066': {'create date': '2018-08-24T10:04:15',
                                         'last use date': '2018-08-24T11:35:38',
                                         'name': 'Phoscon#B1190x612'},
                          '38BF0D80D5': {'create date': '2018-09-19T17:23:43',
                                         'last use date': '2018-09-20T22:11:54',
                                         'name': 'Phoscon'},
                          '463145C252': {'create date': '2018-06-24T16:30:43',
                                         'last use date': '2018-06-24T16:32:10',
                                         'name': 'Phoscon#S974x718'},
                          '50DFA0CDFF': {'create date': '2018-06-23T14:01:30',
                                         'last use date': '2018-06-23T20:14:29',
                                         'name': 'Phoscon#B1280x716'},
                          '57D318109A': {'create date': '2018-08-21T20:50:44',
                                         'last use date': '2018-08-21T20:51:06',
                                         'name': 'Phoscon'},
                          '609F849A93': {'create date': '2018-06-23T14:14:07',
                                         'last use date': '2018-10-16T21:05:00',
                                         'name': 'pydeconz'},
                          '624E9EDF8E': {'create date': '2018-09-17T20:19:47',
                                         'last use date': '2018-09-18T06:19:36',
                                         'name': 'Phoscon#B1280x716'},
                          '65B9786F6D': {'create date': '2018-10-17T12:47:02',
                                         'last use date': '2018-10-17T12:47:04',
                                         'name': 'pydeconz'},
                          '66E8C1C156': {'create date': '2018-09-19T17:25:40',
                                         'last use date': '2018-09-20T22:11:54',
                                         'name': 'Phoscon'},
                          '6B5F204C49': {'create date': '2018-06-28T19:32:44',
                                         'last use date': '2018-06-29T05:56:22',
                                         'name': 'Phoscon#B375x553'},
                          '7D6EA46C98': {'create date': '2018-06-23T20:02:52',
                                         'last use date': '2018-06-29T12:50:54',
                                         'name': 'Phoscon#B1280x716'},
                          '7F8B103784': {'create date': '2018-08-26T17:20:46',
                                         'last use date': '2018-10-04T05:39:23',
                                         'name': 'Phoscon'},
                          '812426A43C': {'create date': '2018-06-24T15:42:03',
                                         'last use date': '2018-06-27T20:26:19',
                                         'name': 'Phoscon#B1230x686'},
                          '8593618787': {'create date': '2018-07-05T16:24:32',
                                         'last use date': '2018-09-13T14:52:48',
                                         'name': 'Phoscon#B1024x653'},
                          '8737419186': {'create date': '2018-09-17T20:02:26',
                                         'last use date': '2018-09-17T20:16:57',
                                         'name': 'Phoscon'},
                          '8CE95ADF5E': {'create date': '2018-09-17T20:16:54',
                                         'last use date': '2018-09-18T05:53:28',
                                         'name': 'Phoscon#B1230x686'},
                          '8E84B27F95': {'create date': '2018-08-24T11:35:22',
                                         'last use date': '2018-08-27T16:52:08',
                                         'name': 'Phoscon#B1190x612'},
                          '95A6B86D6A': {'create date': '2018-07-31T18:40:03',
                                         'last use date': '2018-07-31T18:40:05',
                                         'name': 'Phoscon#B1240x642'},
                          '97597916E9': {'create date': '2018-06-25T18:12:00',
                                         'last use date': '2018-06-25T20:13:36',
                                         'name': 'Phoscon#B1280x716'},
                          '9BB6F8FED9': {'create date': '2018-06-25T07:57:14',
                                         'last use date': '2018-06-25T07:58:42',
                                         'name': 'Phoscon#S375x617'},
                          'B3F82122F1': {'create date': '2018-08-24T10:18:47',
                                         'last use date': '2018-08-24T11:35:54',
                                         'name': 'Phoscon#B1190x612'},
                          'B97B386E13': {'create date': '2018-10-17T11:35:20',
                                         'last use date': '2018-10-17T12:31:15',
                                         'name': 'pydeconz'},
                          'C4ECBA305E': {'create date': '2018-09-03T09:39:39',
                                         'last use date': '2018-09-03T09:40:03',
                                         'name': 'Phoscon#S375x617'},
                          'CA1AF50079': {'create date': '2018-09-19T16:45:24',
                                         'last use date': '2018-09-19T16:45:27',
                                         'name': 'Phoscon'},
                          'CD48D306B5': {'create date': '2018-06-23T13:10:10',
                                         'last use date': '2018-06-23T14:00:11',
                                         'name': 'Phoscon#B1280x716'},
                          'D5F578FBEE': {'create date': '2018-09-16T17:30:59',
                                         'last use date': '2018-09-16T18:46:54',
                                         'name': 'Phoscon'},
                          'DC04F4B160': {'create date': '2018-08-26T19:38:03',
                                         'last use date': '2018-08-26T19:38:08',
                                         'name': 'Phoscon#B1463x797'},
                          'DD987DF20A': {'create date': '2018-08-27T06:29:42',
                                         'last use date': '2018-08-27T16:24:11',
                                         'name': 'Phoscon#S375x617'},
                          'E05EB5746E': {'create date': '2018-10-03T12:01:33',
                                         'last use date': '2018-10-03T12:21:37',
                                         'name': 'Phoscon'},
                          'EA0C8BD06B': {'create date': '2018-10-17T11:27:41',
                                         'last use date': '2018-10-17T12:47:00',
                                         'name': 'Phoscon'},
                          'EC1D46FC01': {'create date': '2018-09-26T18:33:56',
                                         'last use date': '2018-10-16T20:52:03',
                                         'name': 'Phoscon'},
                          'F4D25F0F06': {'create date': '2018-09-18T11:12:18',
                                         'last use date': '2018-09-18T20:40:08',
                                         'name': 'Phoscon'}},
            'zigbeechannel': 15},
 'groups': {'2': {'action': {'bri': 127,
                             'colormode': 'hs',
                             'ct': 0,
                             'effect': 'none',
                             'hue': 0,
                             'on': False,
                             'sat': 127,
                             'scene': None,
                             'xy': [0, 0]},
                  'class': 'Other',
                  'devicemembership': [],
                  'etag': 'eada862ffe86672500bc5ef8d7420136',
                  'hidden': False,
                  'id': '2',
                  'lights': ['1', '2'],
                  'lightsequence': [],
                  'multideviceids': [],
                  'name': 'TV Lamp',
                  'scenes': [],
                  'state': {'all_on': False, 'any_on': False},
                  'type': 'LightGroup'}},
 'lights': {'1': {'etag': 'eada862ffe86672500bc5ef8d7420136',
                  'hascolor': False,
                  'manufacturername': 'IKEA of Sweden',
                  'modelid': 'TRADFRI bulb GU10 W 400lm',
                  'name': 'TV Lamp 1',
                  'state': {'alert': 'none',
                            'bri': 121,
                            'on': False,
                            'reachable': True},
                  'swversion': '1.2.214',
                  'type': 'Dimmable light',
                  'uniqueid': '00:0b:57:ff:fe:e8:37:78-01'},
            '2': {'etag': 'eada862ffe86672500bc5ef8d7420136',
                  'hascolor': False,
                  'manufacturername': 'IKEA of Sweden',
                  'modelid': 'TRADFRI bulb GU10 W 400lm',
                  'name': 'TV Lamp 2',
                  'state': {'alert': 'none',
                            'bri': 121,
                            'on': False,
                            'reachable': True},
                  'swversion': '1.2.214',
                  'type': 'Dimmable light',
                  'uniqueid': '90:fd:9f:ff:fe:71:5d:05-01'}},
 'resourcelinks': {},
 'rules': {},
 'schedules': {},
 'sensors': {'1': {'config': {'configured': True,
                              'on': True,
                              'sunriseoffset': 30,
                              'sunsetoffset': -30},
                   'etag': '7a7ab35e2e9019a4b294d05160f44520',
                   'manufacturername': 'Philips',
                   'modelid': 'PHDL00',
                   'name': 'Daylight',
                   'state': {'dark': False,
                             'daylight': True,
                             'lastupdated': '2018-10-17T10:30:22',
                             'status': 170},
                   'swversion': '1.0',
                   'type': 'Daylight',
                   'uniqueid': '00:21:2e:ff:ff:02:2f:7c-01'},
             '12': {'config': {'battery': 100,
                               'on': True,
                               'reachable': True,
                               'temperature': 2500,
                               'tholddark': 12000,
                               'tholdoffset': 7000},
                    'ep': 1,
                    'etag': 'f0d8477743337efe586396bd5e4e57fc',
                    'manufacturername': 'LUMI',
                    'modelid': 'lumi.sensor_motion.aq2',
                    'name': 'Motion Sensor',
                    'state': {'dark': False,
                              'daylight': True,
                              'lastupdated': '2018-10-17T12:28:53',
                              'lightlevel': 19139,
                              'lux': 82},
                    'type': 'ZHALightLevel',
                    'uniqueid': '00:15:8d:00:02:2e:c3:97-01-0400'},
             '13': {'config': {'battery': 100,
                               'duration': 60,
                               'on': True,
                               'reachable': True,
                               'temperature': 2500},
                    'ep': 1,
                    'etag': 'f0d8477743337efe586396bd5e4e57fc',
                    'manufacturername': 'LUMI',
                    'modelid': 'lumi.sensor_motion.aq2',
                    'name': 'Motion Sensor',
                    'state': {'lastupdated': '2018-10-17T12:28:53',
                              'presence': False},
                    'type': 'ZHAPresence',
                    'uniqueid': '00:15:8d:00:02:2e:c3:97-01-0406'},
             '2': {'config': {'battery': 100,
                              'on': True,
                              'reachable': True,
                              'temperature': 2700},
                   'ep': 1,
                   'etag': 'a17f5262cce19595d43706aa05ed04e7',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_magnet.aq2',
                   'name': 'Window / Door Sensor',
                   'state': {'lastupdated': '2018-10-17T12:16:29',
                             'open': False},
                   'type': 'ZHAOpenClose',
                   'uniqueid': '00:15:8d:00:02:0b:53:27-01-0006'},
             '5': {'config': {'battery': 100, 'on': True, 'reachable': True},
                   'ep': 1,
                   'etag': '7eeeb6b3e956af14062fc0b42421b634',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.weather',
                   'name': 'Multi Sensor',
                   'state': {'humidity': 4850,
                             'lastupdated': '2018-10-17T12:34:21'},
                   'type': 'ZHAHumidity',
                   'uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0405'},
             '6': {'config': {'battery': 100, 'on': True, 'reachable': True},
                   'ep': 1,
                   'etag': '7eeeb6b3e956af14062fc0b42421b634',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.weather',
                   'name': 'Pressure 6',
                   'state': {'lastupdated': '2018-10-17T12:34:21',
                             'pressure': 1005},
                   'type': 'ZHAPressure',
                   'uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0403'},
             '7': {'config': {'battery': 100,
                              'offset': 0,
                              'on': True,
                              'reachable': True},
                   'ep': 1,
                   'etag': '7eeeb6b3e956af14062fc0b42421b634',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.weather',
                   'name': 'Temperature 7',
                   'state': {'lastupdated': '2018-10-17T12:34:21',
                             'temperature': 2462},
                   'type': 'ZHATemperature',
                   'uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0402'},
             '8': {'config': {'battery': 100,
                              'offset': 0,
                              'on': True,
                              'reachable': True},
                   'ep': 1,
                   'etag': '297224911ff8b84137dfc6033e2aec31',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_ht',
                   'name': 'Multi Sensor (2)',
                   'state': {'lastupdated': '2018-10-17T12:05:04',
                             'temperature': 2320},
                   'type': 'ZHATemperature',
                   'uniqueid': '00:15:8d:00:02:0e:cf:83-01-0402'},
             '9': {'config': {'battery': 100, 'on': True, 'reachable': True},
                   'ep': 1,
                   'etag': '297224911ff8b84137dfc6033e2aec31',
                   'manufacturername': 'LUMI',
                   'modelid': 'lumi.sensor_ht',
                   'name': 'Humidity 9',
                   'state': {'humidity': 5079,
                             'lastupdated': '2018-10-17T12:05:04'},
                   'type': 'ZHAHumidity',
                   'uniqueid': '00:15:8d:00:02:0e:cf:83-01-0405'}}}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.config] Deconz config loaded {'_apiversion': '1.0.9', '_bridgeid': '00212EFFFF022F7C', '_linkbutton': True, '_mac': '02:19:05:81:61:e4', '_modelid': 'deCONZ', '_name': 'Csiza-Zigbee-GW', '_networkopenduration': 60, '_panid': 28851, '_swversion': '2.5.35', '_uuid': 'c4dbb627-175e-4ec0-8e95-0576c5302746', '_websocketport': 8443, '_zigbeechannel': 15}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] TV Lamp created as 
{'_all_on': False,
 '_any_on': False,
 '_async_callbacks': [],
 '_async_set_state_callback': <bound method DeconzSession.async_put_state of <pydeconz.DeconzSession object at 0xaefdbaf0>>,
 '_bri': 127,
 '_class': 'Other',
 '_colormode': 'hs',
 '_ct': 0,
 '_deconz_id': '/groups/2',
 '_devicemembership': [],
 '_effect': 'none',
 '_etag': 'eada862ffe86672500bc5ef8d7420136',
 '_hidden': False,
 '_hue': 0,
 '_id': '2',
 '_lights': ['1', '2'],
 '_lightsequence': [],
 '_manufacturername': None,
 '_modelid': None,
 '_multideviceids': [],
 '_name': 'TV Lamp',
 '_on': False,
 '_reachable': True,
 '_sat': 127,
 '_scenes': {},
 '_swversion': None,
 '_type': 'LightGroup',
 '_uniqueid': None,
 '_x': 0,
 '_y': 0}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] TV Lamp 1 created as 
{'_alert': 'none',
 '_async_callbacks': [],
 '_async_set_state_callback': <bound method DeconzSession.async_put_state of <pydeconz.DeconzSession object at 0xaefdbaf0>>,
 '_bri': 121,
 '_colormode': None,
 '_ct': None,
 '_deconz_id': '/lights/1',
 '_effect': None,
 '_etag': 'eada862ffe86672500bc5ef8d7420136',
 '_hue': None,
 '_manufacturername': 'IKEA of Sweden',
 '_modelid': 'TRADFRI bulb GU10 W 400lm',
 '_name': 'TV Lamp 1',
 '_on': False,
 '_reachable': True,
 '_sat': None,
 '_swversion': '1.2.214',
 '_type': 'Dimmable light',
 '_uniqueid': '00:0b:57:ff:fe:e8:37:78-01',
 '_x': None,
 '_y': None}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] TV Lamp 2 created as 
{'_alert': 'none',
 '_async_callbacks': [],
 '_async_set_state_callback': <bound method DeconzSession.async_put_state of <pydeconz.DeconzSession object at 0xaefdbaf0>>,
 '_bri': 121,
 '_colormode': None,
 '_ct': None,
 '_deconz_id': '/lights/2',
 '_effect': None,
 '_etag': 'eada862ffe86672500bc5ef8d7420136',
 '_hue': None,
 '_manufacturername': 'IKEA of Sweden',
 '_modelid': 'TRADFRI bulb GU10 W 400lm',
 '_name': 'TV Lamp 2',
 '_on': False,
 '_reachable': True,
 '_sat': None,
 '_swversion': '1.2.214',
 '_type': 'Dimmable light',
 '_uniqueid': '90:fd:9f:ff:fe:71:5d:05-01',
 '_x': None,
 '_y': None}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Daylight created as 
{'_async_callbacks': [],
 '_battery': None,
 '_daylight': True,
 '_deconz_id': '/sensors/1',
 '_ep': None,
 '_etag': '7a7ab35e2e9019a4b294d05160f44520',
 '_manufacturername': 'Philips',
 '_modelid': 'PHDL00',
 '_name': 'Daylight',
 '_on': True,
 '_reachable': None,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_status': 170,
 '_swversion': '1.0',
 '_type': 'Daylight',
 '_uniqueid': '00:21:2e:ff:ff:02:2f:7c-01'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Motion Sensor created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_dark': False,
 '_deconz_id': '/sensors/12',
 '_ep': 1,
 '_etag': 'f0d8477743337efe586396bd5e4e57fc',
 '_lightlevel': 19139,
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_motion.aq2',
 '_name': 'Motion Sensor',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHALightLevel',
 '_uniqueid': '00:15:8d:00:02:2e:c3:97-01-0400'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Motion Sensor created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_dark': None,
 '_deconz_id': '/sensors/13',
 '_ep': 1,
 '_etag': 'f0d8477743337efe586396bd5e4e57fc',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_motion.aq2',
 '_name': 'Motion Sensor',
 '_on': True,
 '_presence': False,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHAPresence',
 '_uniqueid': '00:15:8d:00:02:2e:c3:97-01-0406'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Window / Door Sensor created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/2',
 '_ep': 1,
 '_etag': 'a17f5262cce19595d43706aa05ed04e7',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_magnet.aq2',
 '_name': 'Window / Door Sensor',
 '_on': True,
 '_open': False,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHAOpenClose',
 '_uniqueid': '00:15:8d:00:02:0b:53:27-01-0006'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Multi Sensor created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/5',
 '_ep': 1,
 '_etag': '7eeeb6b3e956af14062fc0b42421b634',
 '_humidity': 4850,
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.weather',
 '_name': 'Multi Sensor',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHAHumidity',
 '_uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0405'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Pressure 6 created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/6',
 '_ep': 1,
 '_etag': '7eeeb6b3e956af14062fc0b42421b634',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.weather',
 '_name': 'Pressure 6',
 '_on': True,
 '_pressure': 1005,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHAPressure',
 '_uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0403'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Temperature 7 created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/7',
 '_ep': 1,
 '_etag': '7eeeb6b3e956af14062fc0b42421b634',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.weather',
 '_name': 'Temperature 7',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_temperature': 2462,
 '_type': 'ZHATemperature',
 '_uniqueid': '00:15:8d:00:02:2c:d3:1a-01-0402'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Multi Sensor (2) created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/8',
 '_ep': 1,
 '_etag': '297224911ff8b84137dfc6033e2aec31',
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_ht',
 '_name': 'Multi Sensor (2)',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_temperature': 2320,
 '_type': 'ZHATemperature',
 '_uniqueid': '00:15:8d:00:02:0e:cf:83-01-0402'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.deconzdevice] Humidity 9 created as 
{'_async_callbacks': [],
 '_battery': 100,
 '_deconz_id': '/sensors/9',
 '_ep': 1,
 '_etag': '297224911ff8b84137dfc6033e2aec31',
 '_humidity': 5079,
 '_manufacturername': 'LUMI',
 '_modelid': 'lumi.sensor_ht',
 '_name': 'Humidity 9',
 '_on': True,
 '_reachable': True,
 '_sensor_class': None,
 '_sensor_icon': None,
 '_sensor_unit': None,
 '_swversion': None,
 '_type': 'ZHAHumidity',
 '_uniqueid': '00:15:8d:00:02:0e:cf:83-01-0405'}
2018-10-17 14:47:04 DEBUG (MainThread) [pydeconz.websocket] Websocket starting
2018-10-17 14:47:04 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor.deconz from homeassistant.components.binary_sensor.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.loader] Loaded light.deconz from homeassistant.components.light.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.loader] Loaded sensor.deconz from homeassistant.components.sensor.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.loader] Loaded switch.deconz from homeassistant.components.switch.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.loader] Loaded scene from homeassistant.components.scene
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.setup] Setting up scene
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 0.0 seconds.
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.loader] Loaded scene.deconz from homeassistant.components.scene.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.components.light] Setting up light.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.components.switch] Setting up switch.deconz
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.setup] Setting up cover
2018-10-17 14:47:05 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.1 seconds.
2018-10-17 14:47:06 INFO (MainThread) [homeassistant.loader] Loaded cover.deconz from homeassistant.components.cover.deconz
2018-10-17 14:47:06 INFO (MainThread) [homeassistant.components.scene] Setting up scene.deconz
2018-10-17 14:47:08 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-17 14:47:08 DEBUG (MainThread) [pydeconz.websocket] Websocket running
2018-10-17 14:47:08 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/entry to 192.168.1.1 (auth: True)
2018-10-17 14:47:08 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow to 192.168.1.1 (auth: True)
2018-10-17 14:47:08 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow_handlers to 192.168.1.1 (auth: True)
2018-10-17 14:47:10 INFO (MainThread) [homeassistant.components.cover] Setting up cover.deconz
2018-10-17 14:47:10 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-17 14:47:11 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow/31566111d8234fdd9f0a6b7ea10ae3f4 to 192.168.1.1 (auth: True)
Kane610 commented 5 years ago

All info is there. I can't say why the connection times out, or why it works on reinitialising. It is really weird.

csiza commented 5 years ago

it is. And also strangely it still works fine after I roll back to 0.79.0b1.

csiza commented 5 years ago

one question... in the Phoscon App under Wifi Settings I don't have Access Point nor Client mode being configured. Is this ok?

csiza commented 5 years ago

Do you guys have any further idea what else I can do?

Kane610 commented 5 years ago

I'm gonna look into adding a retry mechanism to the start of the component. I have no idea if it would solve this issue or not though.

csiza commented 5 years ago

sounds great. let me know when I can test it.