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

Privacy switch enabled when media player gets deactivated #102

Closed
aqwserf opened this issue Dec 1, 2022 · 4 comments
Closed

Privacy switch enabled when media player gets deactivated #102

aqwserf opened this issue Dec 1, 2022 · 4 comments
Labels

Comments

@aqwserf
Copy link

aqwserf commented Dec 1, 2022

Hi!

Moving forward on my automation, I noticed that when I deactivate the media player in HA, the privacy switch is automatically activated, with around a 20s delay:

image

Same behavior happens when I activate the media player, the privacy switch is set to off:

image

I've tested on both MStar and Allwinnerv2, same behavior.

FYI, MQTT is disabled on every camera as I use Frigate for motion detection, but I guess it has not impact as these 2 controls use API.

BTW, no matter if media player is on or off, I can play TTS using HA TTS service. Is there another purpose for this switch?

Thanks!

@aqwserf aqwserf changed the title Privacy enabled when media player gets deactivated Privacy switch enabled when media player gets deactivated Dec 1, 2022
@aqwserf
Copy link
Author

aqwserf commented Dec 1, 2022

Hum, after reading the code, I guess why it's happening:

def turn_off(self):
"""Turn off camera (set privacy on)."""

def turn_on(self):
"""Turn on camera (set privacy off)."""

So my question is why? We should be able to turn on/off the media player without impacting privacy? Or again, I don't get the purpose of media player ^^

@roleoroleo
Copy link
Owner

You are right.
By design, media_player switch and privacy switch have the same behavior.
I should change media_player switch to disable tts (or media playing in generale) when it's switched off.

@aqwserf
Copy link
Author

aqwserf commented Dec 2, 2022

Ok, so if I understand correctly, privacy switch is impacted by media_player switch, and media_player switch has not impact right?

Copy link

github-actions bot commented Apr 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Apr 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants