{"id":15944,"date":"2020-01-20T00:29:58","date_gmt":"2020-01-20T05:29:58","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=15944"},"modified":"2025-02-20T14:44:50","modified_gmt":"2025-02-20T19:44:50","slug":"goodbye-x10-hello-tradfri","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2020\/01\/20\/goodbye-x10-hello-tradfri\/","title":{"rendered":"goodbye X10, hello TR\u00c5DFRI \u2026"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/scruss\/ihsctrl\">scruss\/ihsctrl: a package of bash scripts to control selected IKEA Home smart (aka \u201cTR\u00c5DFRI\u201d\u009d) devices via their network gateway<\/a><\/p>\n\n\n\n<p>The old X10 devices were getting <em>really<\/em> unreliable: seldom firing at all, getting far too hot, bringing a whole lot of <em><strong>not working<\/strong><\/em> to my life. So while it was kind of cool to have my lights controlled by an original 256\u00a0MB Raspberry Pi Model B from 2012, it was maybe working one schedule out of ten.<\/p>\n\n\n\n<p>So it had to go: replaced by a Raspberry Pi Zero W and a whole lot of <a href=\"https:\/\/www.ikea.com\/ca\/en\/search\/products\/?q=tr%C3%A5dfri\">IKEA TR\u00c5DFRI<\/a> kit. I was deeply unimpressed with the IKEA Home smart app, though: you couldn&#8217;t use even basic schedules with more than one light cycle per day. So while I know there are lots of clever home automation systems, I wanted to replace my old cron scripts and set about writing some simple command tools. The result is <a href=\"https:\/\/github.com\/scruss\/ihsctrl\"><strong>ihsctrl<\/strong><\/a>: very limited, but good enough for me. It&#8217;s been working exactly as expected for the last week, so I&#8217;ll finally get to wade through 8 years of cobwebs and dismantle the old X10 setup. I already miss the 06:30 <strong>clonk<\/strong> of the X10 controller turning the front light on \u2014 that was my alarm clock (or alarm <em>clonk<\/em>) every morning.<\/p>\n\n\n\n<p>(old local copy: <a href=\"http:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2020\/01\/ihsctrl.zip\">ihsctrl.zip<\/a>)<\/p>\n\n\n\n<p>more up-to-date local copy: <\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-b70b661d-54c7-4f06-8d00-db213c0df3e3\" href=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/02\/ihsctrl-master.zip\">ihsctrl-master<\/a><a href=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2025\/02\/ihsctrl-master.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-b70b661d-54c7-4f06-8d00-db213c0df3e3\">Download<\/a><\/div>\n\n\n\n<p><strong>2025 update<\/strong>: this still works, if extremely slowly. It takes maybe 15\u201320 seconds for a command to get through. Sometimes it doesn&#8217;t. Retrying is good.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scruss\/ihsctrl: a package of bash scripts to control selected IKEA Home smart (aka \u201cTR\u00c5DFRI\u201d\u009d) devices via their network gateway The old X10 devices were getting really unreliable: seldom firing at all, getting far too hot, bringing a whole lot of not working to my life. So while it was kind of cool to have my [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"goodbye X10, hello tr\u00c3\u00a5dfri \u00e2\u20ac\u00a6 a package of bash scripts to control selected IKEA Home smart (aka \u00e2\u20ac\u0153TR\u00c3\u2026DFRI\u00e2\u20ac\u009d) devices via their network gateway #home_automatin #RaspberryPi","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":[7],"tags":[1466,275,2492,2510,3201,2618,3200,2601,3199],"class_list":["post-15944","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-cron","tag-ikea","tag-lighting","tag-raspberrypi","tag-scripts","tag-sunwait","tag-tradfri","tag-x10","tag-zigbee"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-49a","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/15944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=15944"}],"version-history":[{"count":4,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/15944\/revisions"}],"predecessor-version":[{"id":17769,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/15944\/revisions\/17769"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=15944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=15944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=15944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}