petrleocompel / hikaxpro_hacs

HACS repository of Hikvision Ax Pro integration for home assistant
MIT License
40 stars 4 forks source link

missing detector wiring mode + resistantces #60

Closed petrleocompel closed 1 year ago

petrleocompel commented 1 year ago

@iulius74

Hello. I vave now v 2.0.3 and it works perfect.
In model.py after each update I have to add to wiring mode:
class DetectorWiringMode(Enum):
SEOL = "SEOL"
DEOL = "DEOL"
TEOL = "TEOL"
NO_EOL = "No EOL"
I have TEOL on all detectors, and other way I got errors.

Also,

after line 660: fault_resistence: Optional[float] = None
after line 728: fault_resistence = from_union([from_float, from_none], obj.get("faultResistence"))
after line 781: fault_resistence,
after line 864: if self.fault_resistence is not None:
result["faultResistence"] = from_union([to_float, from_none], self.fault_resistence)
This way I got all resistors value.
Maybe you cand directly integrate this in code in future versions.
Thank you very much.
petrleocompel commented 1 year ago

fault_resistence is not documented in ISAPI docs.. again

petrleocompel commented 1 year ago

v2.1.0-beta4 released

petrleocompel commented 1 year ago

fixed again in v2.1.0-beta5