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

WebcamActiveSensor Does Not Update (Logitech c930e, Win 10 19042.685) #18

Closed
lonelyseraphim opened this issue Jan 11, 2021 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@lonelyseraphim
Copy link

WebcamActiveSensor does not update from "False" to "True" when webcam is in use. Sensor fails to update using Zoom client, webcamtests.com, and integrated windows 10 camera app despite operating correctly in all applications.

Webcam: Logitech c930e (USB)
Drivers: v 1.2.75.33, provided on 5/13/2020 by Logitech

OS: Windows 10 Pro, Version 20H2, OS build 19042.685

@sleevezipper
Copy link
Owner

Thank you for creating an issue!

I actually had the same problem with my work laptop today so I can at least reproduce it. My guess it that is has something to do with where Windows saves the last accessed data. Sometimes it seems to be in HKEY_CURRENT_USER and sometimes in HKEY_LOCAL_MACHINE. I think this sensor should actually check both and so does the microphone sensor.

@sleevezipper sleevezipper added the bug Something isn't working label Jan 11, 2021
@rEs-84
Copy link

rEs-84 commented Jan 12, 2021

Have the same issue on a dell Latitude laptop
Windows 10 20H1 (updated to 20H2 and still the same).

The webcam (Integrated webcam) and microphone (Realtek Audio) sensors appear to do nothing.

Tried teams (taskbar shows that something is using my mic) and windows camera app

@sleevezipper sleevezipper added this to To do in HASS Workstation Service via automation Jan 12, 2021
@sleevezipper sleevezipper moved this from To do to In progress in HASS Workstation Service Jan 12, 2021
@rEs-84
Copy link

rEs-84 commented Jan 12, 2021

Webcam Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam
Microphone Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone
image

image

the page you linked in your feature request, mentions about tracking history of usage. mine doesnt appear too

@sleevezipper
Copy link
Owner

Hi @rEs-84!

If you scroll down to the bottom on that settings screen, do you see more entries there? Do they have a date and time for last accessed?

@sleevezipper
Copy link
Owner

I think I fixed it. Could any of you try this standalone release?

@rEs-84
Copy link

rEs-84 commented Jan 12, 2021

yeah that seems to have done the trick.

Out of interest how are you detecting the webcam and mic are in use, still registry (but somewhere else?)
i'm only interested in the mic monitoring, to mute my radio when on calls.

I did have a few issues getting the new version to actually connect to mqtt, but I think killing the previous app running in the background as an admin account, might of resolved it. So i assume two copies cant be ran on same machine (not issue for me).

Maybe enable a taskbar icon so the app can be closed / config got to easily etc?

@lonelyseraphim
Copy link
Author

The standalone install seems to have worked for me too! Nice work!

@sleevezipper
Copy link
Owner

Thanks for testing this both of you! I'm going to mark this as closed and the fix will be in the next release. If anyone comes across this, you can use the file I linked a few comments up if you don;t want to wait for next release.

@rEs-84, yes, it's still registry. The following sub registries are available:
afbeelding
I was only checking HKEY_LOCAL_MACHINE while some entries appear in HKEY_CURRENT_USER. This may have something to do with how application are installed, either as user or for the whole machine but I'm not sure about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants