Addons for IoTLink
This Addon watches the MS Teams log file for status changes
Changes:
- Initial Release: 0.0.1
Extract the contents of MicrosoftTeamsMonitor_0.0.0.x.zip to:
%ProgramData%\IOTLink\Addons\
.
This should create a folder named .\MicrosoftTeamsMonitor
Edit config.yaml and change:
logfile:
Point it to your Teams log file. Typically: C:\Users\YOUR-USERNAME-HERE\AppData\Roaming\Microsoft\Teams\logs.txt
.
You can obtain the full path by running this in PowerShell as the user who's status you'd like to monitor with IoTLink:
Write-Host $env:APPDATA\Microsoft\Teams\logs.txt
I tried to include code to enable MQTT Autodiscovery in Home Assistant, but I haven't tested it as I don't currently run MQTT Autodiscovery.
MQTT Topic:
PREFIX/CLIENTID/microsoft-teams-monitor/status
PREFIX = 'prefix:' from %ProgramData%\IOTLink\Configs\configuration.yaml under 'General MQTT Settings'
CLIENTID = 'clientId:' from %ProgramData%\IOTLink\Configs\configuration.yaml under 'General MQTT Settings'
NOTE: If you leave the 'clientId:' blank I believe IoTLink uses a combination of WORKGROUP/HOSTNAME
sensor:
- platform: mqtt
name: My Teams Status
state_topic: "iotlink/workgroup/hostname/microsoft-teams-monitor/status"
value_template: "{{ value }}"
icon: mdi:microsoft-teams