Closed DejanBukovec closed 1 year ago
Im modify model.py and add under "class DetectorType(Enum)" new line: WIRELESS_PIR_CAM_DETECTOR = "pircam" So now looks like:
class DetectorType(Enum):
OTHER = "other"
PASSIVE_INFRARED_DETECTOR = "passiveInfraredDetector"
WIRELESS_EXTERNAL_MAGNET_DETECTOR = "wirelessExternalMagnetDetector"
WIRELESS_TEMPERATURE_HUMIDITY_DETECTOR = "wirelessTemperatureHumidityDetector"
WIRELESS_GLASS_BREAK_DETECTOR = "wirelessGlassBreakDetector"
WIRELESS_PIR_AM_CURTAIN_DETECTOR = "wirelessDTAMCurtainDetector"
MAGNETIC_CONTACT = "magneticContact"
WIRELESS_PIR_CAM_DETECTOR = "pircam"
and inside "detector_model_to_name" add new line so now looks like:
def detector_model_to_name(model_id: Optional[str]) -> str:
if model_id == "0x00001":
return "Passive infrared detector"
if model_id == "0x00006":
return "Magnetic contact"
if model_id == "0x00012":
return "Wireless PIR CAM detector"
if model_id == "0x00018":
return "Glass break detector"
if model_id == "0x00026":
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"
And now is probably detected because pircam line disapear but Zone Delay error still exist(I need to look Zone definitions).
Im add "ZoneType" Delay into definition and now looks like:
class ZoneType(Enum):
FOLLOW = "Follow"
INSTANT = "Instant"
DELAY = "Delay"
Now devices are detected.
Please add this changes to next release.
@DejanBukovec I was not receiving notification on email about any issues !! Thank you I will merge all changes. If you would mention me i would get email immediately.
Today Im try integration but do not work. Panel stay offline. With gunkutzeybek integration it work normaly... Is possible make integration that if some detector is not supported that it ignore it instead crash?
Log: