Wednesday, October 12, 2016

Custom Cortana commands and Home-assistant.io

HassVoiceCmd

This is an Universal Windows Platform (UWP) application that bootstraps Home Assistant and registers each service/entity as custom Cortana commands.
Source code is in Gthub.com
UI is based on Template10

Requirements

This application was built with Microsoft Visual Studio 2015 Community Edition.
It requires Newtonsoft.Json.

How it works

You can run the application within Visual Studio, after launched.

Click the menu button and enter your Home-assistant web address, you can also enter a prefix word.
Click Save.
After bootstrapping, it display a list of all the available commands.

To call a command, just speak the prefix together with the phrase as shown in the UI.
For example: "Please turn on the garage light".

Improvements

At this time, it supports simple RESTful commands that require only passing the entity_id
XMLSerializer to properly generate UTF-8 text/file

1 comment:

  1. I like the idea and would be looking into it, though I would prefer some sort of executable if at all possible. I can't see myself downloading Visual Studio and then opening/loading it every time I start my PC.
    Is this at all possible?

    ReplyDelete