-
Notifications
You must be signed in to change notification settings - Fork 43
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
Sensor and actuator clusters definition (TZ-1024) #389
Comments
The attribute definition appears correct from the overview. However, I recommend using the code below to create the basic cluster, which includes all the mandatory attributes of the basic cluster.
The esp-zigbee-sdk does not currently support the
You can refer to the temperature sensor example in the esp-zigbee-sdk to implement the reporting feature.
I think it has already been done correctly in your code. By the way, which ESP Zigbee libraries are you using in your project? I believe they might be outdated, and I advise updating to the latest version. |
Thanks @xieqinan. I'm using sdk v.1.0.9 For the configuration parameter I mean: let's take the minWaterpercent and maxWaterPercent (the name should be changed since are not a percentage). Both should be configured from zigbee2mqtt to set the sensor value corresponding to the empty and full state. So I need to read the actual configuration but also to write and persist in NVRAM a new configuration. |
While I was writing the converter for Zigbee2MQTT a new question arise. Setting an attribute as ACCESS_READ_WRITE in a SERVER_ROLE cluster, require a command action or a write action from the coordinator send the value correctly ? |
The latest v1.4.1 version still does not support recording the attribute to NVRAM. This operation needs to be completed at the application layer for now.
The custom cluster ID and attribute ID are defined by you, so why are you unsure how to set them?
I think you need to provide a more detailed description of this issue, as I can only understand part of your message. Do you mean that you expect to write an attribute with |
@xieqinan I solved the first two problems and they work.
the first attribute is a REPORTING one and it works. To give more information, even if out of scope here, on the coordinator side the attribute definition is Zigbee2MQTT is: tankHeight: {
key: ['tankHeight'],
convertSet: async (entity, key, value, meta) => {
var v = value * 100;
const payload = {tankHeight: v};
await entity.write('mvManuWaterLevel',payload); // THIS WORK
return {'tankHeight': v};
},
convertGet: async (entity, key, meta) => {
await entity.read('mvManuWaterLevel', ['tankHeight']); //THIS DOES NOT WORK
},
}, where |
The read attribute command will not trigger any application operation on the device. Has the read attribute response from device been received by the coordinator? |
Question
Hi, I would like to define a more complex application compared to the examples.
I need to configure three clusters:
I write some code that compile but I have some questions:
This is the code I have at the moment:
Thanks
Additional context.
No response
The text was updated successfully, but these errors were encountered: