Skip to content

Commit

Permalink
fix: add wirelessDoublePIRDetector #114
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed May 24, 2024
1 parent d3fbe97 commit d60a92f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/hikvision_axpro/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class DetectorType(Enum):
WIRELESS_SMOKE_DETECTOR = "wirelessSmokeDetector"
WIRELESS_TEMPERATURE_HUMIDITY_DETECTOR = "wirelessTemperatureHumidityDetector"
WIRELESS_TRI_TECH_DETECTOR = "wirelesTriTechDetector"
WIRELESS_DOUBLE_PIR_DETECTOR = "wirelessDoublePIRDetector"
OTHER = "other"


Expand Down Expand Up @@ -143,6 +144,8 @@ def detector_model_to_name(model_id: Optional[str]) -> str:
return "Wireless CO Detector"
if model_id == "0x00032":
return "Wireless PIR AM Curtain Detector"
if model_id == "0x00040":
return "Wireless Double PIR Detector"
if model_id is not None:
return str(model_id)
return "Unknown"
Expand Down

0 comments on commit d60a92f

Please # to comment.