Hi,
I have 3 temperature/humidity sensor and no ones show the humidity entities.
I have already deleted from HA an added back but nothing changes.
Temperature sensor seems to work properly.
Anyone any ideas?
I have already tried to reconfigure but I got an error.
Doesn’t show humidity in ZHA.
With Zigbee2MQTT works fine.
The same is happening to me in ZHA, any future solution?
check this out!!! I made it work. It is a missing “model” in the device signature for any reason, I fixed it with a custom quirk. Let’s see if zigpy zha device handlers guys appproves the change
zigpy:dev
← jpizquierdo:dev
opened 11:55AM - 19 Jul 24 UTC
## Proposed change
There are some _TZ3000_zl1kmjqx from aliexpress that has n… ot specified a model, they are empty, so they only exposes temperature instead of temperature + humidty. I googled and faced that someone was having the same issue:
https://community.home-assistant.io/t/tz3000-zl1kmjqx-doesnt-show-humidity-entities/708283/3 so I thought that it could be fixed with a custom zhaquirk, I tested it in my custom quirk folder with this configuration inside configuration.yaml:
```
zha:
database_path: /config/zigbee.db
enable_quirks: true
custom_quirks_path: /config/zha_quirks/
```
## Additional information
This is the device signature, as you can see model is empty and this was causing that the already implemented custom quirk was not working properly:
```
{
"node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
"endpoints": {
"1": {
"profile_id": "0x0104",
"device_type": "0x0302",
"input_clusters": [
"0x0000",
"0x0001",
"0x0003",
"0x0402",
"0x0405"
],
"output_clusters": [
"0x0019"
]
}
},
"manufacturer": "_TZ3000_zl1kmjqx",
"model": "",
"class": "ty0201.TuyaTempHumiditySensor"
}
```
This is the sensor working with this change:
![image](https://github.com/user-attachments/assets/76b0fb3e-bb33-49b0-8126-c50c969fe80e)
## Checklist
<!--
Put an 'x' in all boxes that apply.
Note: You do not need to tick all boxes before creating a PR.
-->
- [x] The changes are tested and work correctly
- [x] `pre-commit` checks pass / the code has been formatted using Black
- [ ] Tests have been added to verify that the new code works
sgrobertson
(Stephen Robertson)
October 8, 2024, 4:34pm
5
Hi, I stumbled across this thread today as I just received a couple of these sensors. So I was trying to add this custom quirk. I see that the change you proposed has been included so guess shouldn’t need the custom quirk for too long.
I’m not managing to get it to work. I copied the contents of ty0201.py and added it to my home-assistant. It is being picked up ( you can see my typo of ty0101 rather than ty0201!!)
But I’m now not getting temperature either! Sure I’m doing something daft. Any suggestions gratefully recevied.
Thanks
Stephen
sgrobertson
(Stephen Robertson)
October 8, 2024, 10:27pm
6
Just replying here for anyone else who finds this then using the file version from this commit as a custom quirk worked for me
Fix _TZ3000_zl1kmjqx
with empty model string by jpizquierdo · Pull Request #3264 · zigpy/zha-device-handlers (github.com)