The API Token will be generated automatically by the integration, so leave it blank in the configuration file
Decide on whether you will use MQTT or direct HA integration, setting the URL to the integration will activate it, but
you can only use one or the other:
MQTT
Set the URL
Set the username and password if applicable
Double-check the other configurations, they have default values, but you may want/need to change them
Double-check the other configurations, they have default values, but you may want/need to change them
(optional) Set the entities as persistent in HA, otherwise they will show up as missing if the application
has been turned off for some time, see here.
Run the application again
It will create the entities in HA automatically when it connects
Start a meeting in Teams (you can be the only person in it)
From the 'Teams Status' tray icon, right-click, and click on Toggle Mute
You will get a prompt in Teams to allow the application to use the API
If you do not click on time Teams will close the prompt. Simply click on Toggle Mute again.
HA Persistent Entities
For the entities to persist with the native HA integration, you will need to create the entities manually:
Warning! If you are already using the integration, make sure all entities are removed from HA and that
the teams-status application is closed. Otherwise, it will duplicate sensors.
In HA's configuration.yaml file, under the following section (add it if you do not have it):
yaml
template:-binary_sensor:
…
The name and friendly_name should match what you have in the config file
The unique_id can be any unique identifier
Notices
Pull Requests, Issues, Feature Requests are all welcomed
This integration only supports the New Teams (2.0 client)
Logging is done in output.log, and rolls over at 10mb, keeping a maximum of two files
Passwords and keys are encrypted
This project utilizes the local Teams Client API (instead of Azure / M365)
Advantages
No permissions or App Registrations required in Azure, unlike several others that may require organizations to
approve an exception depending on current security settings.
Disadvantages
If you join meetings from another client (mobile, web, etc.), this project will not see those status updates.
This project does not provide a general "Presence" color sensor
Log File Location
The application writes its log and panic files to %LOCALAPPDATA%\teams-status-rs (typically
C:\Users\\AppData\Local\teams-status-rs) as output.log and panic.log.
If the application cannot create this directory or file (due to permissions or environment), it will attempt to write
logs to the current working directory.
If started by Windows auto-launch (e.g., via registry), ensure the user account has write permissions to
%LOCALAPPDATA%.
If logging fails, no log file will be created and you may see a permission error in the Windows Event Viewer or a
message box.