You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading HA, the quirk for the TZE204_qasjif9e that has overridden my local quirk I was previously using has broken configuration of these devices. The values for Maximum range and Minimum range are not being correctly handled.
I have a device that is correctly configured using the older quirk, with a range of 1.8m, however the UI reports this as 180m.
Adjusting the value makes it impossible to set a useful value, as setting it to 9m results in it really only being set to 9cm.
Steps to reproduce
Go to the device configuration
Adjust the maximum range to any value
Expected behavior
The device is configured with the correct range.
Screenshots/Video
Correctly configured device as seen by HA
Incorrectly configured device by HA
Value read back out of the device after using the UI to set it to 9. This should be 900
Thanks, this is an easy fix, the question is how broadly this applies. This base quirk is used for 9 other motion devices, maybe the z2m source would show if they all require scaling by 100 or just a subset.
@gnif Can you try the updated quirk from #3645? You'll need to add this at the top of the custom quirk file though:
fromzigpy.quirksimportDEVICE_REGISTRY# other existing imports from custom quirks# remove upstream quirk from registrydelDEVICE_REGISTRY._registry_v2[("TZE204_qasjif9e", "TS0601")]
# add custom quirk...
Then, just put that file (ts0601_motion.py) into your custom quirks folder.
You may need to create a custom_zha_quirks folder in your /config and set the custom_quirks_path in your HA configuration.yaml if you haven't done that already.
If you can't test it at the moment or it doesn't work, let me know. I think the PR changes should be fine to merge as-is.
This works but it's now missing the presence sensitivity configuration value (I see this field is replaced by fading_time)
Note, it would be preferable to also use cm rather the m as the unit of measure, m is too coarse for some applications.
Bug description
After upgrading HA, the quirk for the TZE204_qasjif9e that has overridden my local quirk I was previously using has broken configuration of these devices. The values for Maximum range and Minimum range are not being correctly handled.
Steps to reproduce
Expected behavior
The device is configured with the correct range.
Screenshots/Video
Correctly configured device as seen by HA
Incorrectly configured device by HA
Value read back out of the device after using the UI to set it to
9
. This should be900
Device signature
Device signature
Diagnostic information
Diagnostic information
Logs
Logs
Not Applicable.
Additional information
No response
The text was updated successfully, but these errors were encountered: