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

[ipcamera] Dahua Day/Night profile switching features #11470

Closed
Skinah opened this issue Oct 30, 2021 · 3 comments
Closed

[ipcamera] Dahua Day/Night profile switching features #11470

Skinah opened this issue Oct 30, 2021 · 3 comments
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@Skinah
Copy link
Contributor

Skinah commented Oct 30, 2021

Opening a feature request to gain feedback on what features (if any) should be added and if they offer enough advantage (will they get used) to be used in rules and gain some testing on proposed solution on different peoples cameras.

  1. What channels should there be?
  2. What the channels should be labelled? 3 words to describe what the channel does.
  3. Does the below work on your cameras?
  4. Sending the camera http://192.168.1.x/cgi-bin/devVideoInput.cgi?action=getCaps&channel=0 does this give you caps.NightOptions=true ? We can remove the channels for cameras that return false that they do not support certain features.

The publically available Amcrest API states that NightOptions is not recommended anymore and that newer features are recommended instead, so if any of the older API is implemented, it should be made automatic to remove the channels on cameras that do not support them anymore. Example of some API features that could be used that are in the list of 'not recommended' is found here where an exact time for sunset and sunrise can be sent to the camera:
https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771/2521

The new API has this to fetch the cameras settings:
http://192.168.1.x/cgi-bin/configManager.cgi?action=getConfig&name=VideoInDayNight

table.VideoInDayNight[0][0].Delay=6
table.VideoInDayNight[0][0].Mode=Brightness
table.VideoInDayNight[0][0].Sensitivity=2
table.VideoInDayNight[0][0].Type=Mechanism

Possibly the Sensitivity and Delay can be used to debounce the auto detection so that clouds do not trigger the change over when it is getting close to sunset, preventing a constant switching back and forth. Is it a matter of tweaking these values and no features are needed in openHAB, or does it make sense to add further ones? if so which ones?

@Skinah Skinah added the enhancement An enhancement or new feature for an existing add-on label Oct 30, 2021
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/ipcamera-new-ip-camera-binding/42771/2523

@Skinah Skinah changed the title [ipcamera] Day/Night profile switching features [ipcamera] Dahua Day/Night profile switching features Oct 30, 2021
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/dahua-and-amcrest-adding-advanced-abilities-to-the-ipcamera-binding/128089/1

@Skinah
Copy link
Contributor Author

Skinah commented Nov 27, 2022

Closing due to no interest in feature.

@Skinah Skinah closed this as completed Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

2 participants