I wanted to control devices in my house using modes to set thermostats and arming my security system just by speaking to my Amazon Echo. What I found was I could do this by setting up HS events and HA-bridge devices to control house modes and run events based on the mode set. Below is a tutorial for others who are interested in doing the same.
A big thanks to HS user rmohsen for the help in getting me started
Since there is not a dedicated sub section for the HA-bridge I am posting it in the general section. Mods if this is not the right section, please move.
Requirements:Overview:
1. Create a virtual device in HS3 to use for setting house mode
2. Create events to control devices for house modes and set virtual device to desired house mode
3. Create devices on HA-bridge
4. Test
1. Create virtual device in HS3 to use for setting house mode
2. Create events to control devices for house modes and set virtual device to desired house mode
I will cover creating and configuring the "Home Mode" in this post.
Create 2 HS events. One will set the virtual occupancy device mode. The other will control devices based on the virtual occupancy mode setting.
3. Create devices on HA-bridge
In order to change the occupancy mode with Alexa, create a device in the HA-bridge that represents the mode. Now copy the following in the "ON URL" field replacing the <HS3_IP> and <EventID> with your own values:
http://<HS3_IP>/JSON?request=runevent&id=<EventID>
To get the EventID number, run the following replacing the <HS3_IP> address with yours: http://<HS3_IP>/JSON?request=getevents
Example output:
{"Group":"Home","Name":"Home Mode for Alexa","id":3584}
Now replace <EventID> with the event you want to run. In my case this would be the "Home Mode for Alexa" event (3584).
Now re-initialize the HA-bridge
Go to the Echo configuration web page or use the Alexa app and tell Alexa to discover devices. The new devices should show up in your smart home devices.
4. Test
Now you can say "Alexa, Turn on Home Mode". Alexa will respond "OK" and the virtual occupancy device will be changed to "Home" mode by the HS event "Home Mode for Alexa". Then the HS event "Home Mode" will trigger and control the devices that you set up for that event.
Hopefully this post will help those like me who were confused about how to accomplish controlling HS events using Amazon Echo.
Thanks,
Andy
A big thanks to HS user rmohsen for the help in getting me started
Since there is not a dedicated sub section for the HA-bridge I am posting it in the general section. Mods if this is not the right section, please move.
Requirements:Overview:
1. Create a virtual device in HS3 to use for setting house mode
2. Create events to control devices for house modes and set virtual device to desired house mode
3. Create devices on HA-bridge
4. Test
1. Create virtual device in HS3 to use for setting house mode
2. Create events to control devices for house modes and set virtual device to desired house mode
I will cover creating and configuring the "Home Mode" in this post.
Create 2 HS events. One will set the virtual occupancy device mode. The other will control devices based on the virtual occupancy mode setting.
3. Create devices on HA-bridge
In order to change the occupancy mode with Alexa, create a device in the HA-bridge that represents the mode. Now copy the following in the "ON URL" field replacing the <HS3_IP> and <EventID> with your own values:
http://<HS3_IP>/JSON?request=runevent&id=<EventID>
To get the EventID number, run the following replacing the <HS3_IP> address with yours: http://<HS3_IP>/JSON?request=getevents
Example output:
{"Group":"Home","Name":"Home Mode for Alexa","id":3584}
Now replace <EventID> with the event you want to run. In my case this would be the "Home Mode for Alexa" event (3584).
Now re-initialize the HA-bridge
Go to the Echo configuration web page or use the Alexa app and tell Alexa to discover devices. The new devices should show up in your smart home devices.
4. Test
Now you can say "Alexa, Turn on Home Mode". Alexa will respond "OK" and the virtual occupancy device will be changed to "Home" mode by the HS event "Home Mode for Alexa". Then the HS event "Home Mode" will trigger and control the devices that you set up for that event.
Hopefully this post will help those like me who were confused about how to accomplish controlling HS events using Amazon Echo.
Thanks,
Andy
Comment