I’m looking for a way to use my Microsoft Teams presence status in OpenHAB to change the color of a fibaro plug led.
It’s time for home office and then the kids could see, when it’s possible to enter the office…
Yesterday I’ve read something about Microsoft Flow, to automate tasks. Perhaps you can use this to create a rule sending openhab messages with the status?
I believe the status variable is exposed in ActiveDirectory. An experienced windows developer should be able to pull that and format to JSON or similar output for youth consume in OH.
I could imagine that is will be a bit complicated. As far as I know, you would need to have an OpenHAB app in Teams. Meaning it needs to get certified from Microsoft. And this app would then need to talk to the OH cloud instance…
I thought about a similar solution (light indicating ‘Do not disturb’) status and using presence indication from Teams or Skype. The reality is: I don’t not only use Teams for communicating, I do phone calls, Zoom Sessions, Skype and other stuff which won’t be reflected in my Teams status. What I do: if my office door is closed, it means “Please knock once, if I don’t answer I’m busy”. If the door is not closed, anyone can enter. This works very well for my homeoffice. I can’t see a comprehensive technical solution that does the same thing.
There exists an Windows store app called “Presence Light” which can directly control philips hue or LIFX lights according to your Microsoft Teams status.
(In my case this app had to be approvced by our IT admin - because it reads out sensible data from our Active Directory/O365.)
Additionally there exists an API tab in this app, where the status can be set via GET or POST requests to other systems like IFTTT. If it works also to set/change an OpenHAB item - I don’t know so far. I just got the admin approval.
(Adding back a reply that was lost due to the failed forum upgrade)
I use this Powershell script to update an openHAB Item with my Teams status. Instead of calling another script at the end I just contact the openHAB REST API to set the Item.