Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofocus support #339

Open
GitRDone2022 opened this issue Feb 26, 2024 · 1 comment
Open

Autofocus support #339

GitRDone2022 opened this issue Feb 26, 2024 · 1 comment

Comments

@GitRDone2022
Copy link

I have a HFW5241E-Z12E that drifts out of focus a little each day.

Would like to be able to call an event at a specific time of day to autofocus it again without having the specific zoom and focus numbers.

http:https:///cgi-bin/devVideoInput.cgi?action=autoFocus is the command

Currently using a powershell script to do this. Thanks :)

@GitRDone2022
Copy link
Author

GitRDone2022 commented Feb 26, 2024

Also in my powershell I am calling the following, would be nice to allow each of these in home assistant.
I currently ramp-up or down the motion sensitivity value to auto calibrate the threshold and reduce the number of false motion events.

I also up my night bitrate to 20mbit then back down to 4mbit during the day.

Thanks

Get Motion Sensitivity Value 0-100
http:https://IP/cgi-bin/configManager.cgi?action=getConfig&name=MotionDetect
return [int]$_.'table.MotionDetect[0].MotionDetectWindow[0].Sensitive'

Set Motion Sensitivity Value 0-100
http:https://IP/cgi-bin/configManager.cgi?action=setConfig&MotionDetect[0].MotionDetectWindow[0].Sensitive=100

Get current encode bitrate
http:https://IP/cgi-bin/configManager.cgi?action=getConfig&name=Encode
return $_.'table.Encode[0].MainFormat[0].Video.BitRate'

Set Bitrate
http:https://IP/cgi-bin/configManager.cgi?action=setConfig&Encode[0].MainFormat[0].Video.BitRate=8192&Encode[0].MainFormat[1].Video.BitRate=8192&Encode[0].MainFormat[2].Video.BitRate=8192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant