-
Notifications
You must be signed in to change notification settings - Fork 784
[Device Support Request] TUYA Smoke _TZE284_rccxox8p #3610
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
Comments
Same problem here. Some further Informations:
|
This is likely the same as the other Tuya smoke detectors. They all seem to use DP 1, if it's functional we can update the existing quirk. from zhaquirks.tuya.builder import TuyaQuirkBuilder
from zhaquirks.tuya import TuyaLocalCluster
from zigpy.zcl.clusters.security import IasZone
class TuyaIasFire(IasZone, TuyaLocalCluster):
"""Tuya local IAS smoke/fire cluster."""
_CONSTANT_ATTRIBUTES = {
IasZone.AttributeDefs.zone_type.id: IasZone.ZoneType.Fire_Sensor
}
(
TuyaQuirkBuilder("_TZE284_rccxox8p", "TS0601")
.tuya_dp(
dp_id=1,
TuyaIasFire.ep_attribute,
IasZone.AttributeDefs.zone_status.name,
converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x == 0 else 0,
)
.adds(TuyaIasFire)
.skip_configuration()
.add_to_registry()
) |
Can you give me a hint on how to test if this works? |
You need to enable custom quirks, see the ZHA documentation. Once enabled, place that code snippet in a file located in the directory configuted as the custom quirk directory, name it |
Okay, i tried that. But i still don't see any Alarm Entitiy. I can only see this in the logs:
|
Just to confirm i did everything right, i put this in configuration.yaml:
Then in folder /config/zha_custom_quirks i put the file tuya_TZE284_rccxox8p.py with your content. Looks right to me. I don't see why it's not loading the Quirk tho. |
So that looks right to me, fair disclosure, I've never actually used custom quirks before, nor set them up, so bit of the blind leading the blind. You might try removing the trailing forward slash in the path. |
Nope, still nothing. Maybe it's something with the Quirk itself. I don't have the knowledge to go from here, so i just wait for more instructions in case anyone has a clue on this. 😄 |
Just to confirm, you are on the latest HA version? |
Yes. I just got it to work with the help of Github Copilot. The Quirk looks like this now: from zhaquirks.tuya.builder import TuyaQuirkBuilder
from zhaquirks.tuya import TuyaLocalCluster
from zigpy.zcl.clusters.security import IasZone
class TuyaIasFire(IasZone, TuyaLocalCluster):
"""Tuya local IAS smoke/fire cluster."""
_CONSTANT_ATTRIBUTES = {
IasZone.AttributeDefs.zone_type.id: IasZone.ZoneType.Fire_Sensor
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.endpoint.device.ias_zone = self
# Ensure TuyaQuirkBuilder is correctly configured
(
TuyaQuirkBuilder("_TZE284_rccxox8p", "TS0601")
.tuya_dp(
dp_id=1,
ep_attribute=TuyaIasFire.ep_attribute,
attribute_name=IasZone.AttributeDefs.zone_status.name,
converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x == 0 else 0,
)
.adds(TuyaIasFire)
.skip_configuration()
.add_to_registry()
) |
I was going to go add this, but it was already added in #3596. It should work in the beta. |
Looking through the PR i can't see the "_TZE284_rccxox8p", there's only .applies_to("_TZE200_rccxox8p", "TS0601") Would this need adaptation? |
Whoops, missed that, hang on, new PR incoming. |
Thank you! That was a really nice experience contributing to this and working together with you! |
Can you please confirm what would be the right ts0601_smoke.py Quirk for TS601 _TZE200_rccxox8p that can report fire and battery state? tested a bunch with no success. Thank you. |
It will be part of the next HA release, 2025.1. |
I don't understand, I have HA 2025.1.2 and zigbee2MQTT 2.0.0 edit: I'm so sorry! my mistake... |
You are in the wrong place |
I can't this to work in HA or at least report the battery |
What exactly can't you get to work? I'd suggest a new issue with more details on what you have and what you are trying to do. This is in HA now, so you shouldn't need to do anything other than delete any custom quirks you may have. |
I just installed this smoke detector (TS0601 by _TZE284_rccxox8p) and is showing detection in Home Assistant, but it doesn't show battery state. Can somebody let me know if this can be fixed and how? I use ZHA not Zigbe2MQTT |
Hi, in another post I found the information that this one should be identical to the PA-44Z is this one suported by ZHA? The problem I have is, i do only get the smoke entity but no battery live, |
Problem description
Hello,
I bought some Tuya TS601 _TZE284_rccxox8p they are able to pair with ZHA, but no entities just firmware. The Tuya model is same TS601 _TZE200_rccxox8p.
Is it possible for someone to create the quirk? I am not really able to :-(
Thank you!
Solution description
To support the device :-)
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Diagnostic information
Diagnostic information
[Paste the diagnostic information here]
Logs
Logs
Custom quirk
Custom quirk
Additional information
No response
The text was updated successfully, but these errors were encountered: