{"id":371,"date":"2013-10-07T21:55:05","date_gmt":"2013-10-07T21:55:05","guid":{"rendered":"http:\/\/dollarunderscore.azurewebsites.net\/?p=371"},"modified":"2018-02-07T16:25:43","modified_gmt":"2018-02-07T15:25:43","slug":"home-automation-with-powershell","status":"publish","type":"post","link":"https:\/\/p0wershell.com\/?p=371","title":{"rendered":"Home Automation With PowerShell"},"content":{"rendered":"<p>Home Automation is probably not something we can&#8217;t live without. But it is fun \ud83d\ude42<\/p>\n<p>A while ago I bought a little device called &#8220;<a title=\"Tellstick Net Product site\" href=\"http:\/\/www.telldus.com\/products\/tellstick_net\" target=\"_blank\">Tellstick Net<\/a>&#8220;, which is a device made for controlling other electrical devices, like dimming your lamps, turning on\/off sockets, or for receiving data from different sensors, like temperature.<\/p>\n<p>It had one obvious disadvantage though, it didn&#8217;t have PowerShell support&#8230;<\/p>\n<p>Luckily this is a problem that has an easy fix! I went with a &#8220;quick and dirty&#8221; method of talking to the API site, but it has worked pretty much flawlessly for over a year now.<\/p>\n<p>I will post more information about this project on this blog, but I thought I could start with some screenshots to help you get an idea on what you can do: (sorry for naming my devices in swedish&#8230;)<\/p>\n<p><a href=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus-cmdlet.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-381\" alt=\"telldus cmdlet\" src=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus-cmdlet.jpg\" width=\"997\" height=\"642\" srcset=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus-cmdlet.jpg 997w, https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus-cmdlet-300x193.jpg 300w, https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus-cmdlet-624x401.jpg 624w\" sizes=\"(max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus_cmdlets2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-391\" alt=\"telldus_cmdlets2\" src=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus_cmdlets2.jpg\" width=\"997\" height=\"654\" srcset=\"https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus_cmdlets2.jpg 997w, https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus_cmdlets2-300x196.jpg 300w, https:\/\/p0wershell.com\/wp-content\/uploads\/2013\/10\/telldus_cmdlets2-624x409.jpg 624w\" sizes=\"(max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This module has for example been used for water plants during vacations (giving extra water during hot days), turning of lights when launching media players etc&#8230;<\/p>\n<p><strong><em>This module is now published at the PowerShell Gallery. You can get the latest version at <a href=\"https:\/\/www.powershellgallery.com\/packages\/AutomaTD\/\" target=\"_blank\">this link<\/a>.<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Home Automation is probably not something we can&#8217;t live without. But it is fun \ud83d\ude42 A while ago I bought a little device called &#8220;Tellstick Net&#8220;, which is a device made for controlling other electrical devices, like dimming your lamps, turning on\/off sockets, or for receiving data from different sensors, like temperature. It had one [&hellip;]<\/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,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[231,21,241],"tags":[261,1111,1121,251],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Zj0A-5Z","_links":{"self":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts\/371"}],"collection":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371"}],"version-history":[{"count":1,"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":7329,"href":"https:\/\/p0wershell.com\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions\/7329"}],"wp:attachment":[{"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p0wershell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}