Replies: 7 comments 16 replies
-
Sensors:(value is always the default value and could be different from what is shown here)
|
Beta Was this translation helpful? Give feedback.
-
Outputs
|
Beta Was this translation helpful? Give feedback.
-
|
Simple sensor device with analog input cluster and all mandatory attributes except for the description string working. Assuming that support for strings is still broken on the zigbee_esphome side and not investigating this any further. |
Beta Was this translation helpful? Give feedback.
-
|
Water flow meter: - device_type: SIMPLE_SENSOR
num: 1
clusters:
- id: FLOW_MEASUREMENT
attributes:
- attribute_id: 0x0 # Actual value, m^3/h
type: U16
report: true
value: 100
device: water_meter_total
scale: 100
- attribute_id: 0x1 # MinMeasuredValue, required
type: U16
value: 0xffff # == Not specified
- attribute_id: 0x2 # MaxMeasuredValue, required
type: U16
value: 0xffff # == Not specifiedHave gotten it to appear once, but my esp32-c6 boards dont seem to like to reconnect on reboot, so cant be sure it works correctly. |
Beta Was this translation helpful? Give feedback.
-
|
Occupancy sensor that I attached to - id: OCCUPANCY_SENSING
attributes:
- id: zb_occupancy # actual state as bit. 0 -> empty; 1 -> occupied
attribute_id: 0x000
type: 8BITMAP
report: true
value: 0
device: sensor_occupancy
lambda: !lambda "return x ? 1 : 0;" # perhaps not needed
- attribute_id: 0x0001
type: 8BIT_ENUM
report: true
value: 0x02 #0x00 -> PIR; 0x01 -> sonic; 0x02 -> PIR & sonicAttribute definitions as well as optional attributes can be found here [page 4-19] |
Beta Was this translation helpful? Give feedback.
-
|
Hacked this together to create an on/off sensor from a photodiode ( endpoints:
- num: 1
device_type: TEMPERATURE_SENSOR
clusters:
- id: BINARY_INPUT
attributes:
- attribute_id: 0x0055
id: led_attr
type: bool
report: true
device: led_input |
Beta Was this translation helpful? Give feedback.
-
|
@luar123 Probably overkill but have you looked it could repurpoe "ZAP" (ZCL Advanced Platform) to generate/setup the clusters needed? "The ZCL Advanced Platform (ZAP) is a tool used to configure endpoints for Zigbee and Matter. When you open ZAP, it launches in a new tab next to the .slcp tab. A Zigbee or Matter application can have multiple endpoints. Each endpoint contains a device configuration made up of Clusters on that end-point. The cluster groups differ depending on whether you re configuring a Zigbee or a Matter project, and the interface differs slightly." Based on Zigbee Cluster Library; "It is used to configure clusters, attributes and other entities for Matter and Zigbee Pro applications" ZCL Advanced Platform
ZCL Advanced PlatformWhat is ZAP?ZAP is a generic generation engine and user interface for applications and libraries based on Zigbee Cluster Library, the specification developed by the Connectivity Standards Alliance. ZAP allows you to perform the following:
ZAP is a generic templating engine. Examples are provided for how to generate artifacts for the C language environment, but one could easily add new templates for other language environments, such as C++, java, node.js, python or any other. Quick setupRefer to Setup Instructions Source codeRefer to development instructions for more details. LicenseThis software is licensed under Apache 2.0 license. Usage DocumentationDetailed Developer Documentation |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
The correct setup of clusters is not always trivial and requires careful reading of the Zigbee cluster library
So lets collect endpoint/cluster/attribute definitions that are know to work. With this we can help each other to get working setups and it would help me to finally implement an automated setup of the definitions.
Device types have two purposes:
device type = HA_TEMPERATURE_SENSOR_DEVICEin oder to bind and read the temperature cluster.Available device types can be found here, clusters that are included here and the full definitions are in the ZigBee Home Automation Application Profile
In the end it is up to you how you want to implement multiple devices. You can add all to one endpoint or setup many endpoints. If no device type is fitting you can always use
TESTorCUSTOM_ATTR. (SIMPLE_SENSORshould only be used for a binary switch.)Beta Was this translation helpful? Give feedback.
All reactions