Mute Status of Input Device
I don't seem to be able to get the muted status of my device from HASS.Agent. I'm on Windows 11 Enterprise 22H2 and running HASS.Agent 2.0.1. There are many entries in "AudioSessions" and there is an entry for Teams that does report changes in PeakVolume, just not muted, nor does the default_input_device_muted show anything. I've tried with both the CTRL+SHIFT+M and WIN+ALT+K to mute the mic. The default audio input device shown in HASS.Agent is the same as is used in MSTeams and is the default input device (communication as well).
Solution:Jump to solution
RE: https://discord.com/channels/1173033284519862392/1173033285845266515/1245689413770416210
The problem here is the same as with discord, teams does not tell windows and by extensions hass.agent if it is muted or not...
46 Replies
So the default input device is basically empty?
Are there any logs that might be related to audio?
No, the values are filled. There's two "Teams" as a second is created when you actually go into a meeting. This is the one with the more complex volume number. Which logs should I be looking at? HA? HASS.Agent? MQTT?
![No description](https://cdn.answeroverflow.com/1245395838272798780/image0.jpg)
Default input device:
![No description](https://cdn.answeroverflow.com/1245396134893981858/image0.jpg)
This works fine on the testing build wwew're using @Amadeo
![No description](https://cdn.answeroverflow.com/1245522891290841118/image.png)
![No description](https://cdn.answeroverflow.com/1245522891681042492/image.png)
@barrelltitor that's an output device, not an input device.
What I want to do is pick up when the MIC/Teams is muted. Not the sound.
@Lukas Vance
here
Solution
RE: https://discord.com/channels/1173033284519862392/1173033285845266515/1245689413770416210
The problem here is the same as with discord, teams does not tell windows and by extensions hass.agent if it is muted or not
if you instead start muting with windows you could automate that, but that would be a pain for me
you would need some sort of app that connects inside of teams to check mute status
OK, so can I manually mute teams with a simulated key press and then trigger an automation?
There are two already
WIN+ALT+K and Shift+Ctrl+M
so mute mic from HA? yes a hotkey command would work fine
But how do I set a hotkey command to carry out two things?
i think you are meaning you want hass.agent to detect when you click those and then trigger a HA automation, am i right?
Cause otherwise however you activate the Hass.Agent command you also trigger the automation
I don't care how it happens. I can map 'CTRL+SHIFT+M' as a hotkey in HASS.Agent and it will trigger the automation, but not mute teams.
Hass.Agent wont trigger an automation when you click a hotkey