Smanar / Domoticz-deCONZ

deCONZ plugin for Domoticz (Zigbee application)
GNU General Public License v3.0
36 stars 26 forks source link

Devices not showing up #39

Closed michi1g closed 4 years ago

michi1g commented 4 years ago

I just started using this plugin and everythink worked fine until I wanted to integrate some cheap Zigbee OnOff Controller Devices. I can pair them with deconz and use them there, but they are not showing up in my Devices Tab on Domoticz. {"etag":"24c2eef83549e3e038c5f0332fe6ca8e","hascolor":false,"manufacturername":"eWeLink","modelid":"SA-003-Zigbee","name":"WZ rechts","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Unknown","uniqueid":"00:12:4b:00:1d:43:6d:c4-01"}}

2019-12-11 14:34:09.601 (ZBD) ### Update device (ZigBee Deconz - Unknown 2) : {'nValue': 0, 'sValue': 'off'}, IGNORED , no changes !
2019-12-11 14:34:09.601 (ZBD) ### Device > 3 Name:WZ rechts Type:Unknown Details:{'alert': 'none', 'on': False, 'reachable': True} and

That's the information I got. I'm installed today -> newest version. I found this issue here too: https://www.domoticz.com/forum/viewtopic.php?f=6&t=29271 I checked if those lines exist in my version: Yes they do but I don't get those devices to show up. Any help would be appreciated!

Smanar commented 4 years ago

Hello, do you have lines just after theses 2 ? You have nothing like "Adding missing device" or "Unknow device type" or "Unknow device : assume a light" ?

You will have this kind of message at every plugin restart (if the device is not already include in domoticz) > setting / hardware /decoz / update.

You can try too turn it on/off in phosocn and look for websocket return in domoticz. You will see a message if the device is not in domoticz, or an error message after the plugin retry.

And yes you are right it's exactly the issue with this kind of device, but solved ATM.

michi1g commented 4 years ago

2019-12-11 17:21:04.851 (ZBD) ### Update device (ZigBee Deconz - Unknown 2) : {'nValue': 0, 'sValue': 'off'}
2019-12-11 17:21:04.851 (ZigBee Deconz - Unknown 2) Updating device from 1:'on' to have values 0:'off'.
2019-12-11 17:21:04.853 (ZBD) onMessage called
2019-12-11 17:21:04.854 (ZBD) ### WebSocket Data : {'e': 'changed', 'id': '1', 'r': 'groups', 'state': {'all_on': False, 'any_on': False}, 't': 'event'}
2019-12-11 17:21:04.854 (ZBD) ### Update device (ZigBee Deconz - Wohnzimmer) : {'nValue': 0, 'sValue': 'off'}
2019-12-11 17:21:04.854 (ZigBee Deconz - Wohnzimmer) Updating device from 1:'on' to have values 0:'off'.```

That's what I get when I turn them on manually in phoscon.

`2019-12-11 17:26:20.510 (ZBD) Send Command /api/4FF2A293C2/lights/ with None (0 in buffer)
2019-12-11 17:26:20.510 (ZBD) Making Request : http://127.0.0.1:80/api/4FF2A293C2/lights/ with params None
2019-12-11 17:26:20.534 (ZBD) Request Return : {"1":{"etag":"9f309b8196ccc8d246193615c0c3d9d0","hascolor":false,"manufacturername":"LUMI","modelid":"lumi.plug","name":"Steckdose Terrasse","state":{"alert":"none","on":true,"reachable":true},"swversion":"09-29-2017","type":"Smart plug","uniqueid":"00:15:8d:00:01:bc:0b:3e-01"},"2":{"etag":"74763ddb622d70840787f8ce864beb9d","hascolor":false,"manufacturername":"eWeLink","modelid":"SA-003-Zigbee","name":"WZ links","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Unknown","uniqueid":"00:12:4b:00:1d:43:74:ef-01"},"3":{"etag":"379c047668688fc8c6c73540efca0437","hascolor":false,"manufacturername":"eWeLink","modelid":"SA-003-Zigbee","name":"WZ rechts","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Unknown","uniqueid":"00:12:4b:00:1d:43:6d:c4-01"}}
2019-12-11 17:26:20.534 (ZBD) Classic Data : {'1': {'etag': '9f309b8196ccc8d246193615c0c3d9d0', 'hascolor': False, 'manufacturername': 'LUMI', 'modelid': 'lumi.plug', 'name': 'Steckdose Terrasse', 'state': {'alert': 'none', 'on': True, 'reachable': True}, 'swversion': '09-29-2017', 'type': 'Smart plug', 'uniqueid': '00:15:8d:00:01:bc:0b:3e-01'}, '2': {'etag': '74763ddb622d70840787f8ce864beb9d', 'hascolor': False, 'manufacturername': 'eWeLink', 'modelid': 'SA-003-Zigbee', 'name': 'WZ links', 'state': {'alert': 'none', 'on': False, 'reachable': True}, 'swversion': None, 'type': 'Unknown', 'uniqueid': '00:12:4b:00:1d:43:74:ef-01'}, '3': {'etag': '379c047668688fc8c6c73540efca0437', 'hascolor': False, 'manufacturername': 'eWeLink', 'modelid': 'SA-003-Zigbee', 'name': 'WZ rechts', 'state': {'alert': 'none', 'on': False, 'reachable': True}, 'swversion': None, 'type': 'Unknown', 'uniqueid': '00:12:4b:00:1d:43:6d:c4-01'}}
2019-12-11 17:26:20.534 (ZBD) ### Device > 1 Name:Steckdose Terrasse Type:Smart plug Details:{'alert': 'none', 'on': True, 'reachable': True} and
2019-12-11 17:26:20.543 (ZBD) ### Update device (Steckdose Terrasse) : {'nValue': 1, 'sValue': 'on'}, IGNORED , no changes !
2019-12-11 17:26:20.544 (ZBD) ### Device > 2 Name:WZ links Type:Unknown Details:{'alert': 'none', 'on': False, 'reachable': True} and
2019-12-11 17:26:20.544 (ZBD) ### Update device (ZigBee Deconz - Unknown 2) : {'nValue': 0, 'sValue': 'off'}, IGNORED , no changes !
2019-12-11 17:26:20.544 (ZBD) ### Device > 3 Name:WZ rechts Type:Unknown Details:{'alert': 'none', 'on': False, 'reachable': True} and
2019-12-11 17:26:20.545 (ZBD) ### Update device (ZigBee Deconz - WZ rechts) : {'nValue': 0, 'sValue': 'off'}, IGNORED , no changes !`

And that's the output when updating the Hardware Module
Smanar commented 4 years ago

2019-12-11 17:26:20.544 (ZBD) ### Device > 3 Name:WZ rechts Type:Unknown Details:{'alert': 'none', 'on': False, 'reachable': True} and 2019-12-11 17:26:20.545 (ZBD) ### Update device (ZigBee Deconz - WZ rechts) : {'nValue': 0, 'sValue': 'off'}, IGNORED , no changes !`

From the logs the device is already in domoticz, the plugin can update it. On domoticz list your device with ID and look for the mac adress 00:12:4b:00:1d:43:6d:c4-01

Perhaps a bug in the name ?

michi1g commented 4 years ago

Ahh, I figured it out. They don't show up in "All devices" but the show up in "Unused devices". Weird behaviour. Maybe it's a bug?

Smanar commented 4 years ago

Lol, first time I m seing this bug. For me it's a bug yep, I don't see why a device can be in "unused" and not in "all device". There is no problems that can be caused by name or ID (2 devices with same) ?

If you use it, I think the domoticz database will be corrected.

But this bug is not my fault ^^.

michi1g commented 4 years ago

As soon as I use it, it get's in the all devices tab. I'll close this issue and open one on domoticz later ;-) Thx for your help!