homebridge-presence-switch-msgraph v1.5.0-beta.5011256
Presence switch connected to Microsoft Graph
More information for now can be found here: https://www.eliostruyf.com/diy-building-busy-light-show-microsoft-teams-presence/.
Info: Since verions
1.3.0the plugin added state switches. These switches can be used forHomeKitautomation. You can still use the API approach as well. This now supports theDo Not Disturbmode as well.
Config
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
},
"donotdisturb": {
"red": 149,
"green": 0,
"blue": 0
},
"<activity>": {
"red": 255,
"green": 0,
"blue": 0
}
},
"lightType": "",
"debug": true
}Since version 1.3.0 the plugin contains 5 state switches:
- Offline
- Do not disturb
- Busy
- Away
- Available
These switches can be used in HomeKit automation. If you use these, you do not have to set setColorApi, offApi, and onApi. Config could look like this:
{
"accessory": "presence-switch",
"name": "Presence Indicator",
"appId": "66204339-daf1-40fa-aa31-57342272edce",
"interval": 1,
"startTime": "8:30",
"endTime": "18:00",
"weekend": false,
}Local development
npm install -g homebridge homebridge-config-ui-x
nvm use v12
cd ~/.nvm/versions/node/v12.20.0/bin/
homebridge -D -I -U ~/nodejs/homebridge-presence-switch-msgraph/debug -P ~/nodejs/homebridge-presence-switch-msgraphUseful links
2 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago