diff --git a/zhaquirks/tuya/builder/__init__.py b/zhaquirks/tuya/builder/__init__.py index ee1d037aad..cfe0303252 100644 --- a/zhaquirks/tuya/builder/__init__.py +++ b/zhaquirks/tuya/builder/__init__.py @@ -146,6 +146,7 @@ def tuya_contact( dp_id, ias_cfg.ep_attribute, IasZone.AttributeDefs.zone_status.name, + converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x != 0 else 0, ) self.adds(ias_cfg) return self