AntoineGS / TeamsStatusV2

Monitoring your Microsoft Teams status with PowerShell
39 stars 6 forks source link

Conflicting Status and Activity values when in a call on Teams mobile client #8

Closed kitleyn closed 2 years ago

kitleyn commented 2 years ago

Status monitoring is configured on my laptop and works well but I have found that whilst in a call/meeting on the Teams mobile client, the values of the Teams Status and Teams Activity show conflicting values.

Teams Status: On the phone Teams Activity: Not in a call

I guess because the Activity is only being read from the log file and since there is no ongoing call from the laptop it thinks there isn't a call at all. The Status shows correctly though. Any way that a check could be added to the Activity variable to show 'InACall' where the Status is 'OnThePhone', regardless of the logfile. Thanks

AntoineGS commented 2 years ago

That makes a lot of sense, I will make the change!

AntoineGS commented 2 years ago

So after some attempts to get this working properly, I have not found a reliable way of getting the status back after hanging up. Here are a couple of problems I run into:

So this said, I don't think I will be pursuing an implementation for this unless someone has a PR for it. I would recommend changing the Home Assistant code to look for "either Status On the phone or Activity In a call" to get your automations to trigger.