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
Amadeo6mo ago
So the default input device is basically empty? Are there any logs that might be related to audio?
Lukas Vance
Lukas VanceOP6mo 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 VanceOP6mo ago
Default input device:
No description
barrelltitor
barrelltitor6mo ago
This works fine on the testing build wwew're using @Amadeo
barrelltitor
barrelltitor6mo ago
No description
No description
Lukas Vance
Lukas VanceOP6mo 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
DrR0x6mo ago
@Lukas Vance here
Solution
DrR0x
DrR0x6mo 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
DrR0x6mo 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 VanceOP6mo 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
DrR0x6mo ago
so mute mic from HA? yes a hotkey command would work fine
Lukas Vance
Lukas VanceOP6mo ago
But how do I set a hotkey command to carry out two things?
DrR0x
DrR0x6mo 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 VanceOP6mo 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
DrR0x6mo ago
Hass.Agent wont trigger an automation when you click a hotkey
Lukas Vance
Lukas VanceOP6mo ago
I thought that using MIDI Manager, I could simulate pressing two key combos, and do the teams one, then the HASS.Agent one but I can only do one. I will, I already have this working.
DrR0x
DrR0x6mo ago
using what sensor?
Lukas Vance
Lukas VanceOP6mo ago
Input Boolean
DrR0x
DrR0x6mo ago
Could you send a screenshot of ur hass.agent config? im thoroughly confused xD
Lukas Vance
Lukas VanceOP6mo ago
I have a "Teams Mute" input boolean helper. I toggle this with a hotkey. Sorry it is confusing. I don't seem to be able to attach a photo on my iPad. Gimme a sec…
Lukas Vance
Lukas VanceOP6mo ago
No description
Lukas Vance
Lukas VanceOP6mo ago
So that works. I hoped it would also mute Teams, and that hotkey does if it's not mapped in HASS I simulate that hotkey using midi manager and my lights do their thing. But teams is not muted. I've tried to mash so many things together to get this working, but to no avail.
DrR0x
DrR0x6mo ago
ah i see what you mean now okay, my guess is hass.agent is taking over that hotkey can you change the hotkey in teams?
Lukas Vance
Lukas VanceOP6mo ago
No
DrR0x
DrR0x6mo ago
hmm, thats more annoying then
Lukas Vance
Lukas VanceOP6mo ago
But then I'm back to the same issue; how would I simulate two hotkeys? I can change the HASS one, but then how do I mute teams?
DrR0x
DrR0x6mo ago
HA automation that triggers on helper toggle that tells Hass.Agent to execute other hotkey @Amadeo This is a potential example of where in app automation could be of use, problem is it is doable in HA, just seems longwinded
Lukas Vance
Lukas VanceOP6mo ago
I've not got HASS to simulate the hotkeys. At least not in a way that works in Teams
DrR0x
DrR0x6mo ago
the hotkey command doesnt work?
Lukas Vance
Lukas VanceOP6mo ago
Not in a way that works. Well, actually maybe I need to try in this new fork. Honestly I've been trying various methods for this for YEARS. CTRL + SHIFT + M would be [^+(M)] .
DrR0x
DrR0x6mo ago
[^+M] mines working with an automation that triggers when i click SHIFT ALT M
Lukas Vance
Lukas VanceOP6mo ago
Yeah my command does not mute teams 😦
DrR0x
DrR0x6mo ago
i would try upgrading first
Lukas Vance
Lukas VanceOP6mo ago
To ?
DrR0x
DrR0x6mo ago
2.1 or at least 2.0.1 as in one from us
Lukas Vance
Lukas VanceOP6mo ago
Ah ok, I am on 2.0.1 I think. I'll try 2.1
DrR0x
DrR0x6mo ago
all good, odd then
Lukas Vance
Lukas VanceOP6mo ago
Can HASS simulate the WIN key? I've found this to be very problematic
DrR0x
DrR0x6mo ago
not anymore, im using alt+m now makes more sense to me
Lukas Vance
Lukas VanceOP6mo ago
ALT+M doesn't work for me but ALT+ESC does Oh, not is doesn't 😭
DrR0x
DrR0x6mo ago
yeah alt m is unreliable. Thx windows 🤣 honestly Ctrl Shift a letter is gonna be most realiable
Lukas Vance
Lukas VanceOP6mo ago
Yeah I think that's the best way to go, it's just that WIN ALT K will do it when you're in a meeting but Teams is not focused. Yeah still no dice. Shame. I am using this technique very well for other things like launching apps from my midi controller. This mute one though is proving a big challenge. Thanks for all your time though.
DrR0x
DrR0x6mo ago
i still dont understand why it isnt working for u 🤔
Lukas Vance
Lukas VanceOP6mo ago
Windows 11? Teams 2.0?
DrR0x
DrR0x6mo ago
could be, i never ever use teams and im on old win10 like 2021 version xD
Lukas Vance
Lukas VanceOP6mo ago
Ah. Probably it.
Want results from more Discord servers?
Add your server