-
Notifications
You must be signed in to change notification settings - Fork 726
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
Question: CustomCluster (AnalogInput) -> HomeAssistant Entity - HowTo? #3720
Comments
We need zigpy/zha#197 merged and then it will work as expected. In the mean time use a v2 quirk and use |
I think something like this would get you going. (
QuirkBuilder("HQ", "HQWS200kg")
.sensor(
"present_value",
AnalogInput.cluster_id
unit=UnitOfMass.KILOGRAMS,
device_class=SensorDeviceClass.WEIGHT,
state_class=SensorStateClass.MEASUREMENT,
translation_key="measured_mass",
fallback_name="Mass",
)
.add_to_registry()
) |
Thanks @prairiesnpr , I tried following quirk
but it didn't work, and from UI looks like the quirk is not applied as well. The reason why I have commented out different parameters is:
Is there any documentation/reference code available to which you can point me to for this? |
Documentation we are short on. Look at #3019 and also https://github.com/zigpy/zigpy/blob/dev/tests/test_quirks_v2.py |
Also, check that you are on the latest HA, here's a current quirk with similar kwargs,
|
Just checking this, as On the other hand, I am not clear why HomeAssistant is giving error on start-up when parameters |
Hi @prairiesnpr - I have a little success. This is what I did:
Next Problem :)Now the problem I am struggling with is that sensor entity is not updated on UI by itself, It only gets updated when I press the read attribute button on I tried to set the reporting configuration as below, but no luck:
FW is reporting weight value after every 15 seconds. It looks like something is missing in data wiring from ZHA -> HomeAssistant entity, any idea/help? |
What are you sending from the device to HA? Post the logs of the incoming update. You need to be sure you are reporting the attribute correctly from the ESP, if the command is something like a read attribute response, then it will be dropped. See an example here. https://github.com/prairiesnpr/esp_zha_test_bench/blob/69e01ce8a35bbeecf34bac96aae1e1a87af9bc4b/main/main.c#L51 |
Following is what I am doing for reporting from ESP:
And for testing I sent the weight value as humidity measurement (cluster id: UpdateI see following in logs when I press
I don't see any logline when attribute change is reported from FW. |
Dear All,
I am working on creating a zigbee weight sensor for one of my DIY project. Quick background/summary:
Environment
2024.9.1
, Frontend v20240906.0
Hardware/FW
ESP32-H2
as a hardware platform.ESP-IDF
End device
AnalogInput
clusterOut of Box - HomeAssistant behavior
identify
,LQI
,RSSI
Manage Zigbee device
menu and reading thepresent_value (0x0055)
attribute ofAnalogInput (0x000c)
clusterQuirk development
Manage Zigbee device
menu, with the correct values inpresent_value
attribute.Issue
Code of Quirk
Signature of device
Different UI(s) on home assistant:
Any help is appreciated.
The text was updated successfully, but these errors were encountered: