fwestenberg / reolink

Python Reolink package
MIT License
86 stars 24 forks source link

[Feature Request] Spotlight support #58

Closed ovid-io closed 3 years ago

ovid-io commented 3 years ago

I'm wondering if anyone could implement spotlight support in this library? I have found this documentation here that might be of help https://home-cdn.reolink.us/wp-content/uploads/2021/05/070123211620350601.5874.docx

It references SetWhiteLed command, which is what my cameras web interface is sending when trying to configure the backlight. I have no experience with python but there is reolink_dev home assistant integration that I would like to attempt to integrate this feature in

rchiileea commented 3 years ago

is this going to happen?

ptyers commented 3 years ago

68

Work in progress - a pull request which I think handles spotlight has been submitted. Nothing re Siren yet

rchiileea commented 3 years ago

Cool I have this camera in back yard so it could be used as a light through this for me

ptyers commented 3 years ago

Ver 0.45 now includes WhiteLed (Spotlight) support

routine set_whiteled(self, enable, new_bright, new_mode=None): """Set the WhiteLed parameter."""

    """  state - two values True/False
    """  channel - appears to default to 0 """ 
    """  mode - three values  """
    """    0  Night Mode Off """
    """    1  Night Mode On , AUTO on """
    """    3  Night Mode On, Set Time On """
    """  bright - brightness level range 0 to 100 """ 

set_spotlight_lighting_schedule(self, endhour =6, endmin =0, starthour =18, startmin=0):
# stub to handle setting the time period where spotlight (WhiteLed)
# will be on when NightMode set and AUTO is off
# time is 24 hour
# if times not specified defaults to Start at 1800 ends at 0600
cpainchaud commented 3 years ago

implemented, thx @ptyers