{"id":290,"date":"2016-03-25T13:49:36","date_gmt":"2016-03-25T18:19:36","guid":{"rendered":"http:\/\/blog.thescorpius.com\/?p=290"},"modified":"2016-11-20T14:05:45","modified_gmt":"2016-11-20T18:35:45","slug":"x10-amazon-echo-ifttt","status":"publish","type":"post","link":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/","title":{"rendered":"Control your X10 Devices with the Amazon Echo using IFTTT"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg\" rel=\"attachment wp-att-365\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-365 size-full\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg?resize=648%2C364\" alt=\"You can control X10 devices with the Amazon Echo using IFTTT\" width=\"648\" height=\"364\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg?w=870&amp;ssl=1 870w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>Are you one of those Amazon Echo users that have the house\u00a0full of X10 devices and you&#8217;re sad you can&#8217;t use them with the Echo? There&#8217;s a way you can control them if you have a Linux server around, even if it&#8217;s something as simple and cheap like a Raspberry Pi!<\/p>\n<p><!--more--><\/p>\n<p><strong>NOTE:\u00a0<\/strong>You can control the X10 natively <a href=\"http:\/\/blog.thescorpius.com\/index.php\/2016\/11\/19\/control-x10-amazon-echo-smart-home-skill\/\">following these steps<\/a> additional to\u00a0the steps on this post.<\/p>\n<p>By the time I wrote this post, the Amazon Echo supports a decent range of Smart Home devices like Wink, Samsung SmartThings, Insteon and the Phillips Hue. I&#8217;m sure\u00a0that if you don&#8217;t have any of these devices at your home you have been tempted to buy one of these\u00a0but they definitely aren&#8217;t\u00a0cheap.<\/p>\n<p>But if you are a long time Smart Home <em>aficionado\u00a0<\/em>like me and still use those old cheap X10 devices you can still control them with the Amazon Echo with the\u00a0<a href=\"http:\/\/ifttt.com\"><em>If-This-Then-That<\/em> free web service<\/a> and a Linux\u00a0server.<\/p>\n<p>This is all you need:<\/p>\n<ul>\n<li>CM19A X10 USB PC Transceiver. It&#8217;s like $14.99 on eBay. The\u00a0CM15A also works\u00a0but it&#8217;s\u00a0like $80.<\/li>\n<li>An X10 Wireless\u00a0Transceiver module for the CM19A. You don&#8217;t need it for the CM15A. You might already have this if you have an X10 wireless remote control.\u00a0The TM751, for example, is just $19.99.<\/li>\n<li>A Linux server that\u00a0will be on 24\/7.<\/li>\n<li>A Web Server like <a href=\"https:\/\/httpd.apache.org\/\">Apache<\/a>.<\/li>\n<li>A little software called <a href=\"https:\/\/sourceforge.net\/projects\/mochad\/files\/\">mochad<\/a>\u00a0to control the CM19A\/CM15A on a Linux machine. It&#8217;s free.<\/li>\n<li>A domain name for your server. I suggest <a href=\"https:\/\/freedns.afraid.org\/\">FreeDNS<\/a>. It&#8217;s free.<\/li>\n<li>An account on <a href=\"http:\/\/ifttt.com\">IFTTT.com<\/a>. Also\u00a0free.<\/li>\n<\/ul>\n<p>As usual in this blog\u00a0all commands here are for <a href=\"https:\/\/www.debian.org\/\">Debian<\/a>, and they should work in Debian-based distributions like Ubuntu, Mint and Raspbian for the Raspberry Pi.<\/p>\n<h2>Installing the X10 Gateway: mochad<\/h2>\n<p>The first thing we need to do is to install <a href=\"https:\/\/sourceforge.net\/projects\/mochad\/files\/\">mochad<\/a>, a TCP gateway daemon for the X10 interfaces CM15A and CM19A. It&#8217;ll run on ports 1099 &#8211; 1101 so you need to be sure those ports are free in your server. You can change the ports by editing the file <code>mochad.c<\/code> and changing the line:<\/p>\n<pre class=\"lang:c decode:true \">#define SERVER_PORT \u00a0 \u00a0 (1099)<\/pre>\n<p>With the starting port that you want. To build and install the mochad server (no surprises here) use the following very familiar sequence of commands after you have uncompressed the package:<\/p>\n<pre class=\"lang:terminal decode:true \">root@htpc ~\/mochad-0.1.16\u00a0# .\/configure ; make ; make install<\/pre>\n<p>And that will install the binary\u00a0<code>\/usr\/local\/bin\/mochad<\/code> and the <a href=\"https:\/\/www.google.co.ve\/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=2&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwjloY-m4NnLAhVDax4KHSHfDW0QFggeMAE&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FUdev&amp;usg=AFQjCNFM2l8gONlzFW4peFtBFdvsO15Spw&amp;sig2=b8I7OG0s1m6Rpci6lrns1w\">udev<\/a> rules in <code>\/etc\/udev\/rules.d\/91-usb-x10-controllers.rules<\/code>.<\/p>\n<h3>Testing the Installation<\/h3>\n<p>Now plug your X10 module to the Linux server and check the logs. You should see something like this (I have a CM19A):<\/p>\n<pre class=\"lang:terminal decode:true \">[16140.737104] usb 1-2: new low-speed USB device number 7 using xhci_hcd\r\n[16140.926146] usb 1-2: New USB device found, idVendor=0bc7, idProduct=0002\r\n[16140.926152] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0\r\n[16140.926155] usb 1-2: Product: USB Transceiver\r\n[16140.926158] usb 1-2: Manufacturer: X10 Wireless Technology Inc\r\n[16140.926440] usb 1-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes\r\n[16140.926449] usb 1-2: ep 0x2 - rounding interval to 64 microframes, ep desc says 80 microframes<\/pre>\n<p>Instantly the udev should kick in and execute the mochad binary. You can check for that using the process status command:<\/p>\n<pre class=\"lang:terminal decode:true \">naikel@htpc ~ $ ps aux | grep mochad\r\nroot 10888 0.0 0.0 95340 1948 ? Ssl Mar12 0:00 \/usr\/local\/bin\/mochad<\/pre>\n<p>And you can now telnet to the 1099 port and send some commands. Use <code>rf<\/code> for the CM19A and <code>pl<\/code> for the CM15A like this:<\/p>\n<pre class=\"lang:terminal decode:true\">naikel@htpc ~ $ telnet localhost 1099\r\nTrying 127.0.0.1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\nrf a2 on\r\n03\/24 12:16:03 Tx RF HouseUnit: A2 Func: On\r\nrf a2 off\r\n03\/24 12:16:09 Tx RF HouseUnit: A2 Func: Off<\/pre>\n<p>I turned on the lamp module on with the X10 house code <em>A<\/em> and the unit code\u00a0<em>2,\u00a0<\/em>and then off. Read the <code>README<\/code> file for mochad for the\u00a0list of commands available.<\/p>\n<h2>Installing Apache<\/h2>\n<p>If you don&#8217;t have the Apache Web Server installed (and that would be very weird if you&#8217;re reading this blog) you\u00a0can install it\u00a0using apt-get:<\/p>\n<pre class=\"lang:terminal decode:true \">naikel@htpc ~ $ sudo apt-get install apache2<\/pre>\n<p>Since I&#8217;ll be writing my scripts with PHP you&#8217;ll need that too:<\/p>\n<pre class=\"lang:terminal decode:true \">naikel@htpc ~ $ sudo apt-get install libapache2-mod-php5<\/pre>\n<p>To test that everything is working you can do this:<\/p>\n<pre class=\"lang:terminal decode:true \">naikel@htpc ~ $ echo \"&lt;?php phpinfo(); ?&gt;\" | sudo tee \/var\/www\/html\/test.php  \r\n&lt;?php phpinfo(); ?&gt;<\/pre>\n<p>And then try to open http:\/\/localhost\/test.php. If it shows all the PHP Configuration then you&#8217;re ready.<\/p>\n<h2>Create a Dynamic Domain Name for your Server<\/h2>\n<p>I will not go deep into this, but you need a domain name for your server. Chances are your IP isn&#8217;t static and it changes from time to time, so you can&#8217;t specify a URL with an IP address on the IFTTT website because eventually it will stop working.<\/p>\n<p>Create an account in <a href=\"https:\/\/freedns.afraid.org\">FreeDNS<\/a> and go to\u00a0<em>Subdomains<strong>\u00a0<\/strong><\/em>and click on\u00a0<em>Add<\/em>. Select any domain name you want (there are way too many to choose), choose a subdomain and type the IP of your Linux server there.\u00a0If you&#8217;re reading this from that server you can find what your IP address is just by<a href=\"https:\/\/www.google.com\/search?q=what+is+my+ip\"> asking that to google<\/a>.<\/p>\n<p>Here&#8217;s an example for echo.echoparklake.com\u00a0(echoparklake.com is a\u00a0free domain in FreeDNS):<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/FreeDNS.png\" rel=\"attachment wp-att-330\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-330 size-full aligncenter\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/FreeDNS.png?resize=387%2C301\" alt=\"FreeDNS\" width=\"387\" height=\"301\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/FreeDNS.png?w=387&amp;ssl=1 387w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/FreeDNS.png?resize=300%2C233&amp;ssl=1 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p>Finally and I won&#8217;t cover it here, choose a Dynamic DNS client to keep your IP address updated. There&#8217;s a big list <a href=\"https:\/\/freedns.afraid.org\/scripts\/freedns.clients.php\">here<\/a>. If you run Debian you can install <a href=\"https:\/\/github.com\/troglobit\/inadyn\">inadyn<\/a> using apt-get.<\/p>\n<h2>Create a Virtual Host Configuration<\/h2>\n<p>Now that you have your domain name let&#8217;s create a Virtual Host configuration in the Apache Web Server.\u00a0I&#8217;m going to use the folder\u00a0<code>\/opt\/alexa\u00a0<\/code>to store my script. The tree will look like this:<\/p>\n<pre class=\"lang:terminal decode:true \">\/opt\/alexa\r\n\u251c\u2500\u2500 etc\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 x10.ini\r\n\u2514\u2500\u2500 ifttt\r\n \u00a0\u00a0 \u2514\u2500\u2500 index.php<\/pre>\n<p>We will have a configuration file named <code>x10.ini<\/code> where all our devices are defined. We&#8217;ll get into that later. Let&#8217;s create the file <code>\/etc\/apache2\/sites-available\/echo.echoparklake.com<\/code>:<\/p>\n<pre class=\"lang:apache decode:true\">&lt;VirtualHost *:80&gt;\r\n\tServerName echo.echoparklake.com\r\n\tDocumentRoot \/opt\/alexa\/\r\n\r\n\t&lt;Directory \/opt\/alexa\/ifttt\/&gt;\r\n\t\tOptions FollowSymLinks\r\n\t\tAllowOverride None\r\n\t\tRequire all granted\r\n\t&lt;\/Directory&gt;\r\n\r\n\tErrorLog ${APACHE_LOG_DIR}\/error-echo.log\r\n\tCustomLog ${APACHE_LOG_DIR}\/access-echo.log combined\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>Now create a symbolic link in\u00a0<code>\/etc\/apache2\/sites-enabled<\/code> to this file and restart your Apache:<\/p>\n<pre class=\"lang:terminal decode:true\">root@htpc:\/etc\/apache2\/sites-enabled#\u00a0ln -s ..\/sites-available\/echo.echoparklake.com\r\nroot@htpc:\/etc\/apache2\/sites-enabled# apache2ctl graceful\r\n<\/pre>\n<h2>Create\u00a0the PHP Script<\/h2>\n<p>Create the folders\u00a0<code>\/opt\/alexa\/etc\u00a0<\/code>and\u00a0<code>\/opt\/alexa\/ifttt\u00a0<\/code>like this:<\/p>\n<pre class=\"lang:terminal decode:true \">root@htpc:\/opt# mkdir -p \/opt\/alexa\/etc \/opt\/alexa\/ifttt<\/pre>\n<h3>Design the Configuration File<\/h3>\n<p>We are going to need a configuration file where we can define words for our X10 devices. For example, when I say &#8220;lamp&#8221; the script will know the X10 code of that lamp is X10 House Code: A, X10 Unit Code: 6, or just A6. When I say &#8220;air conditioner&#8221; or just &#8220;ac&#8221; for short, the script will know the X10 code is A4.<\/p>\n<p>Since PHP has already builtin\u00a0functions to read a <a href=\"https:\/\/en.wikipedia.org\/wiki\/INI_file\">.INI\u00a0configuration file<\/a>,\u00a0we are going to use that format. We will use the <a href=\"https:\/\/en.wikipedia.org\/wiki\/INI_file#Sections\">sections<\/a> of the INI file to define an appliance and the <a href=\"https:\/\/en.wikipedia.org\/wiki\/INI_file#Keys_.28properties.29\">keys<\/a>\u00a0to define the X10 code and optionally how many &#8220;steps&#8221; we want to dim or brighten a light (I&#8217;m sure you already found out that some X10 light modules don&#8217;t dim much when you press the\u00a0<em>dim<\/em> button just once, and you need to press it like four times to see a change).<\/p>\n<p>Also we will define a special section called\u00a0<em>general<\/em> to configure general things like the server and the port.<\/p>\n<p>Create the configure file at\u00a0<code>\/opt\/alexa\/etc\/x10.ini<\/code>. Here&#8217;s mine:<\/p>\n<pre class=\"lang:ini decode:true\">; Alexa X10 configuration file\r\n\r\n[general]\r\nhostname = localhost\r\nport = 1099\r\n\r\n[lights]\r\ncode = a2\r\ndim = 1\r\n\r\n[bathroom_lights]\r\ncode = a3\r\ndim = 1\r\n\r\n[air_conditioner]\r\ncode = a4\r\n\r\n[ac]\r\ncode = a4\r\n\r\n[lamp]\r\ncode = a6\r\ndim = 4<\/pre>\n<p>I have four devices configured in this example. The script will read this configuration file, create a TCP connection to the hostname and port configured in this file, and then send a command. You can read the script <a href=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/index.php_.txt\">here<\/a>.<\/p>\n<h3>Install and Test the PHP Script<\/h3>\n<p>Finally copy the <a href=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/index.php_.txt\">script<\/a> to\u00a0<code>\/opt\/alexa\/ifttt\/index.php<\/code>. Test it with opening a URL like this:<\/p>\n<p><a href=\"http:\/\/echo.echoparklake.com\/ifttt\/index.php?action=on&amp;device=lights\">http:\/\/echo.echoparklake.com\/ifttt\/index.php?action=on&amp;device=lights<\/a><\/p>\n<p>You have to change\u00a0echo.echoparklake.com with the\u00a0domain name you created in FreeDNS. If that turned on the lights you defined in the file\u00a0<code>x10.ini<\/code> (in my case the A2 code) then it worked.<\/p>\n<h2>Create a new IFTTT\u00a0recipe<\/h2>\n<p>IFTTT supports the Amazon Echo and you can do some things with it. You first have to connect your IFTTT account with your Amazon Echo clicking <a href=\"https:\/\/ifttt.com\/amazon_alexa\">here<\/a>.<\/p>\n<p>Basically we are going to use the\u00a0<em>trigger<\/em> command to trigger\u00a0an IFTTT action (hence the name!). This way you can say\u00a0<em>&#8220;Alexa trigger lights on&#8221;<\/em> to the Echo, and the Echo will trigger this action in IFTTT; then IFTTT will send a request to your Web Server, and your Web Server connects to the mochad X10 gateway which sends an RF signal to your X10 transceiver and turns on the\u00a0lights.<\/p>\n<p>This part is very simple.\u00a0The idea is to create a recipe for each action (on \/ off \/ dim \/ bright) on each device. It will take some time of course but you have to do it only once.<\/p>\n<p>In the IFTTT website, click on\u00a0<em>My Recipes<\/em> and then on\u00a0<em>Create New Recipe.<\/em><\/p>\n<p>Choose\u00a0<em>Amazon Alexa<\/em> as the\u00a0<em>Trigger Channel<\/em><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_AmazonAlexa.png\" rel=\"attachment wp-att-357\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-357 aligncenter\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_AmazonAlexa.png?resize=121%2C148\" alt=\"IFTTT_AmazonAlexa\" width=\"121\" height=\"148\" \/><\/a><\/p>\n<p>Now choose\u00a0<em>Say a specific phrase<\/em> for your\u00a0<em>trigger<\/em>.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_Trigger.png\" rel=\"attachment wp-att-359\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-359 aligncenter\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_Trigger.png?resize=320%2C216\" alt=\"IFTTT_Trigger\" width=\"320\" height=\"216\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_Trigger.png?w=320&amp;ssl=1 320w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_Trigger.png?resize=300%2C203&amp;ssl=1 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/a><\/p>\n<p>Then you have to choose the phrase. Let&#8217;s do the &#8220;lights on&#8221; phrase so go ahead and type\u00a0<em>lights on<\/em>.<\/p>\n<p>Add the\u00a0<em>Maker\u00a0<\/em><em>Action Channel<\/em>\u00a0to create requests to web servers.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_Maker.png\" rel=\"attachment wp-att-360\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-360 aligncenter\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/IFTTT_Maker.png?resize=88%2C119\" alt=\"IFTTT_Maker\" width=\"88\" height=\"119\" \/><\/a><\/p>\n<p>And then just type the URL you need to turn the lights on. It would be like this:<\/p>\n<p><a href=\"http:\/\/echo.echoparklake.com\/ifttt\/index.php?action=on&amp;device=lights\">http:\/\/echo.echoparklake.com\/ifttt\/index.php?action=on&amp;device=lights<\/a><\/p>\n<p>Select method\u00a0<em>GET<\/em> and that&#8217;s it. Press the\u00a0<em>Create Action<\/em> button and now you can go ahead and tell your Echo <em>&#8220;<\/em><em>Alexa trigger lights on&#8221;<\/em>\u00a0 and your lights should turn on.<\/p>\n<p>If you have any\u00a0questions or thoughts don&#8217;t hesitate to leave a comment below!<\/p>\n<p style=\"text-align: center;\"><script type=\"text\/javascript\">\/\/ <![CDATA[\n ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { 'units' : [] }; }; var unit = {\"calltype\":\"async[2]\",\"publisher\":\"Scorpius\",\"width\":728,\"height\":90,\"sid\":\"Chitika Default\"}; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write('\n\n\n\n<div id=\"chitikaAdBlock-' + placement_id + '\"><\/div>\n\n\n\n'); }()); \n\/\/ ]]><\/script><br \/>\n<script src=\"\/\/cdn.chitika.net\/getads.js\" async=\"\" type=\"text\/javascript\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you one of those Amazon Echo users that have the house\u00a0full of X10 devices and you&#8217;re sad you can&#8217;t use them with the Echo? There&#8217;s a way you can control them if you have a Linux server around, even if it&#8217;s something as simple and cheap like a Raspberry Pi!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11,6,7],"tags":[13,24,25],"class_list":["post-290","post","type-post","status-publish","format-standard","hentry","category-amazon-alexa","category-linux","category-tutorials","tag-amazon-echo","tag-ifttt","tag-x10"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Control your X10 Devices with the Amazon Echo using IFTTT - Scorpius<\/title>\n<meta name=\"description\" content=\"Are you one of those Amazon Echo users that have the house full of X10 devices and you&#039;re sad you can&#039;t use them with the Echo? Guess what? You can!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Control your X10 Devices with the Amazon Echo using IFTTT - Scorpius\" \/>\n<meta property=\"og:description\" content=\"Are you one of those Amazon Echo users that have the house full of X10 devices and you&#039;re sad you can&#039;t use them with the Echo? Guess what? You can!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/\" \/>\n<meta property=\"og:site_name\" content=\"Scorpius\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-25T18:19:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-11-20T18:35:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg\" \/>\n<meta name=\"author\" content=\"TheScorpius666\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TheScorpius666\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/\"},\"author\":{\"name\":\"TheScorpius666\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/86f96e20f253dad7eb38d3c721a950de\"},\"headline\":\"Control your X10 Devices with the Amazon Echo using IFTTT\",\"datePublished\":\"2016-03-25T18:19:36+00:00\",\"dateModified\":\"2016-11-20T18:35:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/\"},\"wordCount\":1426,\"commentCount\":15,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/7b346c3545c12a84ffdf2a30dfc69501\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/EchoX10_3.jpg\",\"keywords\":[\"amazon echo\",\"ifttt\",\"x10\"],\"articleSection\":[\"Amazon Alexa\",\"linux\",\"tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/\",\"url\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/\",\"name\":\"Control your X10 Devices with the Amazon Echo using IFTTT - Scorpius\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/EchoX10_3.jpg\",\"datePublished\":\"2016-03-25T18:19:36+00:00\",\"dateModified\":\"2016-11-20T18:35:45+00:00\",\"description\":\"Are you one of those Amazon Echo users that have the house full of X10 devices and you're sad you can't use them with the Echo? Guess what? You can!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/EchoX10_3.jpg?fit=870%2C489&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/EchoX10_3.jpg?fit=870%2C489&ssl=1\",\"width\":870,\"height\":489},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/25\\\/x10-amazon-echo-ifttt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.thescorpius.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Control your X10 Devices with the Amazon Echo using IFTTT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#website\",\"url\":\"https:\\\/\\\/blog.thescorpius.com\\\/\",\"name\":\"Scorpius\",\"description\":\"Random technology bits\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/7b346c3545c12a84ffdf2a30dfc69501\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.thescorpius.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/7b346c3545c12a84ffdf2a30dfc69501\",\"name\":\"Scorpius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\",\"caption\":\"Scorpius\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/86f96e20f253dad7eb38d3c721a950de\",\"name\":\"TheScorpius666\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g\",\"caption\":\"TheScorpius666\"},\"url\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/author\\\/thescorpius666\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Control your X10 Devices with the Amazon Echo using IFTTT - Scorpius","description":"Are you one of those Amazon Echo users that have the house full of X10 devices and you're sad you can't use them with the Echo? Guess what? You can!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/","og_locale":"en_US","og_type":"article","og_title":"Control your X10 Devices with the Amazon Echo using IFTTT - Scorpius","og_description":"Are you one of those Amazon Echo users that have the house full of X10 devices and you're sad you can't use them with the Echo? Guess what? You can!","og_url":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/","og_site_name":"Scorpius","article_published_time":"2016-03-25T18:19:36+00:00","article_modified_time":"2016-11-20T18:35:45+00:00","og_image":[{"url":"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg","type":"","width":"","height":""}],"author":"TheScorpius666","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TheScorpius666","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#article","isPartOf":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/"},"author":{"name":"TheScorpius666","@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/86f96e20f253dad7eb38d3c721a950de"},"headline":"Control your X10 Devices with the Amazon Echo using IFTTT","datePublished":"2016-03-25T18:19:36+00:00","dateModified":"2016-11-20T18:35:45+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/"},"wordCount":1426,"commentCount":15,"publisher":{"@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/7b346c3545c12a84ffdf2a30dfc69501"},"image":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#primaryimage"},"thumbnailUrl":"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg","keywords":["amazon echo","ifttt","x10"],"articleSection":["Amazon Alexa","linux","tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/","url":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/","name":"Control your X10 Devices with the Amazon Echo using IFTTT - Scorpius","isPartOf":{"@id":"https:\/\/blog.thescorpius.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#primaryimage"},"image":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#primaryimage"},"thumbnailUrl":"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg","datePublished":"2016-03-25T18:19:36+00:00","dateModified":"2016-11-20T18:35:45+00:00","description":"Are you one of those Amazon Echo users that have the house full of X10 devices and you're sad you can't use them with the Echo? Guess what? You can!","breadcrumb":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#primaryimage","url":"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg?fit=870%2C489&ssl=1","contentUrl":"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/EchoX10_3.jpg?fit=870%2C489&ssl=1","width":870,"height":489},{"@type":"BreadcrumbList","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/25\/x10-amazon-echo-ifttt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.thescorpius.com\/"},{"@type":"ListItem","position":2,"name":"Control your X10 Devices with the Amazon Echo using IFTTT"}]},{"@type":"WebSite","@id":"https:\/\/blog.thescorpius.com\/#website","url":"https:\/\/blog.thescorpius.com\/","name":"Scorpius","description":"Random technology bits","publisher":{"@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/7b346c3545c12a84ffdf2a30dfc69501"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.thescorpius.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/7b346c3545c12a84ffdf2a30dfc69501","name":"Scorpius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g","caption":"Scorpius"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g"}},{"@type":"Person","@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/86f96e20f253dad7eb38d3c721a950de","name":"TheScorpius666","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g","caption":"TheScorpius666"},"url":"https:\/\/blog.thescorpius.com\/index.php\/author\/thescorpius666\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6SNpd-4G","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/comments?post=290"}],"version-history":[{"count":78,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts\/290\/revisions"}],"predecessor-version":[{"id":614,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts\/290\/revisions\/614"}],"wp:attachment":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/media?parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/categories?post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/tags?post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}