百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

teams-status-rs

> 编程语言
开源

设置 - 下载 teamstatus.exe 从https://GitHub.com/AntoineGS/teams-status-rs/向运行"新团队"的Windows计算机发布..

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

设置 - 下载 teamstatus.exe 从https://GitHub.com/AntoineGS/teams-status-rs/向运行"新团队"的Windows计算机发布..

Setup

  • Download teams_status.exe from https://github.com/AntoineGS/teams-status-rs/releases to your Windows computer that runs the New Teams client
  • Launch the application, it will generate the ini file (conf.ini) in the same folder as the .exe
  • Use Windows Task Manager (Details tab) to end the 'teams_status.exe' process
  • In Microsoft Teams, enable the Third-Party API (see Microsoft documentation)
    • 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
    • HA (Home Assistant)
      • Set the URL Home Assistant URL usually has this format: http://Your_HomeAssistant_IP_Goes_Here:8123
      • In Home Assistant, generate a Long-Lived Access Token (see HA documentation)
        • Paste it into the conf.ini
      • 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.

Example Data

API Connection Prior to Getting Token

ws://localhost:8124?protocol-version=2.0.0&manufacturer=AntoineGS&device=HomeAssistant&app=MS-Teams-Websocket&app-version=1.0

API Connection With Token

ws://localhost:8124?token=FDUHINFHUSIDHNFSDFUIDSFHNUDSI&protocol-version=2.0.0&manufacturer=AntoineGS&device=HomeAssistant&app=MS-Teams-Websocket&app-version=1.0

Teams -> Client Update

…

Client -> Teams Request Toggle Mute

json
{
  "requestId": 1,
  "apiVersion": "2.0.0",
  "action": "toggle-mute"
}

Teams -> Client Request Confirmation

json
{
  "requestId": 2,
  "response": "Success"
}

Client -> Teams Token Refresh

json
{
  "tokenRefresh": "529547bd-9f11-4a83-9204-0e655b00fd5e"
}

MQTT

json
{
  "in_meeting": "on",
  "video_on": "off"
}

Reference Document (for legacy Teams)

https://lostdomain.notion.site/Microsoft-Teams-WebSocket-API-5c042838bc3e4731bdfe679e864ab52a

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言