rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
383 stars 74 forks source link

Lorex Floodlight support requested #263

Open josetann opened 1 year ago

josetann commented 1 year ago

It's another rebadged Dahua. To test, I replaced

   return self.model.upper().startswith("ASH26")

with

   return self.model.upper().startswith("V261LC")

and it works fine. Well, I can't change the brightness, but I can turn the floodlight on and off as expected.

josetann commented 1 year ago

If it helps, these are the exact steps to add support for this floodlight. This is for the current 0.9.46 version, other versions may have the code at a slightly different line number.

Edit __init__.py

At line 561 change:

return self.model.upper().startswith("ASH26")

to:

return self.model.upper().startswith("ASH26") or self.model.upper().startswith("V261LC")

In case the above is wrapped around, it should be all one line.

secabeen commented 1 year ago

This looks great, what port are you using to interface with the device? My V261LC doesn't listen on port 80.