{"id":8336,"date":"2013-12-22T11:29:48","date_gmt":"2013-12-22T18:29:48","guid":{"rendered":"http:\/\/sanuja.com\/blog\/?p=8336"},"modified":"2020-07-05T14:57:04","modified_gmt":"2020-07-05T20:57:04","slug":"modules-associations","status":"publish","type":"post","link":"https:\/\/sanuja.com\/blog\/modules-associations","title":{"rendered":"Modules associations"},"content":{"rendered":"<p>There are few different companies that manufacture modules for home automation. Even with products from same company, it can be difficult to find all in one solutions to consumers&#8217; need. Through manipulating the behaviors of the modules through the controller, we can accomplish almost anything.<\/p>\n<p><!--more--><\/p>\n<p>Let&#8217;s look at a situation where solution is not obvious. In my home, I have a separated garage with a conventional door opener and lights. To automate the door, I added a Z-wave inline module. It works great, but it often interferes with the built-in light of the opener. So I removed the light fixture from it. Now every time I come home the garage is dark because the other set of lights requires me to turn on separately. Solution is to combine two modules; the door open\/close sensor and the light switch module.<\/p>\n<p>I wrote down what I would like to have and what equipment I have to solve the problem. What I wrote is; Sensor is Armed &#8211;> Sensor is Connected\/Disconnected &#8211;> Turn ON lights &#8211;> Wait 10 min &#8211;> Turn OFF lights. Then, being a good computer scientist I created a flow chart. <figure id=\"attachment_8338\" aria-describedby=\"caption-attachment-8338\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" data-attachment-id=\"8338\" data-permalink=\"https:\/\/sanuja.com\/blog\/modules-associations\/homeauto_garage_flowchart\" data-orig-file=\"https:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart.jpg\" data-orig-size=\"500,258\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"homeauto_garage_flowchart\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Flowchart: Garage Door Sensor associating with Light Switch&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart-300x154.jpg\" data-large-file=\"https:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart.jpg\" src=\"http:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart.jpg\" alt=\"Flowchart: Garage Door Sensor associating with Light Switch\" width=\"500\" height=\"258\" class=\"size-full wp-image-8338\" srcset=\"https:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart.jpg 500w, https:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart-300x154.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><figcaption id=\"caption-attachment-8338\" class=\"wp-caption-text\">Flowchart: Garage Door Sensor associating with Light Switch<\/figcaption><\/figure> Now, I installed the Z-wave 2-way switch module by replacing the old switches. Then I used the association in Vera controller to make a relationship between the sensor and the light switch.<\/p>\n<p>Here is an example video of an association (not the same one describe above).<\/p>\n<p><center><iframe width=\"560\" height=\"315\" src=\"\/\/www.youtube.com\/embed\/wpVDrl9CWhY\" frameborder=\"0\" allowfullscreen><\/iframe><\/center><\/p>\n<p>You can resolve problems similar to this using associations in many other situations. Here are few example of typical problems that can be fixed using association method.<\/p>\n<ul>\n<li>Turn on lights (switch module) when the motion senator (sensor module) is tripped  if the time period is night.<\/li>\n<li>Turn off the TV (plug-in module) if the motion sensor (sensor module) have not been tripped for over X hours in the entertainment room.<\/li>\n<li>Turn on the sprinklers (plug-in module OR sprinkler controller module) if the light sensor (sensor module) detects low lights and it is at night.<\/li>\n<li>If the light level (luminance sensor) is below 90 lux then turn on lights.<\/li>\n<li>If the humidity level (humidity sensor) is below 40%  turn on the humidifier and send an email.<\/li>\n<li>If you install a multisensor, Boolean logic possibilities can be significantly increased.<\/li>\n<li>&#8230;and many many more!<\/li>\n<\/ul>\n<p><p>The key to a successful association type automation is proper planing and right equipment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are few different companies that manufacture modules for home automation. Even with products from same company, it can be difficult to find all in one solutions to consumers&#8217; need. Through manipulating the behaviors of the modules through the controller, we can accomplish almost anything.<\/p>\n","protected":false},"author":2,"featured_media":8338,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":""},"categories":[25,36],"tags":[18,10,19],"class_list":["post-8336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ce","category-projects","tag-computing","tag-tech","tag-tutorials"],"jetpack_featured_media_url":"https:\/\/sanuja.com\/blog\/wp-content\/uploads\/2013\/12\/homeauto_garage_flowchart.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/posts\/8336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/comments?post=8336"}],"version-history":[{"count":0,"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/posts\/8336\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/media\/8338"}],"wp:attachment":[{"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/media?parent=8336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/categories?post=8336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanuja.com\/blog\/wp-json\/wp\/v2\/tags?post=8336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}