I yesterday started and finished (into a working prototype) a Cortana skill for the HABot. To the people who created HABot, WOW thanks, it made everything so amazingly easy. By no means it the Cortana skill finished, but way more than half way.
What I am looking for now are testers (I have 30 spots), and permission to launch it as an official channel for openHAB/HABot on the Cortana Skills Store once it is finished.
Its is built on the Microsoft Bot Framework, and right now I am hosting it (through my company) on Microsoft Azure. Basically what it does is create a “nice” login experience and forward queries to the HABot.
The code is (obviously) opensource (https://github.com/zealofzebras/cortana-openhab-skill).
Improvements to come:
- Better error handling
- Handling of Cards and not just text / voice
- If granted permission the login experience can be greatly improved if the bot is granted OAuth access to myopenhab.org since that can be automatically handled by Cortana and other channels (Basic auth is not preferred on those channels)
- Make sure everything is spoken and test the voice only interface on the Invoke
Questions for the maintainers and community:
- Since this is built on the Microsoft Bot Framework, and using standard items (and basically just transforming calls to HABot) it can be launced on Skype, FB messenger and a host of other platforms with basically one click. Are there an interest in that? That way HABot is instantly accessible on basically all communications platforms (like Phone, Text and Email if I can get the login experience to work properly)
My goal was to get Cortana to speak directly with openHAB and HABot made it possible in less than a day. Thanks for that.
(Btw everything is setup with CI, so feel free to make PR’s the results when approved will be instantly available on the channels)
Note on service: Since this is running on my company’s accounts everything is good so far, if the popularity suddenly explodes (and costs also) I retain the right to pause the service until I can figure something else out. (The bot channel runs on the free level now)
If you want to be a tester, DM your Microsoft account email, and I will enable the Cortana skill for you.