Page 1 of 1

Aqara zigbee PIR not showing in Domoticz

Posted: Thursday 21 October 2021 8:59
by Dave21w
Using Conbee II with Phoscon / Deconz, Domoticz plugin installed (latests version)
In Phoscon I can see the device and it detects movement, it also shows the temp, light level and battery info. In Domoticz the only device I can see is the light level sensor, what am I missing ?

TIA
Dave

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Thursday 21 October 2021 17:03
by Thorgal789
Hello.
If you can see it in phoscon, you need to see it in domoticz, the 2 applications use the same API.

On domoticz, this device create 2 widgets (and they are not on same tab), you can take a look in the "device" tab to be sure they are enabled.
If you realy don't see it, on the "hardware" tab select as debug level "debug info only" and restart the plugin (hardware/deconz/update) you will have some information during the loading.

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Tuesday 26 October 2021 8:55
by Dave21w
Hi Thorgal789,
Many thanks for your quick response and appologies for the delay in replying (family support has to take priority over Domoticz tinkering) anyway I have found the device in question - I obviously didn't look hard enough, it was right in front of me but I just didn't see it :oops:

Cheers
Dave

I guess there is a bug somewhere....

Posted: Wednesday 06 July 2022 16:26
by paul402
HW:Rasp 3+
SW: Buster
I've been using the "simple-blue" theme and when I installed Deconz the descriptors to many of its fields were missing... I believe a bug.
Caused me a lot of confusion as I had never seen the screens before. I didn't know what was missing. So much confusion that the air turned blue to match the theme.
After 2 days, yes days, changing the theme to "default" allowed me to install it properly. Call me stupid but...

Anyhow I can now see my 2 water alarm sensors in the Custom/Deconz menu. My question is, how do I show their status somewhere. Where do I find the instructions?

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Thursday 07 July 2022 17:37
by Thorgal789
Yeah some theme are not working with custom page, have the issue too.

But the custom/deconz menu is more for deconz configuration, like sensor specific setting.
You don't need it for domoticz usage, if you want to see a sensor

- Go on "devices" tab (on domoticz setting, not custom)
- You will see your devices list
- find the sensor you want
- clic on the green arrow "add device"
- you will see it on corresponding tab in domoticz (temperature/meteo/switch/ ect ...)

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Sunday 17 July 2022 14:00
by paul402
The devices are not appearing although I have been to "settings, allow new new hardware devices" several times.
I also clicked on "allow joins" in case it would have some useful effect. I have no idea what it is supposed to do.

The error log shows
deconzagain.jpg
deconzagain.jpg (148.25 KiB) Viewed 1271 times
Any idea what I am doing wrong? What incorrect settings might be allowing me to get this far but no further?

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Sunday 17 July 2022 14:56
by Thorgal789
Thoses device are probably in the plugin database because you don't have the error message
Websocket error, unknown device >
But the plugin can't find them in domoticz

Can you enable loging in the hardware page "debug info only", you will have more usefull lines around the red one (but not error status)

Can you check direclty in the API what is the sensor 4 exemple ? and show me the device json ?
Can use the frontend in custom / deconz, or Phoscon/help/API INformation/sensors/ 4

When you restart the plugin, domoticz resynchronise all the zigbee devices, perhaps you have usefull logs at this moment too. For me the issue start here, the plugin list all zigbee device, add them to the plugin database but not in domoticz, but why ....

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Sunday 17 July 2022 19:38
by paul402
Well I only have the two water alarm sensors but the default daylight sensor is still listed. I will delete that.
Anyhow this is the Tools window.
conbee-plugin-info.jpg
conbee-plugin-info.jpg (87.07 KiB) Viewed 1256 times
This is what is in the config plugin
{
"UTC": "2022-07-17T17:26:34",
"apiversion": "1.16.0",
"backup": {
"errorcode": 0,
"status": "idle"
},
"bridgeid": "00212EFFFF085C06",
"datastoreversion": "93",
"devicename": "ConBee II",
"dhcp": true,
"disablePermitJoinAutoOff": false,
"factorynew": false,
"fwversion": "0x26780700",
"gateway": "192.168.2.1",
"internetservices": {
"internet": "connected",
"remoteaccess": "disconnected",
"swupdate": "connected",
"time": "connected"
},
"ipaddress": "192.168.2.98",
"lightlastseeninterval": 60,
"linkbutton": false,
"localtime": "2022-07-17T19:26:34",
"mac": "e0:46:9a:0d:65:0f",
"modelid": "deCONZ",
"name": "Phoscon-GW",
"netmask": "255.255.255.0",
"networkopenduration": 180,
"panid": 13394,
"portalconnection": "disconnected",
"portalservices": false,
"portalstate": {
"communication": "disconnected",
"incoming": false,
"outgoing": false,
"signedon": false
},
"proxyaddress": "none",
"proxyport": 0,
"replacesbridgeid": null,
"rfconnected": true,
"starterkitid": "",
"swupdate": {
"checkforupdate": false,
"devicetypes": {
"bridge": false,
"lights": [],
"sensors": []
},
"notify": false,
"text": "",
"updatestate": 0,
"url": ""
},
"swupdate2": {
"autoinstall": {
"on": false,
"updatetime": ""
},
"bridge": {
"lastinstall": "2022-07-01T13:20:49",
"state": "noupdates"
},
"checkforupdate": false,
"lastchange": "",
"state": "noupdates"
},
"swversion": "2.17.1",
"timeformat": "12h",
"timezone": "Europe/Berlin",
"uuid": "e0b5c2b9-a72a-442c-9946-107a7bc3e658",
"websocketnotifyall": true,
"websocketport": 20877,
"whitelist": {
"07A3909DDC": {
"create date": "2022-07-06T13:20:34",
"last use date": "2022-07-06T18:47:58",
"name": "domoticz_deconz"
},
"467DF12351": {
"create date": "2022-07-17T09:09:20",
"last use date": "2022-07-17T17:26:31",
"name": "Phoscon#B1250x907"
},
"A293C230E2": {
"create date": "2022-07-06T18:45:50",
"last use date": "2022-07-06T18:45:50",
"name": "domoticz_deconz"
},
"E40FFC2135": {
"create date": "2022-07-06T18:46:29",
"last use date": "2022-07-06T18:46:29",
"name": "domoticz_deconz"
},
"F2A293C230": {
"create date": "2022-07-17T09:56:04",
"last use date": "2022-07-17T17:26:34",
"name": "domoticz_deconz"
},
"FEAB631372": {
"create date": "2022-07-06T18:48:05",
"last use date": "2022-07-06T18:48:05",
"name": "domoticz_deconz"
}
},
"zigbeechannel": 15
}

And this is the logging.

2022-07-17 19:12:09.123 deconz-bridge: Request Return: {"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"9f6ece548a2c48a99dac161a1b53ac0b","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"dark":false,"daylight":true,"lastupdated":"2022-07-17T11:26:34.934","status":170,"sunrise":"2022-07-17T03:38:23","sunset":"2022-07-17T19:14:33"},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:08:5c:06-01"},"4":{"config":{"battery":100,"enrolled":5,"on":true,"pending":[],"reachable":true,"temperature":2800},"ep":1,"etag":"8190b970c5105bd28af7dece3f33bb8f","lastannounced":null,"lastseen":"2022-07-17T16:33Z","manufacturername":"LUMI","modelid":"lumi.sensor_wleak.aq1","name":"Water Sensor Kitchen","state":{"lastupdated":"2022-07-17T16:33:04.698","lowbattery":false,"tampered":false,"water":false},"swversion":"20200310","type":"ZHAWater","uniqueid":"00:15:8d:00:08:08:f4:29-01-0500"},"5":{"config":{"battery":100,"enrolled":6,"on":true,"pending":[],"reachable":true,"temperature":3100},"ep":1,"etag":"42f524f4ddbe272e584cc85c27e6c23e","lastannounced":"2022-07-17T09:54:21Z","lastseen":"2022-07-17T16:36Z","manufacturername":"LUMI","modelid":"lumi.sensor_wleak.aq1","name":"Water Sensor Cellar","state":{"lastupdated":"2022-07-17T16:36:18.926","lowbattery":false,"tampered":false,"water":false},"swversion":"20200310","type":"ZHAWater","uniqueid":"00:15:8d:00:08:08:ec:33-01-0500"}}
2022-07-17 19:12:09.124 deconz-bridge: Classic Data : {'1': {'config': {'configured': True, 'on': True, 'sunriseoffset': 30, 'sunsetoffset': -30}, 'etag': '9f6ece548a2c48a99dac161a1b53ac0b', 'manufacturername': 'Philips', 'modelid': 'PHDL00', 'name': 'Daylight', 'state': {'dark': False, 'daylight': True, 'lastupdated': '2022-07-17T11:26:34.934', 'status': 170, 'sunrise': '2022-07-17T03:38:23', 'sunset': '2022-07-17T19:14:33'}, 'swversion': '1.0', 'type': 'Daylight', 'uniqueid': '00:21:2e:ff:ff:08:5c:06-01'}, '4': {'config': {'battery': 100, 'enrolled': 5, 'on': True, 'pending': [], 'reachable': True, 'temperature': 2800}, 'ep': 1, 'etag': '8190b970c5105bd28af7dece3f33bb8f', 'lastannounced': None, 'lastseen': '2022-07-17T16:33Z', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_wleak.aq1', 'name': 'Water Sensor Kitchen', 'state': {'lastupdated': '2022-07-17T16:33:04.698', 'lowbattery': False, 'tampered': False, 'water': False}, 'swversion': '20200310', 'type': 'ZHAWater', 'uniqueid': '00:15:8d:00:08:08:f4:29-01-0500'}, '5': {'config': {'battery': 100, 'enrolled': 6, 'on': True, 'pending': [], 'reachable': True, 'temperature': 3100}, 'ep': 1, 'etag': '42f524f4ddbe272e584cc85c27e6c23e', 'lastannounced': '2022-07-17T09:54:21Z', 'lastseen': '2022-07-17T16:36Z', 'manufacturername': 'LUMI', 'modelid': 'lumi.sensor_wleak.aq1', 'name': 'Water Sensor Cellar', 'state': {'lastupdated': '2022-07-17T16:36:18.926', 'lowbattery': False, 'tampered': False, 'water': False}, 'swversion': '20200310', 'type': 'ZHAWater', 'uniqueid': '00:15:8d:00:08:08:ec:33-01-0500'}}
2022-07-17 19:12:09.124 deconz-bridge: ### Device > 1 Name:Daylight Type:Daylight Details:{'dark': False, 'daylight': True, 'lastupdated': '2022-07-17T11:26:34.934', 'status': 170, 'sunrise': '2022-07-17T03:38:23', 'sunset': '2022-07-17T19:14:33'} and {'configured': True, 'on': True, 'sunriseoffset': 30, 'sunsetoffset': -30}
2022-07-17 19:12:09.127 deconz-bridge: ### Device > 4 Name:Water Sensor Kitchen Type:ZHAWater Details:{'lastupdated': '2022-07-17T16:33:04.698', 'lowbattery': False, 'tampered': False, 'water': False} and {'battery': 100, 'enrolled': 5, 'on': True, 'pending': [], 'reachable': True, 'temperature': 2800}
2022-07-17 19:12:09.127 deconz-bridge: ### Device > 5 Name:Water Sensor Cellar Type:ZHAWater Details:{'lastupdated': '2022-07-17T16:36:18.926', 'lowbattery': False, 'tampered': False, 'water': False} and {'battery': 100, 'enrolled': 6, 'on': True, 'pending': [], 'reachable': True, 'temperature': 3100}
2022-07-17 19:12:09.127 deconz-bridge: ### Request groups
2022-07-17 19:12:09.127 deconz-bridge: Send Command /api/F2A293C230/groups/ with None (0 in buffer)
2022-07-17 19:12:09.127 deconz-bridge: Making Request: http://127.0.0.1:8090/api/F2A293C230/groups/ with params None
2022-07-17 19:12:09.137 deconz-bridge: Request Return: {}
2022-07-17 19:12:09.137 deconz-bridge: Classic Data : {}
2022-07-17 19:12:09.188 deconz-bridge: onConnect called
2022-07-17 19:12:09.239 deconz-bridge: onMessage called
2022-07-17 19:12:09.239 deconz-bridge: WebSocket Handshake : HTTP/1.1 101 Switching Protocols ***Upgrade: websocket ***Connection: Upgrade ***Sec-WebSocket-Accept: V0htEbn5FhIA1xfQRyG3yU1aG9c= ***Server: deconz ***Access-Control-Allow-Credentials: false ***Access-Control-Allow-Methods: GET ***Access-Control-Allow-Headers: content-type ***Access-Control-Allow-Origin: http://127.0.0.1 ***Date: Sun, 17 Jul 2022 17:12:09 GMT *** ***
2022-07-17 19:12:09.093 Status: deconz-bridge: Firmware version: 0x26780700
2022-07-17 19:12:09.093 Status: deconz-bridge: Websocketnotifyall: True
2022-07-17 19:12:09.126 Status: deconz-bridge: ### Create Device 00:21:2e:ff:ff:08:5c:06-01 > Daylight (Daylight) as Unit 1
2022-07-17 19:12:09.127 Status: deconz-bridge: ### Create Device 00:15:8d:00:08:08:f4:29-01-0500 > Water Sensor Kitchen (ZHAWater) as Unit 1
2022-07-17 19:12:09.127 Status: deconz-bridge: ### Create Device 00:15:8d:00:08:08:ec:33-01-0500 > Water Sensor Cellar (ZHAWater) as Unit 1
2022-07-17 19:12:09.138 Status: deconz-bridge: ### deCONZ ready
2022-07-17 19:12:09.138 Status: deconz-bridge: ### Found 0 Operators, 3 Sensors, 0 Groups, 0 Scenes and 0 others, with 0 Ignored
2022-07-17 19:12:09.188 Status: deconz-bridge: Launching WebSocket on port 20877
2022-07-17 19:12:09.124 Error: (deconz-bridge) Device creation failed, Domoticz settings prevent accepting new devices.
2022-07-17 19:12:09.126 Error: deconz-bridge: Can't Update Unit > 1 (sensors) : {'nValue': 1, 'sValue': 'On'}
2022-07-17 19:12:09.127 Error: (deconz-bridge) Device creation failed, Domoticz settings prevent accepting new devices.
2022-07-17 19:12:09.127 Error: deconz-bridge: Can't Update Unit > 4 (sensors) : {'nValue': 0, 'sValue': 'Off', 'BatteryLevel': 100}
2022-07-17 19:12:09.127 Error: (deconz-bridge) Device creation failed, Domoticz settings prevent accepting new devices.
2022-07-17 19:12:09.127 Error: deconz-bridge: Can't Update Unit > 5 (sensors) : {'nValue': 0, 'sValue': 'Off', 'BatteryLevel': 100}
2022-07-17 19:12:19.060 deconz-bridge: onHeartbeat called

Should I reset everything and start again? Could it be that I am using the incorrect internal port?

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Sunday 17 July 2022 19:44
by Thorgal789
There is not a big danger, but better to remove the first part, there is your public IP.
The device json is in the front end, on the "sensor" tab, informations are less sensibles (I don't need them ATM, they are on the starting logs)

I m looking logs, but yes there is a problem on domoticz side
2022-07-17 19:12:09.126 Status: deconz-bridge: ### Create Device 00:21:2e:ff:ff:08:5c:06-01 > Daylight (Daylight) as Unit 1
2022-07-17 19:12:09.127 Status: deconz-bridge: ### Create Device 00:15:8d:00:08:08:f4:29-01-0500 > Water Sensor Kitchen (ZHAWater) as Unit 1
2022-07-17 19:12:09.127 Status: deconz-bridge: ### Create Device 00:15:8d:00:08:08:ec:33-01-0500 > Water Sensor Cellar (ZHAWater) as Unit 1
All device are created on the same one the unit 1.

Code: Select all

2022-07-17 19:12:09.124 Error: (deconz-bridge) Device creation failed, Domoticz settings prevent accepting new devices.
Are you sure the setting is still checked in domoticz ?

On domoticz / setting / hardware / accept new hadrwares devices ?
Setup-settings2.png
Setup-settings2.png (45.48 KiB) Viewed 1246 times

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Sunday 17 July 2022 19:51
by paul402
Thanks what does it mean that they are all Unit 1? I tried deleting the Daylight sensor but it came back on reboot so I guess that I must put it in the Blacklist file.

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Sunday 17 July 2022 19:55
by Thorgal789
No the problem is from domoticz.
The plugin try to use the first free unit, so the 1, and as domoticz block them, it use again the 1 at next sensor (because it was still free).

For me your domoticz settings block new sensor creation.

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Monday 18 July 2022 8:02
by gizmocuz
Have you tried with Zigbee2MQTT ? This is the new way and works without issue

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Monday 18 July 2022 16:57
by Thorgal789
This issue will be same using Zigbee2MQTT , it s domoticz that block new device creation, nothing to see with plugin.
For the "This is the new way", it s a joke, news are from the "zigbee for domoticz plugin" that have a wonderfull front end and "works without issue" is something relative.

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Wednesday 20 July 2022 20:47
by paul402
So when I was advised to allow new devices I assumed that that meant for 5 minutes, not permanently.
If I allow it permanently then I get the following error messages.


2022-07-20 20:32:07.744 Error: deconz-bridge: CConnection_disconnect, disconnection request from 'deconz-bridge' ignored. Transport does not exist.
2022-07-20 20:32:07.798 Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.
2022-07-20 20:32:17.074 Error: deconz-bridge: Startup failed. retrying....
2022-07-20 20:32:27.106 Error: deconz-bridge: Startup failed. retrying....
2022-07-20 20:32:37.101 Error: deconz-bridge: Startup failed. retrying....

I feel like I'm a bit closer to a solution but...

Re: Aqara zigbee PIR not showing in Domoticz

Posted: Thursday 21 July 2022 17:42
by Thorgal789
Changing this setting haven't impact on connection, it's another problem.
You have this error when your connexion are good, the deconz gateway is accessible but not ready. Can be the conbee unplugged, take a look in Phoscon / Gateway if you can see a firmware number.
Can just try to restart the plugin (all is reseted, nothing is memorised) Hardware panel / deconz / update