Cortana (Xbox, Windows (Phone/OS) Integration (with Simple SmartThings App)

I might just get back into programming just for this, perhaps if I get some support with command structures that ST works with so I can look into creating a voice command definition file for an Xbox background app for ST that takes voice commands from Xbox and passes it to ST hub to execute on any of its connected devices one is trying to interact with. The feedback from ST hub will also be returned to the background app and on to Cortana to render as desired (audiovisually). And Since Xbox One apps can be Universal Windows Platform (UWP) apps, it can be installed across any current Windows platform (they all have Cortana anyway, althought I’m more interested in Xbox and perhaps phone). It will be great if the existing official SmartThings app from Samsung can be extended to do this, but whatever, I guess. The more platforms that support ST, the better. Meanwhile:


I would be down to work on something like this. I have 2 XB1’s and about 15 Windows 10 devices so getting this working with Cortana would be nice

1 Like

Wow! That’s a ton of devices. Lol. Sounds good, we can certainly work together. Are you in anyway an ST insider? We’ll need to start gathering required details for the voice command definition file.

I am also looking into (wireless) microphone integration options placed around the house and connected to the Xbox so one can issue voice commands from anywhere in the house and really do centrally managed HA right.

SmartThings developer docs will come in handy as well:

I would be interested in this as well. I am currently resisting getting an Echo to wait for a MS Cortana solution. I have heard there is a Cortana speaker coming. But I would really like this to be on the Phone-Tablet-xBox as well. We have an Xbox Windows 10 phone and 5 W10 tablets in the house. We just bought a Fire to control the ST via the Smart tiles but having a Cortana version would be great.

I did briefly try the “Triggers” app and it worked, but my ST was brand new and I truly had not figured out how to properly use it yet. By the time I had worked out the uses and processes for it, the triggers app was gone. :cry:

I like to think I know my way around quite well :slight_smile: I am the creator of Nest Manager

If you are a developer the project is trivial:
Smartthings have “Web services smartapps” infrastructure in place.

You can “expose” all your devices with few line of groovy (sigh) code and just hammer the ST servers with what you need:
curl -H "Authorization: Bearer " "/switches"
would return plain JSON like
[{“name”:“Kitchen 2”,“value”:“off”},{“name”:“Living room window”,“value”:“off”}]
and control them:
curl -H "Authorization: Bearer " -X PUT "/switches/on"
I was thinking about writing a GUI for the XBOX, WebOS tv and Kodi but not being able to publish the Smartapp on a public repository really killed my enthusiasm about it.

Sorry, I could not respond yesterday since this site prevented me because there is a limit to how much new members can post. Yes, here is the Cortana-enabled Harman/Kardon speaker scheduled for release this year: . I’m assuming ST Cortana integration will kick off then and easily extend to Xbox or something since most of the code behind would already be done so they can just add a UI/UX to it if needed (for at least configuration pages) while keeping it as a background conduit-like app.
I just don’t get why existing center of the home devices such as the millions of Xbox units out there are not front and center in HA voice commands already.

1 Like

Great information! Although I’ve never heard of the “groove” programming language until yesterday as I looked into the ST dev docs. Interesting! I’m still looking into how apps will interact with ST and get all necessary details such as devices, rooms, routines, etc to quickly get up and running once the app is installed and set up on the Xbox to interact with the ST hub.

1 Like

Looks like an interesting project… I’d be keen to know what would or could be passed to ST from the app… “Groovy” is basically a variant of Java if you have any experience there…

For reference Ask Alexa or Google Helper developed by @MichaelS which is the Echo integration is probably the closest to what you want to achieve… I assume it’ll “just” be a different integration point… Tagging Michael in case he has any interest, although expect he’s already got a lot on his plate with both Google and Amazon integrations!

Also see the code from @N8XD which I think kicked off the Alexa integration, perhaps a good starting point…

Insteon already has Cortana integration as part of its base functionality. The MS store even sells their hardware directly.

However I have heard they have connection and other issues as wells as less integration with third party devices so last year I made the decision to go with ST. I know a couple who use Insteon and other than the investment of using their stuff they are happy and the Cortana works as advertised. So seems like we are just waiting for someone to develop this connection. I use Cortana on most of my devices. Xbox is still limited so we use it for mostly game stuff, but on my Phone PC and tablet I use it daily for all sorts of stuff, similar to what we would use Echo for, If I could ask Cortana to arm or disarm that would make me very happy.

I would be willing to Pay for this, but I am not sure how many others there who use this. Alexa seems to have cornered the market al least for now. As usual MS has a better product, but 2 years behind the competition

Insteon products are generally problematic as many of their users have come to realize and have been moving away from it. Too bad they are the ones that have embraced the Xbox, which is a powerful machine just sitting in most living rooms waiting to be leveraged for HA and other things outside of gaming and entertainment. And I know MS will gladly work with the SmartThings folks to get a SmartThings app out for this purpose in no time.

Nice! I will certainly look into the rest of this. So far, I have been looking into the voice command file and find that it certainly looks good but unsure what I will need from it as the Cortana voice command file I have seen and have been working on needs much less. For example, no need for Operands, Operators, Inquisitors, etc. I guess those are taken care of by Cortana. Here’s an example in simple XML-based as, being what is needed in the Cortana voice command file:

SmartThings Show Security Status
<Command Name="whatIsSecurityStatus">
  <Example> What is The Current Security Status </Example>
  <ListenFor RequireAppName="BeforeOrAfterPhrase"> what is the [current] security status </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> what is the [current] {builtin:AppName} security status </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> cancel [{builtin:AppName}] security status </ListenFor>
  <Feedback> Canceling security status... </Feedback>
  <Navigate />

<Command Name="whatIsTheIndoorTemp">
  <Example> What is the current temperature?</Example>
  <ListenFor RequireAppName="BeforeOrAfterPhrase"> what is the current [indoor] temperature</ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> what is the  current {builtin:AppName} temperature </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> cancel [{builtin:AppName}] current temperature </ListenFor>
  <Feedback> Cancelling current indoor temperature...</Feedback>
  <VoiceCommandService Target="SmartThingsVoiceCommandService"/>

<Command Name="open">
  <Example> Open (garage) door </Example>
  <ListenFor RequireAppName="BeforeOrAfterPhrase"> open {room} {device} </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> open {builtin:AppName} {room} {device} </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> cancel open [{builtin:AppName}] {room} {device} </ListenFor>
  <Feedback> Cancelling [{room}] {device}... </Feedback>
<VoiceCommandService Target="SmartThingsVoiceCommandService"/>

<Command Name="close">
  <Example> Close (garage) door </Example>
  <ListenFor RequireAppName="BeforeOrAfterPhrase"> close {room} {device} </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> close {builtin:AppName} {room} {device} </ListenFor>
  <ListenFor RequireAppName="ExplicitlySpecified"> cancel close {builtin:AppName} {room} {device} </ListenFor>
  <Feedback> Cancelling close [{room}] {device}... </Feedback>
<VoiceCommandService Target="SmartThingsVoiceCommandService"/>

<PhraseList Label="room">
  <Item>Main Living Room</Item>
  <Item>Dining Room</Item>
  <Item>Powder Room</Item>
  <Item>Second Floor Stairway</Item>
  <Item>Second Floor Hallway</Item>
  <Item>Master Bedroom</Item>
  <Item>Master Bathroom</Item>
  <Item>Kids Bathroom</Item>
  <Item>Bedroom 1</Item>
  <Item>Bedroom 2</Item>
  <Item>Basement Stairway</Item>
  <Item>Basement Living Room</Item>
  <Item>Laundry Room</Item>
  <Item>Basement Bathroom</Item>
  <Item>Basement Bedroom</Item>

<PhraseList Label="device">
  <Item>Sony Speaker</Item>
  <Item>Front Door Sensor</Item>
  <Item>Back Door Sensor</Item>
  <Item>Kitchen Window Sensor</Item>
  <Item>Living Room Window Sensor</Item>
  <Item>Philips Hue Ambiance</Item>
  <Item>Reading Light</Item>
  <Item>Recessed Light</Item>
  <Item>Front Yard Camera</Item>
  <Item>Back Yard Camera</Item>
  <Item>Front Door Lock</Item>
  <Item>Back Door Lock</Item>
  <Item>Table Lamp</Item>
  <Item>Garage Door</Item>      

<PhraseList Label="routine">
  <Item>Good Morning</Item>
  <Item>Good Night</Item>
  <Item>I'm Back</Item>
1 Like

A great Cortana foundation (keep in mind, we are not trying to launch an app, more of a background conduit app between Xbox and ST hub, starts at the 38th minute mark):

because Microsoft…and, in this case, because Samsung/Smartthings
The Microsoft UWP apps (Universal Windows Platform aka write once execute everywhere) works flawless on the xboxone. The whole network stack is there and full access to internet: too bad they didn’t want developers to publish on the store. On the other hand Smartthings already have everything implemented ready for developers to access every device connected to the hub but again they didn’t let developers publish on their store.
Note for the layman: if a platform have a store is pretty much impossible running anything else if you dont have developer superpowers. Really iimho there are no technical reasons.
I’m sorrt. Im going back to sleep.

I find that hard to believe because there are other apps that do voice commands on the Xbox directly with other products. I learnt Insteon has theirs as well as two others I am aware of that don;t meet the needs we seek here. Except if you have further details you are yet to share, there is no reason why a perfectly fine app that does not violate security and privacy concerns will not be allowed onto the store. It just does not compute. More clarifying details as to exactly why what you said may be the case will be appreciated.

1 Like

Microsoft promised to make UWP apps running on every device (when Windows phone were still a thing the holothing video were all over internet and they were completing the xboxone shift to windows 10 infrastrucure).
I am super impress by how complete the framework is:it is a joy watching apps running without any modification on the xbox
[ - YouTube ]
but they didn’t let me access the relative store (6 months ago).
I’m a developer and I have a couple of apps in the Microsoft app store but last time I checked (again, months ago) Microsoft didn’t allow me to publish UWP apps for the XboxOne without being “x big company” and, at the time, they were specifically looking for games.
It is really possible that the store is now open to Joe Schmo developers.
I’m (slowly) porting my apps to UWP, I let you know if something changed.
I apologize if I’m wrong and for the tone of my past posts: I’m always a bit bitter when as a developer I get frustrated by (usually obscure and unexplained marketing decisions).

Ok, I get your point and yes that was the case a while back. However, now the language has changed from just “games” to “games and apps”. And UWP apps are now a part of the options even during sign up for ID@Xbox (Independent Developer). Check it out at

Getting started dev info:

1 Like

Excellent: I already deployed a couple of application on the XBOXOne.
I could write a Smartthings remote in few minutes querying a websmartapp.