Siri Commands to Eventghost with the Apple Watch
The Apple watch is an amazing piece of hardware but out of the box with no modifications it and limited technology knowledge, it’s way overpriced. Most users use it as a notification device. Let’s talk about:
The best parts about it:
- It’s semi waterproof (they don’t just want people to swim in chlorine and the sea with it)
- it has great apps already (with the exception of facebook)
- Definitely lasts a day of heavy use (I’ve confirmed this)
- The screen is beautiful
- The microphone is great. It’s not perfect as it does make more mistakes than my iPhone.
The downsides are:
- The price
- The battery doesn’t come close to the pebble
- There are some quirks that I want to see fixed which I will list at the bottom in case any Apple employees are looking at this article.
How to connect the Apple Watch Siri to EventGhost or Tasker to control everything
Siri on your watch has tremendous power to control your life. Once you can get your text from the watch to your PC you can do just about anything. Until Assistant+ for the iPhone the ability to control what happened with Siri was our of our control. Since Apple has made the Apple Watch Siri separate from the iPhone Siri we can’t take advantage of the tweak. Until now…
Warning
This tutorial isn’t for everyone as it’s complex, requires a ton of patience and some determination. That said, once you do it you don’t need an Amazon Echo, tablets all over the house talking to you, etc. All of it can be controlled for your watch.
Why should you do it?
The Apple Watch Siri restricts you from sending email, querying websites, and requires the dreaded ‘handoff’. I want my watch to do everything while leaving my phone in my pocket. I currently control my iTunes Windows PC by searching with my voice for music but you can literally DO ANYTHING. You could combine it with scraping software like kimono labs, vera for home automation etc. You could get an image from your webcams and email it to yourself (the Watch Mail app lets you view images).
Two Versions of this solution:
A. For those Canadians with no international texting:
- A separate jailbroken iCloud iOS device running iOS 7-8 (I’m using an iPad)
- A gmail account (free)
- Zapier (free)
- Slight php knowledge (priceless) with access to a server
- An always on (or when you want the commands) home PC with EventGhost and Autoremote installed. You could also send messages to an Android device with Tasker and Autoremote installed instead.
*For more detailed instructions see below
B. If you have a US Texting Plan
- Setup a new user called Jarvis and with the phone number of IFTTT when you setup the SMS channel
- Setup ifttt.com with the SMS trigger and then to a Maker Web request which will be your EventGhost URL with AutoRemote installed. This is a way cleaner solution.
* Basic Canadian Number Workaround Outline
- Create a new contact in your contacts called whatever. I used ‘Jarvis‘. This mobile number is your own.
- Install iForward onto your always on iCloud device (I used an iPad) to forward messages to your gmail account.
- Go to your Zapier account and set up a new zap from an Zapier email to a WebHook (Post). The webhook will go to a webserver that will parse the command for the actual Siri command and then forward the resulting command to your Android device or Eventghost PC.
- Your webserver will look something like:[reveal title=”Webserver Script PHP To Parse The Command” open=”false,true” color=”grey-lite”]<?
//get message
function get_string_between($string, $start, $end){
$string = ” “.$string;
$ini = strpos($string,$start);
if ($ini == 0) return “”;
$ini += strlen($start);
$len = strpos($string,$end,$ini) – $ini;
return substr($string,$ini,$len);
}
$message= $_POST[‘message’];
$fullstring = $message;
$fullstring= str_replace(array(“\r\n”, “\r”, “\n”), “”, $fullstring);
$parsed = get_string_between($fullstring, “5555555555): “, ” New SMS at “);
$parsed = urldecode((string)$parsed);
switch ($parsed){
case $parsed==”Play music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Play’ ) ;
break;
case $parsed==”Play some music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Play’ ) ;
break;
case $parsed==”Pause music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Play’ ) ;
break;
case $parsed==”Pause the music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Play’ ) ;
break;
case $parsed==”Next song”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Next’) ;
break;
case $parsed==”Play next song”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Next’) ;
break;
case $parsed==”Play next song”:
header( ‘Location: http://myurl/touchcontrol/json/executebutton?device=Macros&button=Next’) ;
break;
case $parsed==”Play slideshow”:
header( ‘Location: http://myurl/touchcontrol/json/executebutton?device=Macros&button=CPUs%20slideshow’) ;
break;
case $parsed==”Start slideshow”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=CPUs%20slideshow’ ) ;
break;
case $parsed==”Start a slideshow”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=CPUs%20slideshow’ ) ;
break;
case $parsed==”Play dance music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=dance’) ;
break;
case $parsed== “Play kids music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Kids%20Music’ ) ;
break;
case $parsed==”Play radio”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=radio’ ) ;
break;
case $parsed==”Play the radio”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=radio’ ) ;
break;
case $parsed==”Turn on sound bar”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=powersoundbar’ ) ;
break;
case $parsed==”Turn on the sound bar”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=powersoundbar’ ) ;
break;
case $parsed==”Turn on the TV”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=powertv’ ) ;
break;
case $parsed==”Turn on TV”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=powertv’ ) ;
break;
case $parsed==”Turn on the amp”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Power%20Amp’ ) ;
break;
case $parsed==”Turn on amp”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=Power%20Amp’ ) ;
break;
case $parsed==”Play top 40″:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=uktop40’ ) ;
break;
case $parsed==”Play the top 40″:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=uktop40’ ) ;
break;
case $parsed==”Play the top 40 music”:
header( ‘Location: http://myurl:33/touchcontrol/json/executebutton?device=Macros&button=uktop40’ ) ;
break;
default:
header( ‘Location: http://myurl:33/?message=’.$parsed ) ;
break;
}?>[/reveal] - Setup the Gmail account with a custom filter to forward that message to your new Zapier email account trigger (you’ll need to setup a new forwarder email address). I set it up to delete all the other “New Incoming SMS’ Message to the trash. That way you only keep the commands said from Siri, but I also don’t want to see them so I set them to ‘archive it’ in the filter.
For those of you that can do this already without further instruction, get to it. Otherwise, follow AutomationDude.com on Facebook and I’ll give you more instructions with the code I used.
- Published in Apple Watch, Siri
Talking Tablet Recipe
Software or Services Used
Tasker, AutoNotification, IFTTT
Hardware
Any > 4.0 Android Device
Possible Uses
- Welcome home “Hello Rod”
- Tell you the weather
- Tell you what’s happening around you
- Notify you of any earthquakes
- There is motion in another room
Warning
This can get annoying for the people around you if this feature isn’t used sparingly or used when ONLY you are around.
Method for the earthquake example
1. Setup Tasker
- Download AutoNotification
- Create a new AutoNotification Plugin State within Tasker
- Select your filter command (ie. earthquake)
- Enter the task with the ‘Say’ command
- Enter a new task (named earthquake)
- Enter text New Earthquake %ancomm
2. Setup IFTTT to send an Android Notification
- You will need IFTTT installed
- Make a new RSS trigger with : http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_day.atom
- New android Notification
Conclusion
You can get your tablet to respond to anything you would like. This could also be used as craigslist notifications to your devices.
Recipe: Turn LED Strip Red Before an Appointment
Software Used
Zapier, AutoRemote, Tasker, Smart Remote(app)
Hardware Required
IR android device, LED Strips
Steps
- Begin with creating a new Zapier task that has:
Trigger: Google Calendar and Event Start
Action: AutoRemote and New Message - Under #4 Only trigger an event start from Google Calendar when:Time before: 45 minutes
- #5 Enter the text that you will create a new filter for in your Android IR device to launch the task.Ie. turnonleds
- On your Android device open Tasker and create a new ‘profile’ ‘state’ ‘plugin’ ‘AutoRemote’
- Edit with the command text you picked
- in the Task you would add the ‘plugin’ for Smart Remote and pick your action.
- In your Task Edit wait a few minutes then turn them on
All Done!! Now every time you have a new appointment you will be notified through LEDs!
- Published in AutoRemote, Recipe, Tasker, Zapier
Multiroom Audio Compared | Sonos Airfoil MultiRoom Amp
Introduction
There are several ways to automate your music at home. There are several purposes for this:
- You wake up in the morning and want the local radio station to play while you’re getting ready.
- You want weather news/radio while getting dressed.
- You want new spotify workout music play when you enter the gym at 730pm
- You want the music to lower volume (or turn off) when your wife enters the room.
- You want a scene for a dance party to play all over your house.
- You only want your living room and basement playing music.
Your Options
There are many options to do it. They are:
- Sonos
- Control4, Crestron
- Airfoil
- Moxivo
- Multi-room Receiver with amps built-in
- XBMC and Airplay
- Bluetooth Receivers to Speakers
Each provide unique advantages and ease of use along with different levels of quality. It goes without saying that using WiFi to sync audio around your house is pretty much a bad idea. WiFi can be spotty at times, routers can get slow and things aren’t reliable. Always aim for a wired solution.
Option 1: Sonos with their speakers
Cost
For comparison of all the products we will use an example of 6 rooms.
You need: 1 Sonos Bridge and 6 ZonePlayers like the Play:1 (At least) I would have at least 1-3 speaker per room. The Sonos system also lets you add more than one in a room for stereo sound.
Calculation: (219 (speakers) X6 +50 (bridge))=$1364 (depending on source)
Advantages:
- Sonos is the easy way. Plug them in and download the app and begin.
- You can easily integrate Sonos with most automation systems very easily.
- They have several options for integrating your system with the major hubs. There are plugins available.
- This one works well with Tasker: Macronos for Sonos
- Easy to plug into Connect, Play:5 and Connect AMP to listen to another source
Disadvantages
- A lot more expensive than Airfoil, Moxivo and on par with some Multiroom (craigslist) amp solutions
- Can’t be in the wall (not a clean install)
- Not really easy to expand VS using a CPU with airfoil or XMBC to locally play video files to the same speakers
Option 2: Control4 and Crestron
These solutions are by far the most expensive and are very hard to really compare to these others. A 6 room system will definitely cost you $XXXX.00. You will not have to think about the technical aspects of it. You get get a Rep to come in and do it for you.
Advantages
- It gets done for you.
- The sound is great and integrated perfectly the way YOU want it right from the install.
- If you have a problem you call someone in to fix it (also a disadvantage).
Disadvantages
- The huge downside to this is integration with other products you want to add to your system you can’t unless you get one of their reps to do it.
- The three people I know with these systems are extremely happy with the results but they all don’t want to call a rep back in for extra work. This is for the automator with cash.
- From my knowledge there is no GET API to integrate third party products. To me this is a deal breaker but I already thought that by the price.
Airfoil | A great AirPlay app for every platform
What is it?
Airfoil is an app you can install on your PC or Mac and have it transmit any audio source from your PC to any AirPlay or Airfoil Speakers. You can install Airfoil speakers on almost every platform. Therefore you can have an instant multiroom audio setup almost instantly if you have tablets, phones and PC’s already in each room.
Cost?
- This is where it gets tricky. You need a license for your Windows and Macs. Once you purchase those you can download the free airfoil speakers apps and begin.
- Approximately 50-80 dollars in apps/licenses + Your cost in purchasing other tablets, PC’s etc.
Advantages
- Depending on the type of AirPlay device there is latency time that can make or break the audio experience. Using Airfoil and Airfoil Speakers keeps that in check.
- Great support
- Very easy
- Easy to select different sources on the PC (spotify)
- Has an API to create scene based selectors for certain airplay devices
- Cheap
- Can also then send audio TO any speaker easily using an iPhone since they are all airplay speakers.
- If you could hardwire all your PC’s and MAC’s to and use Airfoil Speakers then it could be slick.
Disadvantages
- If you have a busy wifi network and are using wifi only with this you will not be happy
- Different AirPlay speakers have different timing to output and you can hear it
Option 4: Moxivo | MultiRoom Audio through your Phone System
What is it?
It’s a cable to use your regular old school phone jack as an audio network throughout your house. You plug your source into the wall using the RCA or HEADPHONE to rj-45 and then plug in any powered speakers throughout the house anywhere there is a phone plug. Most houses have them in everyroom which makes this a really easy solution.
How would we make this smart?
Logitech computer speakers once plugged and powered on (with the button) in will stay on as long as there is power. The goal would be to power off the speaker that you are not using a AC Z-wave Switch. That way you could easily create scenes which control the rooms just by turning power on and off to each ‘speaker’.
Cost of 6 rooms
- 7 cables (40 bucks)
- CPU (you probably have one that you already control your music with)
- Logitech speakers (30 each on craigslist for decent 2.1 sound)
- Z-Wave AC 6 pack (100)
- Total: $320
Advantages
- Cheap
- Using already there phone system
- Easy to create audio scenes as you just control the power to the speakers in your automation hub
- Use your existing app to control the CPU music
- You could get premium speakers and also double up them for other uses in each room.
Disadvantages
- No automatic control of audio sound level as you have to manually change it by the physical dial in each room. It’s either ON or OFF.
- If there is noise on your phone line network it’s going to come through on your speakers.
- Not digital sound straight to the speakers (digital to analog).
Option 5: Multi-Room Amplifiers with 6 zones and Remote Control of them
Cost
A sample can be found on craigslist to control 6 zones. This one is $800 and then you’ll need to buy speakers. Since you do not need an amplifier you can just get any speakers you want to use and thus the sound will be of much higher quality and also has the potential to be a cleaner finish than say having stereos (with amps everywhere). MonoPrice.com in ceiling speakers can run around $50 each for the pair so you’re looking at $300+800+60(for cable)=$1160.
Advantages
- Potential to have the best sound VS the Sonos, Airfoil and Moxivo
- Cleaner in-wall finish if you choose to go this route
- There are more expensive models but this one is a reasonable solution.
- New builds should go this route
- Can be controlled with an app, or IR tablet
Disadvantages
- More expensive
- Need to run the speaker cable everywhere where you want speakers from the source.
- Not really a retrofit solution.
Option 6: XBMC/KODI with Airplay
XBMC (Or Kodi) is an amazing open sourced media solution. It allows you to share the same media source throughout the home. It also has an Airplay feature so you can turn any XBMC server into a speaker that can be selected.
Cost
The cost is all in the devices that you choose to run XBMC and if they have speakers you’ll need to get some.
- 6 XBMC Amazon FireTV‘s will cost 600. These will get you six locations around your home that you can then run a screen on and have a sound bar to.
Advantages
- Can have one shared server with a shared database to combine your audio and video solution. It will be seamless and it’s what I use for my video.
- Your audio should be synced properly as long as all your devices are wired to a decent router.
- Easy to setup the Airplay solution.
- Can then stream any source form an iOS device to any room. Could also use the video option this way.
- This is my favourite solution since Tasker can be added to android boxes making this very easy to control.
Disadvantages
- Might be expensive if you have to purchase 6 screens, 6 sound bars along with 6 android boxes
Option 7: Bluetooth Speakers
This option is very flexible and can retrofit any situation into a multiroom setup. The basics are as follows:
- Add Bluetooth receivers or Bluetooth speakers around where you want to have music
- Pair them to your audio source (will need Bluetooth) and then select where you want the music to play
Advantages
- Cheap
- Retrofit any situation
- Moving around speakers is easy
- Doesn’t need a complicated API
- Could easily integrate with Tasker to turn the bluetooth connection on at any moment
- You could use a Bluetooth receiver and then plug in a more expensive audio system.
Disadvantages
- Most Bluetooth speakers don’t usually have good bass
- Could not sync properly with all your rooms. You are at the mercy of the devices Bluetooth transfer rate and timing.
Conclusion
There are a lot of options and I probably missed a few but those are the majority of the decently priced options. There are always more expensive options with the multiroom receivers but based on the above my current solution is a combination of XBMC and AirFoil. I need the ability to display any video in any room and having a screen in each room with a media center there is easy to interact with using all the apps Android has. Airfoil gives me the ability to use iTunes as my server app and I can use AirFoil and scripts to select speakers when I walk into rooms (using iBeacons). I have a friend who uses the amp route and his sounds far better than my current Airfoil setup. It comes down to what your situation is and thinking about what you want to do with it. If you are looking to extend into one or two extra rooms you might want to go with the bluetooth option and see if that works for you.
Either way, let us know what you think in our forums below and if you think there is a better solution. Don’t forget to signup for our newsletter and Facebook page to get the latest updates and deals.
[bbp-single-topic id=3920]- Published in Audio
Which Home Automation Platform Do I Start With?
SmartThings VS Wink VS Vera VS Insteon VS Aeon USB Stick VS Tasker
Below is a comparison of the current major players in the home automation world. Since this is just getting competitive now the prices are still somewhat high. Prices will drop with the more entrants into this game. Ideally you have a box that isn’t dependant on a server but if price is an issue than you can try a different route (such as a USB stick or Tasker). Things to look for: Open API’s, Apps, Plugins, Z-wave, Wifi, Zigbee, Google Now or HomeKit Integration (iOS), Android Wear and iOS ‘Watch’ apps. Technologies: Z-wave is the technology you should be looking for as it has the biggest product catalog support and it’s extremely secure. BLE may be the future but right now the current future isn’t as developed as it should be. Zigbee is great but you are limited in the type of products you can purchase. WiFi only hubs such as a Tab 3 can be used to control your Philips Hue lights but there are far more Z-wave products to purchase.
Update Oct 18th, 2015:
There has been a lot of changes in the past year and the items below reflect the changes.
Above is V1 and the price is very low to reflect the older technology inside. It’s a great start if you’re looking for something cheap to get into the smart home technology.
- Open Platform
- Samsung purchased in 2014
- Works with X10, Zwave, BLE (V2 only)
- No monthy fees
- Easy visual builder
- Battery backup V2
Cons
- Need to open app and ‘clunk’ around to turn things on.
- Last time I checked they didn’t have a dimmer option. It was just turning lights on and off
Sample GET/POST/PUT/Delete Request
Version two of the Smartthings hub have added bluetooth, an battery as a backup incase the power goes out, better processor and more RAM. It improves the speed of actions and provides a more reliable connection to your smart home. It also supports more video cameras (not just DropCam).
Here is a comparison image between V1 and V2: [/plan][plan title=”Vera Edge” featured=”true” price=”$99″ color=”teal-lite”]
- Newest Model (Late 2014-2015 Design)
- Best API and Plugins
- Biggest community
- Decent Apps
- Integration with Tasker
- Easy setup
- Great support
- Good design
We replace the VeraLite with the Vera Edge as it is a newer model with possible device connections (can connect up to 220 devices), more video camera controllers, latest gen technology.
We purchased this model and had some issues but their support team quickly rectified the issue and got it working. [/plan][plan title=”Insteon Hub” price=”$99-150″]
- SmartLinc has an API
- Apple, Android
- Been around for a long time
- X10 Compatible
- Can find cheap products on craigslist
- Not Z-Wave device compatible
- Not ZigBee device compatible
Why not the new Smart Hub PRO and a HomeKit Solution?
HomeKit isn’t ready yet for home automation; everything on your network has to be HomeKit compatible for Siri to see it. I wouldn’t recommend it yet and there are far better solutions (see Beecon voice technology) to control your system from your voice.[/plan][plan title=”USB Stick S.S. 2 ($35) or Gen 5 ($49)” price=”$35-50″]
- Need a windows PC to host software like InControl
- Cheap solution to integrate Z-Wave
- Lots of flexibility
- Integration with EventGhost
- Apple and Android Apps you can use
Sample API GET Request for InControl
There is also a Generation 5 device (2015) like the one below
This model allows for all Aeon gen 5 products like their new LED’s. It will hopefully provide a more reliable connection than their Series 2 stick as well. [/plan][plan title=”Tasker with Wifi Solutions” price=”4.99″]
- Too many features to list with a ton of plugins
- Great app
- Cheapest Solution
- Software Based
- NO Z-wave or Zigbee
- Easy to learn
- Tons of tutorials
- Great for WiFi Only devices
- Need to be willing to learn
- The most flexibility
- Can be integrated with all these other hubs
- Can use Philips Hue (lights), Lockitron, or any other BLE connected device and skip the Z-Wave system products.
Sample GET request with Tasker[/plan][plan title=”Wink Connected Hub (NOTE!!!! Wink went bankrupt)” featured=”true” price=”49.99″]
- Lowest Price (they have also gone belly up and I dont recommend this solution)
- Great Technologies: WiFi, Bluetooth, Z-Wave, ZigBee, Lutron, Android Wear
- Good API
- Poor documentation (No setup)
- Spotty Z-Wave Support for all devices. Click the above link and browse through the reviews. They aren’t all pretty.
- Decent apps
- Once they improve on the integration with all Z-Wave products you will have a clear winner
Notes
- All of these products do pretty much the same thing
- They mostly all support WiFi, Z-Wave or ZigBee
- The Wink Connected hub that controls BLE, WiFi, Z-Wave, ZigBee is clearly the one that has the greatest potential. They just need to improve their firmware to work with all devices.
The Winner
I personally like the Vera solution as it has enough features for the advanced techie but enough tutorials and help to support a mid to moderate newbie. There are a ton of plugins available and can easily integrate with Tasker. I do like the fact that it has it’s own hardware versus a USB stick as having a server running all the time isn’t very ‘green’. This is a long race so expect a few new players to enter the game and surprise us. We will keep you posted. Let us know what other
- Published in Hubs
Top 10 Best Automation Apps for Android
AutoVoice is another important app that you can’t live without if you want to get into Home Automation. It allows for custom commands and actions all through your voice. It also lets you search Google and integrates easily with Tasker. That’s why the logo lookos so much like Tasker because all these “Auto” apps are plugins for Tasker.
Most of these automation apps are free with a paid option to open up more features. All of these apps integrate with the ‘master’ one (Tasker). They either integrate with them through ‘intents’ or through the ‘state’ and ‘plugin’ profile section in Tasker.
Retune is an app which allows you to control your iTunes PC. I personally use it on my home screen as a widget for easy access when I walk by it loads up the home screen I use to control it. There are a few features I would add to it but it does do a good job for what it does.
Xposed Framework Installer and Bridge help your device reach it’s full potential. This has a lot of features that you are looking for in a true open source product. Some of the features include long clicking the home button and assinging it to a Tasker task. Maybe you want to triple click the headphones button to launch your RunKeeper app. There are a lot of possibilities.
Movement Detector will let you change your phones settings or launch Tasker tasks based on how the device is moving. It’s a very useful task for as a ‘confirmation’ type profile. I would use it more to let my device know im in the car or I’m walking fast (I’m usually going somewhere with directions). Running may open the running app.
Motion detector is an app that allows you to turn your android into a tasker acting motion detector. It can turn the screen on as you and take you to a custom ‘scene’; It could also turn it on to your screen saving app which shows your latest photos of the family from a rss feed made from ‘Yahoo Pipes’. There really are many opportunities.