{"id":42,"date":"2017-05-01T20:35:13","date_gmt":"2017-05-01T20:35:13","guid":{"rendered":"http:\/\/www.cribbstechnologies.com\/?page_id=42"},"modified":"2017-05-04T03:08:41","modified_gmt":"2017-05-04T03:08:41","slug":"horizontal-plantation-blind-automation","status":"publish","type":"page","link":"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/horizontal-plantation-blind-automation\/","title":{"rendered":"Horizontal Plantation Blind Automation"},"content":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; fullwidth=&#8221;on&#8221;][et_pb_fullwidth_header admin_label=&#8221;Fullwidth Header&#8221; title=&#8221;Horizontal Blinds Automation&#8221; background_layout=&#8221;dark&#8221; background_url=&#8221;http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/IMG_20170503_172720.jpg&#8221; saved_tabs=&#8221;all&#8221; \/][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;Section&#8221;][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;3_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221;]<\/p>\n<h1>Overview<\/h1>\n<p>As I realized how powerful Home Assistant is I thought of ways I could use it to increase my home&#8217;s utility and energy efficiency and thought of my blinds. The rear of our home faces roughly southwest and we&#8217;re on a hill so we get full afternoon sun so I figured I could automate the blinds to open in the morning and close once the sun got to a certain position based on the <a href=\"https:\/\/home-assistant.io\/components\/sun\/\" target=\"_blank\" rel=\"noopener noreferrer\">sun component<\/a> in Home Assistant.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221;]<\/p>\n<p>This component is easy to configure you just go to y<img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-44\" src=\"http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/sunConfiguration-300x188.png\" alt=\"\" width=\"300\" height=\"188\" srcset=\"https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/sunConfiguration-300x188.png 300w, https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/sunConfiguration-400x250.png 400w, https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/sunConfiguration.png 585w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>our home in Google Maps and center your home roughly in the middle of the window and then copy the location in the URL bar:\u00a0<a href=\"https:\/\/www.google.com\/maps\/@38.8974691,-77.0363911,18z\">https:\/\/www.google.com\/maps\/@38.8974691,-77.0363911,18z<\/a><br \/>\nEverything after the @ symbol are the GPS coordinates of that location.<\/p>\n<p>All you have to do to configure Home Assistant to know where you live is add these to your configuration.yaml file<\/p>\n<pre lang=\"yaml\">homeassistant:\r\n  latitude: 38.8974691\r\n  longitude: -77.0363911\r\n<\/pre>\n<p>and then one more line to enable the sun component<\/p>\n<pre lang=\"yaml\">sun:\r\n<\/pre>\n<p>After you save your configuration file, restart Home Assistant and go to your das<img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-51\" src=\"http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/sunDashboard.png\" alt=\"\" width=\"232\" height=\"194\" \/>hboard. If everything went as planned you should now see the sun icon on your dashboard. Its status will change as the sun moves through the sky. You can use the sun&#8217;s events to automate things to happen near certain events related to the sun like sunset or sunrise.<\/p>\n<p>I want to configure my blinds to open in the morning and close when it&#8217;s afternoon and the sun is at an angle where it will cast sunlight into my room. I could make my automation do this based on time but the sun&#8217;s track through the sky changes as the seasons change and something that worked in the winter may not perform optimally in the summer. Luckily the sun component track&#8217;s the angle of the sun above the horizon which I can use to approximate when the sun would be beaming through my windows.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221;]<\/p>\n<p><a href=\"https:\/\/home-assistant.io\/getting-started\/automation\/\">Automations<\/a> are made up of 3 parts:<\/p>\n<ol>\n<li>Trigger<\/li>\n<li>Conditions<\/li>\n<li>Action<\/li>\n<\/ol>\n<p>The trigger is the part of the automation that tells Home Assistant that it needs to do something. The condition places conditions that must be met in order to run the action. The action can be anything that Home Assistant is configured to do. In my case I will need two automations: one for opening the blinds, one for closing the blinds. In the open blinds automation I want them to open 45 minutes after sunrise so that will be my trigger. I don&#8217;t have any conditions as I always want this to happen. The action would be to tell Home Assistant to open the blinds. Putting all of that together gives us<\/p>\n<p>\u00a0<\/p>\n<pre lang=\"yaml\">alias: Blinds open after sunrise\r\ntrigger:\r\n  platform: sun\r\n  event: sunrise\r\n  offset: '00:45:00'\r\naction:\r\n  service: cover.open_cover_tilt\r\n  entity_id: cover.living_room_0\r\n<\/pre>\n<p>And to close them:<\/p>\n<pre lang=\"yaml\">alias: Blinds close in afternoon\r\ntrigger:\r\n  platform: numeric_state\r\n  entity_id: sun.sun\r\n  value_template: '{{state.attributes.elevation}}'\r\n  below: 57\r\naction:\r\n  service: cover.close_cover_tilt\r\n  entity_id: cover.living_room_0<\/pre>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221;]<\/p>\n<p>Next we&#8217;ll go over the <a href=\"http:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/horizontal-plantation-blind-automation\/horizontal-blinds-hardware\/\">hardware<\/a><\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<div id='horizontalBlinds' class='widgets_on_page wop_tiny1  wop_small1  wop_medium1  wop_large1  wop_wide1'>\n\t\t\t<ul><li id=\"nav_menu-4\" class=\"widget widget_nav_menu\"><div class=\"menu-horizontal-blind-menu-container\"><ul id=\"menu-horizontal-blind-menu\" class=\"menu\"><li id=\"menu-item-56\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-56\"><a href=\"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/horizontal-plantation-blind-automation\/\">Overview<\/a><\/li>\n<li id=\"menu-item-80\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-80\"><a href=\"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/horizontal-plantation-blind-automation\/horizontal-blinds-hardware\/\">Hardware<\/a><\/li>\n<li id=\"menu-item-94\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-94\"><a href=\"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/horizontal-plantation-blind-automation\/horizontal-blinds-configuration\/\">Configuration<\/a><\/li>\n<\/ul><\/div><\/li><\/ul><\/div><!-- widgets_on_page -->\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; fullwidth=&#8221;on&#8221;][et_pb_fullwidth_header admin_label=&#8221;Fullwidth Header&#8221; title=&#8221;Horizontal Blinds Automation&#8221; background_layout=&#8221;dark&#8221; background_url=&#8221;http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/05\/IMG_20170503_172720.jpg&#8221; saved_tabs=&#8221;all&#8221; \/][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;Section&#8221;][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;3_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221;] Overview As I realized how powerful Home Assistant is I thought of ways I could use it to increase my home&#8217;s utility and energy efficiency and thought of my blinds. The rear of our home faces roughly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":39,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-42","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":11,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/42\/revisions"}],"predecessor-version":[{"id":326,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/42\/revisions\/326"}],"up":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/39"}],"wp:attachment":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/media?parent=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}