More information for now can be found here: https://www.eliostruyf.com/diy-building-busy-light-show-microsoft-teams-presence/.
nvm use v12
cd ~/.nvm/versions/node/v12.15.0/bin/
homebridge -D -I -U ~/nodejs/homebridge/homebridge-presence-switch-msgraph/debug -P ~/nodejs/homebridge/homebridge-presence-switch-msgraph
The accessory
config could look like this:
{
"accessory": "presence-switch",
"name": "Presence Indicator",
"appId": "66204339-daf1-40fa-aa31-57342272edce",
"interval": 1,
"setColorApi": "http://127.0.0.1:5000/api/switch",
"offApi": "http://127.0.0.1:5000/api/off",
"onApi": "http://127.0.0.1:5000/api/on",
"startTime": "8:30",
"endTime": "18:00",
"weekend": false,
"statusColors": {
"available": {
"red": 0,
"green": 144,
"blue": 0
},
"away": {
"red": 255,
"green": 191,
"blue": 0
},
"busy": {
"red": 179,
"green": 0,
"blue": 0
}
},
"lightType": "",
"debug": true
}