-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Add button to set IR Lamp to AUTO #145387
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
base: dev
Are you sure you want to change the base?
Conversation
Add a simple button to set back setting IrCutFilter to AUTO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @avigeilpro
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Hey there @hunterjm, @jterrace, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ruff is failing, can you take a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This calls the correct command according to the ONVIF Spec, but should be implemented as a select entity instead of a button. The way it is implemented currently will allow you to set it to auto the first time the button is pressed, but doesn't do anything when pressed multiple times.

There is already a switch to toggle ON and OFF the IRCutFilter, but there was no way to put it back to AUTO. As Home Assistant doesn't have a 3 state switch, the only way i saw to add this function was to put a new button that have the only purpose to set this setting to Auto. |
Done |
There is, it's a select entity |
Do you think i should close this PR and open a new one with the Select entity solution ? |
You can also continue on this PR, I don't mind |
i've made the select entity, add a new function to read the settings from the camera and update the select. Waiting to see what i need to do next (for sure i missed something, this is my first contribution and i look this language for only 2 days) |
Hi, anybody could say me what i should do next ? I don't know if there is a problem or if i should just wait. |
Proposed change
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: