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:
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...
Jump to solution
46 Replies
Amadeo
Amadeo4mo ago
So the default input device is basically empty? Are there any logs that might be related to audio?
Lukas Vance
Lukas Vance4mo ago
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
Lukas Vance
Lukas Vance4mo ago
Default input device:
No description
barrelltitor
barrelltitor4mo ago
This works fine on the testing build wwew're using @Amadeo
barrelltitor
barrelltitor4mo ago
No description
No description
Lukas Vance
Lukas Vance4mo ago
@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.
DrR0x
DrR0x4mo ago
@Lukas Vance here
Solution
DrR0x
DrR0x4mo ago
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
DrR0x
DrR0x4mo ago
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
Lukas Vance
Lukas Vance4mo ago
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
DrR0x
DrR0x4mo ago
so mute mic from HA? yes a hotkey command would work fine
Lukas Vance
Lukas Vance4mo ago
But how do I set a hotkey command to carry out two things?
DrR0x
DrR0x4mo ago
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
Lukas Vance
Lukas Vance4mo ago
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.
DrR0x
DrR0x4mo ago
Hass.Agent wont trigger an automation when you click a hotkey
Want results from more Discord servers?
Add your server