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

Add Audio Output Sensors, rename Microphone to Audio Input #627

Merged
merged 2 commits into from
Dec 7, 2021

Conversation

zacwest
Copy link
Member

@zacwest zacwest commented Dec 7, 2021

No description provided.

@zacwest zacwest changed the title Add Speaker Sensors Add Audio Output Sensors, rename Microphone to Audio Input Dec 7, 2021
@TomBrien
Copy link
Member

TomBrien commented Dec 7, 2021

This is a breaking change on the audio input side right?

@zacwest
Copy link
Member Author

zacwest commented Dec 7, 2021

Nope. Existing sensors will get a new visual name but keep the same entity ID.

@TomBrien TomBrien merged commit 2d9ebe3 into master Dec 7, 2021
zacwest added a commit to home-assistant/iOS that referenced this pull request Dec 7, 2021
Fixes #1958.

## Summary
Existing Core Audio stuff already exposes the output devices pretty easily, so creating sensors from 'em is pretty easy.

## Sensor Values
Roughly identical to microphones:

| Sensor | Attributes | Description |
| --------- | --------- | ----------- |
| `sensor.active_audio_input` | `All`, `Active` | The name of the active audio input (microphone), or `Inactive` if not in use. |
| `sensor.active_audio_output` | `All`, `Active` | The name of the active audio output (speaker), or `Inactive` if not in use. |
| `binary_sensor.audio_input_in_use` | None | Whether an audio output (microphone) on the system is currently in use. |
| `binary_sensor.audio_output_in_use` | None | Whether an audio output (speaker) on the system is currently in use. |

## Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#627

## Any other notes
This updates relatively instantly for when output starts, but takes a few seconds before it updates once output pauses.

Existing `microphone` sensors won't have their unique IDs changed, but their display name will change. New installs will get the new unique ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants