-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add a light intensity sensor? I followed your writing style, but it doesn't take effect. #4
Comments
Please use code blocks https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks I guess the measured value attribute has the ID 0, not 1. Check ZCL, but 1 should be min measured value. |
ok, Sorry. I used code blocks.
|
Yes Simple sensor is the wrong type, but not sure if this could be an issue. What coordinator, software are you using? I would just add the illuminance cluster to the temp sensor, because there is no device type for that kind of sensor. Or you could try HA_TEST_DEVICE. BTW, what do you mean by it is not working? Any logs? |
The value of attributes ID seems to be able to take any value. Where can I find its specific description? |
I add the illuminance cluster to the temp sensor,is work ok. But I found an issue where the delay in sensor data reporting is very high, and it can take from one minute to a few minutes to wait. It can be reported normally in your esphome_zb_sensor project. |
I will have to see if there is a bug with simple sensor or HA test device. Just no time at the moment... Which version of z2m are you using?
Check the official zigbee cluster lib: https://www.zigbeealliance.org/wp-content/uploads/2021/10/07-5123-07-ZigbeeClusterLibrary_Revision_7-1.pdf For reporting see: #5 |
Ok, thank you.My z2m version is 1.38 . I will try testing it with one endpoint today. |
I would like to see an example of adding a binary sensor |
Can you show the sensor section? |
I suggest the following code. Any edits and hints are welcome.
|
The text was updated successfully, but these errors were encountered: