WebThingsIO / zigbee-adapter

Zigbee adapter add-on for WebThings Gateway
Mozilla Public License 2.0
46 stars 29 forks source link

Aqara Temp and Humidity Sensors not Showing Battery Level/Voltage #312

Open ben-digitalhive opened 3 years ago

ben-digitalhive commented 3 years ago

Hello - Looking at https://www.zigbee2mqtt.io/devices/WSDCGQ11LM.html these devices should be publishing these metrics but I cannot see them coming through - Any idea on why not?

Is there anyway to look at the RAW JSON and create custom devices?

tim-hellhake commented 3 years ago

I cannot see them coming through - Any idea on why not?

The voltage property is hidden because it's not really useful but the battery property should be available.

Is there anyway to look at the RAW JSON

If you enter zigbee2mqtt in the debug property of the adapter you can see the received JSON in the log.

image

Is there anyway to [...] create custom devices?

There is no way to do that manually with this adapter.

ben-digitalhive commented 3 years ago

Hi Tim,

Yes the things show up and measure pressure, temp and humidity fine. Just missing the battery measurements that should be there by all accounts.

One thing to note:  I have not flashed with your provided firmware, i using standard z2m firmware.  BUT when I had done this previously it also wasnt showing so I dont see any difference  What impact would your provided firmware have?

Here is what I see in the logs when I use your debug template as per below (only errors I see are from a Xiaomi Aqara socket which based on the value of 0.18 I am assuming this is Watts or similar - nothing more from the sensors)

2021-05-30 08:11:20.025 INFO : zigbee-adapter: zb-00158d0004876bbf-temperature property: temperature profileId: 0104 endpoint: 1 clusterId: 0402 report value: 19.8 (1977) 2021-05-30 08:11:20.037 INFO : zigbee-adapter: zb-00158d0004876bbf-temperature property: humidity profileId: 0104 endpoint: 1 clusterId: 0405 report value: 59.44 2021-05-30 08:11:20.039 INFO : zigbee-adapter: zb-00158d0004876bbf-temperature property: pressure profileId: 0104 endpoint: 1 clusterId: 0403 report value: 989 2021-05-30 08:11:34.065 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:16:25.153 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.18000000715255737}] 2021-05-30 08:16:41.071 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:21:30.892 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.18000000715255737}] 2021-05-30 08:21:46.066 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:26:40.468 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.18000000715255737}] 2021-05-30 08:26:56.071 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:26:58.051 INFO : zigbee-adapter: zb-00158d0004876b54-temperature property: temperature profileId: 0104 endpoint: 1 clusterId: 0402 report value: 20.2 (2017) 2021-05-30 08:26:58.061 INFO : zigbee-adapter: zb-00158d0004876b54-temperature property: humidity profileId: 0104 endpoint: 1 clusterId: 0405 report value: 75.54 2021-05-30 08:26:58.063 INFO : zigbee-adapter: zb-00158d0004876b54-temperature property: pressure profileId: 0104 endpoint: 1 clusterId: 0403 report value: 989 2021-05-30 08:31:45.081 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.18000000715255737}] 2021-05-30 08:32:01.077 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:36:49.506 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.18000000715255737}] 2021-05-30 08:37:05.082 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:41:55.621 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.17000000178813934}] 2021-05-30 08:42:11.094 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}] 2021-05-30 08:47:00.726 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0.1899999976158142}] 2021-05-30 08:47:16.088 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d0003539a52-switch remote64: 00158d0003539a52 profileId: 0104 clusterId: 000c sourceEndpoint: 02 cmdId: report payload: [{"attrId":85,"dataType":57,"attrData":0}]

---- On Sun, 30 May 2021 10:10:40 +1200 @.*** wrote ----

I cannot see them coming through - Any idea on why not?

Do you see a new thing for this device in the gateway? Do you already have other ZigBee things that show up in the gateway? Is there anyway to look at the RAW JSON

If you enter zigbee2mqtt in the debug property of the adapter you can see the received JSON in the log. https://user-images.githubusercontent.com/17127122/120085732-da220c00-c0da-11eb-89fe-cc429aa00a0d.png Is there anyway to [...] create custom devices?

There is no way to do that manually with this adapter.

— You are receiving this because you authored the thread. Reply to this email directly, https://github.com/WebThingsIO/zigbee-adapter/issues/312#issuecomment-850906186, or https://github.com/notifications/unsubscribe-auth/AL6EPZ3TIV4U6GR4EWZR4Y3TQFQ6BANCNFSM45YU2KHQ.

tim-hellhake commented 3 years ago

Oh, it looks like you are using the native adapter. I can't help you with that. It's no longer maintained. If possible I would recommend switching to zigbee2mqtt. This adapter also supports it. You just need to enter the data of your mqtt broker.