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?
Default input device:
This works fine on the testing build wwew're using @Amadeo
@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
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.
using what sensor?
Input Boolean
Could you send a screenshot of ur hass.agent config? im thoroughly confused xD
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…
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.
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?
No
hmm, thats more annoying then
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?
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
I've not got HASS to simulate the hotkeys. At least not in a way that works in Teams
the hotkey command doesnt work?
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)] .
[^+M]
mines working
with an automation that triggers when i click
SHIFT ALT M
Yeah my command does not mute teams 😦
i would try upgrading first
To ?
2.1 or at least 2.0.1
as in one from us
Ah ok, I am on 2.0.1 I think.
I'll try 2.1
all good, odd then
Can HASS simulate the WIN key? I've found this to be very problematic
not anymore, im using alt+m now
makes more sense to me
ALT+M doesn't work for me but ALT+ESC does
Oh, not is doesn't 😭
yeah alt m is unreliable. Thx windows 🤣
honestly Ctrl Shift a letter is gonna be most realiable
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.
i still dont understand why it isnt working for u 🤔
Windows 11? Teams 2.0?
could be, i never ever use teams
and im on old win10
like 2021 version xD
Ah. Probably it.