I am trying to use Microsoft Teams to control Raspberry Pi Devices.
Basically I imagine I will write an app to run on the raspberry pi. When it is run the Pi will turn up in the the Microsoft team and say 'hello my ip address is 192.168.x.x' The Pi's have lights attached to them so I want them to listen to the conversation and accept commands via mentions. e.g. @pi turn light on or similar.
I have been reading the Microsoft Teams bot's API. https://msdn.microsoft.com/en-us/microsoft-teams/custombot
It's all very interesting but I am not sure if a custom bot is what I want:
- A custom bot requires a callback url. My Pi's are behind firewalls so this is impossible. They will need to poll somewhere and retrieve messages.
- I don't want to have to develop (and then pay for and maintain) a gateway webapp to get around 1.
Is a custom bot the right way to go or do I need to write a Microsoft teams client to run on the Pi's?