How often you should read an attribute from Zigbee device?

And if you're writing the driver yourself, just do a simple mask operation with the value of the 0x0000 attribute.

Something like:

def attrValue = /* Get the attribute value from the decoded message */
bool isActive = (attrValue & 0x01) != 0
1 Like

Hue OWON likely customized 0x0406/0x0000 for their own needs with their hub or some other customer. Its against the spec though, since all other flags other than bit 0 are reserved.

That being said, the built in driver should be updated to do the masking.

I'm fine with coding. However, I cannot find enough materials to start a driver from scratch. Is there something you can recommend online that I can use to do so?

Here is what the developer said.

You need to parse 0x81 to 1000 0001(B), then refer to this table

bit0 = 1 occupied

bit 7 =1 static

So there was a person detected, but keep static

Not sure what 'static' would mean. Maybe its that there's occupancy but no recent motion? Regardless as far as I can tell, its not to Zigbee 3.0 spec.

@user1922 can you make a quick test with the driver from this link?
This driver is for Tuya devices (including 5-6 different types of Tuya mmWave radars), but I added the OWON radar fingerprint and cluster 0x406 processing as well.

Please let me know if the occupancy (motion) works. It should also show temperature and illuminance (lux).

2 Likes

Most probably yes. The mmWave radars are capable of distinguishing between active motion and standing still.

I'll try this tomorrow. I was reading up on zdo binding and global reporting. I did see your driver earlier and did add OWON fingerprint to that one to test it. However, i might have messed up something.

Anyways everyone is sleeping here and i dont want them to wake up and think there is a burgler at home. I'll report back how it goes tomorrow.

1 Like

Cluster 0x0406 was not processed in the previous versions. I have added a few lines of code ( 315..318 ) today.

Usually, there is no need to explicitly bind the device Zigbee clusters using 'zdo bind' commands, this is already done by the HE hub during the initial discovering/pairing procedure.

2 Likes

Thank you so much. It is working now. You are th man!! Now I'm going to reas your code and find out what is going on in there.

Thanks again.

1 Like

If you leave the OWON radar working with the above driver for a day, what does the 'rxCounter' show?

rxCounter counts the number of the Zigbee messages received by the device since the time when the device was paired to HE or Initialize button was pressed.
The screenshot below is from the awfully designed Tuya black square mmWave radar, which I am going to switch off and put on sale very soon. It has sent nearly 100,000 Zigbee packets to HE for about a week now (my C7 survived! )
image

2 Likes

Actually, you can obtain this information also from the Logs->Device Stats-> Sort by 'Count' :

352 so far. I think that a day or two's count.

Wow, i was looking at the Heiman sensor as well which can use AC and is a ceiling mount. Are you telling me not to think about it :rofl::rofl:

Thanks, the OWON device looks quiet!

Which Heiman sensor do you mean?

I cannot find a link i can share. I'm building a house and was talking the Heiman sales person. She said the model number is HS1OS-EFA.

I'm planning to get a bulk order of OWON.