Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cb635e3
Create ZigbeeWindSpeedSensor.h
lboue Oct 13, 2024
7cf9246
Create ZigbeeWindSpeedSensor.cpp
lboue Oct 13, 2024
2f35d86
Update ZigbeeWindSpeedSensor.cpp
lboue Oct 13, 2024
f063d8d
Update ZigbeeWindSpeedSensor.cpp
lboue Oct 13, 2024
5b149f6
Create ZigbeeWindSpeedSensor.ino
lboue Oct 13, 2024
bbf625c
Update ZigbeeWindSpeedSensor.ino
lboue Oct 13, 2024
d3e7685
Update ZigbeeWindSpeedSensor.ino
lboue Oct 13, 2024
1da3fbe
Create ci.json
lboue Oct 13, 2024
56e5091
Rename ZigbeeWindSpeedSensor.ino to Zigbee_Wind_Speed_Sensor.ino
lboue Oct 13, 2024
69be635
Rename ci.json to ci.json
lboue Oct 13, 2024
cb1b062
Update CMakeLists.txt
lboue Oct 13, 2024
52ab37c
Update Zigbee_Wind_Speed_Sensor.ino
lboue Oct 13, 2024
47cf600
Update Zigbee_Wind_Speed_Sensor.ino
lboue Oct 13, 2024
94a3cbb
Update Zigbee_Wind_Speed_Sensor.ino
lboue Oct 13, 2024
efa1c46
Update ZigbeeWindSpeedSensor.cpp
lboue Oct 13, 2024
bd56b00
Update ZigbeeWindSpeedSensor.cpp
lboue Oct 15, 2024
87c438e
Merge branch 'master' into WindSpeedSensor
lboue Oct 30, 2024
2d0a597
Merge branch 'master' into WindSpeedSensor
P-R-O-C-H-Y Mar 11, 2025
5dc5f7f
feat(zigbee): Add windspeed sensor endpoint
P-R-O-C-H-Y Mar 11, 2025
23a2967
Update Zigbee.h
lboue Mar 11, 2025
a08bfd4
update example
P-R-O-C-H-Y Mar 11, 2025
9df06c5
add missing sdkconfig include
P-R-O-C-H-Y Mar 11, 2025
30482f1
add readme
P-R-O-C-H-Y Mar 11, 2025
216f1f1
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] Mar 12, 2025
da5080d
Update README.md
P-R-O-C-H-Y Mar 12, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add readme
  • Loading branch information
P-R-O-C-H-Y authored Mar 11, 2025
commit 30482f1f05c4180c0808235bcec9a4285184b33a
60 changes: 60 additions & 0 deletions libraries/Zigbee/examples/Zigbee_Wind_Speed_Sensor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Zigbee Wind Speed Sensor Integration with HomeAssistant ZHA

This guide provides a workaround for integrating a Zigbee Wind Speed Sensor with HomeAssistant using the ZHA integration. Since the wind speed cluster is not natively supported, we will use the ZHA Toolkit from HACS to read the wind speed attribute and store it in a helper variable.
## Alternative Option: Creating a Custom Quirk

For advanced users, a more robust solution is to create a custom quirk for your Zigbee Wind Speed Sensor. This approach involves writing a custom device handler that directly supports the wind speed cluster, providing a more seamless integration with HomeAssistant.

Creating a custom quirk can be complex and requires familiarity with Python and the Zigbee protocol. However, it offers greater flexibility and control over your device's behavior.

For more information and guidance on creating custom quirks, visit the [ZHA Device Handlers repository](https://github.com/zigpy/zha-device-handlers/).

## Prerequisites

- HomeAssistant installed and running
- Zigbee Wind Speed Sensor paired with HomeAssistant ZHA
- HACS (Home Assistant Community Store) installed. For more information, visit [HACS](https://hacs.xyz)

## Steps

### 1. Install ZHA Toolkit

1. Open HomeAssistant.
2. Navigate to HACS > Integrations.
3. Search for "ZHA Toolkit - Service for advanced Zigbee Usage" and install it. For more information, visit the [ZHA Toolkit repository](https://github.com/mdeweerd/zha-toolkit).
4. Restart HomeAssistant to apply changes.

### 2. Create a Helper Variable

1. Go to Configuration -> Devices & Services -> Helpers.
2. Click on "Add Helper" and select "Number".
3. Name the helper (e.g., `wind_speed`), set the minimum and maximum values, and save it.

### 3. Create an Automation

1. Go to Configuration > Automations & Scenes.
2. Click on "Add Automation" and choose "Start with an empty automation".
3. Set a name for the automation (e.g., `Read Wind Speed`).
4. Add a trigger:
- Trigger Type: Time Pattern
- Every: 30 seconds
5. Add an action (Then do):
- Action Type: ZHA Toolkit: Read Attribute
- Setup the action:
```yaml
action: zha_toolkit.attr_read
metadata: {}
data:
ieee: f0:f5:bd:ff:fe:0e:61:30 #set device IEEE address
endpoint: 10 #set windspeed device endpoint
cluster: 1035 #use this windspeed cluster
attribute: 0 #read meaurement value
state_id: input_number.wind_speed #save to created helper variable
state_value_template: value/100 #use correct value format (convert u16 to float)
```
6. Save the automation.

## Conclusion

By following these steps, you can successfully integrate your Zigbee Wind Speed Sensor with HomeAssistant using the ZHA integration and ZHA Toolkit. The wind speed readings will be updated every 30 seconds and stored in the helper variable for use in your HomeAssistant setup.
The helper variable `wind_speed` is now an entity in HomeAssistant. You can use this entity to display the wind speed on your dashboard or in other automations.
Loading