Toggle Mute
For the entities to persist with the native HA integration, you will need to create the entities manually:
teams-status
application is closed. Otherwise, it will duplicate sensors.configuration.yaml
file, under the following section (add it if you do not have it):template:
- binary_sensor:
- name: "Teams Muted"
unique_id: "ts_a7703e21-2ae1-4af5-ba77-108f2462004a"
icon: "mdi:microphone-off"
state: "{{ None }}"
- name: "Teams Video"
unique_id: "ts_38dc82bf-bc6d-491f-84c1-9fbee02641a9"
icon: "mdi:webcam-off"
state: "{{ None }}"
- name: "Teams Hand Raised"
unique_id: "ts_9e7c62d5-5640-4cfb-8ff7-4eac9922030e"
icon: "mdi:hand-back-left-off"
state: "{{ None }}"
- name: "Teams Meeting"
unique_id: "ts_74837ead-9946-49c9-8aec-f25c0c031ec5"
icon: "mdi:phone-off"
state: "{{ None }}"
- name: "Teams Recording"
unique_id: "ts_493dcc2e-7cf6-456a-95b2-8cd029b2300c"
icon: "mdi:power-off"
state: "{{ None }}"
- name: "Teams Background Blurred"
unique_id: "ts_ae97f0dd-7dc3-4f9b-bfb4-ecbc30b8957b"
icon: "mdi:blur-off"
state: "{{ None }}"
- name: "Teams Sharing"
unique_id: "ts_402f1b21-5ad5-49d2-b451-2cf1e95cab65"
icon: "mdi:projector-screen-off"
state: "{{ None }}"
- name: "Teams Unread Messages"
unique_id: "ts_61500ecd-5f28-4be4-912d-a64f306fa0cc"
icon: "mdi:message-off"
state: "{{ None }}"
name
and friendly_name
should match what you have in the config fileunique_id
can be any unique identifierws://localhost:8124?protocol-version=2.0.0&manufacturer=AntoineGS&device=HomeAssistant&app=MS-Teams-Websocket&app-version=1.0
ws://localhost:8124?token=FDUHINFHUSIDHNFSDFUIDSFHNUDSI&protocol-version=2.0.0&manufacturer=AntoineGS&device=HomeAssistant&app=MS-Teams-Websocket&app-version=1.0
{
"meetingUpdate": {
"meetingState": {
"isMuted": false,
"isVideoOn": false,
"isHandRaised": false,
"isInMeeting": true,
"isRecordingOn": false,
"isBackgroundBlurred": false,
"isSharing": false,
"hasUnreadMessages": false
},
"meetingPermissions": {
"canToggleMute": true,
"canToggleVideo": true,
"canToggleHand": true,
"canToggleBlur": false,
"canLeave": true,
"canReact": true,
"canToggleShareTray": true,
"canToggleChat": true,
"canStopSharing": false,
"canPair": false
}
}
}
{
"requestId": 1,
"apiVersion": "2.0.0",
"action": "toggle-mute"
}
{
"requestId": 2,
"response": "Success"
}
{
"tokenRefresh": "529547bd-9f11-4a83-9204-0e655b00fd5e"
}
{
"in_meeting": "on",
"video_on": "off"
}
https://lostdomain.notion.site/Microsoft-Teams-WebSocket-API-5c042838bc3e4731bdfe679e864ab52a