Skip to content

Commit

Permalink
feat: add "Wireless PIR AM curtain detector" #2
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Feb 20, 2023
1 parent 9fda7af commit 53e1a89
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 @@ -63,6 +63,7 @@ class DetectorType(Enum):
WIRELESS_EXTERNAL_MAGNET_DETECTOR = "wirelessExternalMagnetDetector"
WIRELESS_TEMPERATURE_HUMIDITY_DETECTOR = "wirelessTemperatureHumidityDetector"
WIRELESS_GLASS_BREAK_DETECTOR = "wirelessGlassBreakDetector"
WIRELESS_PIR_AM_CURTAIN_DETECTOR = "wirelessDTAMCurtainDetector"


def detector_model_to_name(model_id: Optional[str]) -> str:
Expand All @@ -74,6 +75,8 @@ def detector_model_to_name(model_id: Optional[str]) -> str:
return "Wireless temperature humidity detector"
if model_id == "0x00028":
return "Wireless external magnet detector"
if model_id == "0x00032":
return "Wireless PIR AM curtain detector"
if model_id is not None:
return str(model_id)
return "Unknown"
Expand Down

0 comments on commit 53e1a89

Please sign in to comment.