{"id":993,"date":"2016-03-21T12:32:04","date_gmt":"2016-03-21T19:32:04","guid":{"rendered":"https:\/\/partofthething.com\/thoughts\/?p=993"},"modified":"2017-12-11T20:46:28","modified_gmt":"2017-12-12T04:46:28","slug":"using-an-aeotech-recessed-door-sensor-in-home-assistant","status":"publish","type":"post","link":"https:\/\/partofthething.com\/thoughts\/using-an-aeotech-recessed-door-sensor-in-home-assistant\/","title":{"rendered":"Using an Aeotech recessed door sensor in home-assistant"},"content":{"rendered":"<p>I went over to my friend&#8217;s house last night to help get <a href=\"https:\/\/home-assistant.io\/\">home-assistant<\/a> on a Raspberry Pi working for his z-wave door sensors and siren. The Ecotech sensor showed up fine but the Aeotech recessed one (Recessed Door Sensor Gen5 , ZW089-A) did not show up by default. After poking around in the logs for a while, we realized that it was sending BASIC_SET command classes instead of BinarySensor commands. Apparently (I thought I had fixed this already), home-assistant doesn&#8217;t recognize the BASIC_SET commands just yet. But looking at the <a href=\"https:\/\/github.com\/OpenZWave\/open-zwave\/blob\/master\/config\/aeotec\/recessed_doorsensor_gen5.xml\">config file for this device<\/a>, we discovered that config item 121 changes which kind of report this sensor sends:<br \/>\n<!--more--><br \/>\n<code>To set which command will be sent to the associated nodes<br \/>\nwhen the magnet switch is triggered.<br \/>\nBitsets:<br \/>\n4 -&gt; Sensor Binary<br \/>\n8 -&gt; Basic Set<br \/>\nDefault setting: 0x100 (Basic Set)<br \/>\nOZW Ideal Setting: 0x10 (Sensor Binary Report)<br \/>\n<\/code><\/p>\n<p>So, we went in on the Python3 command line and used python-openzwave to change the sensor&#8217;s setting from 0x100 (256) to 0x10 (16). We used code very similar to that shown on <a href=\"https:\/\/partofthething.com\/thoughts\/?p=937\">my previous post<\/a> to do this over the z-wave radio.<\/p>\n<p>One final trick was that we had to press the action button of the sensor before requesting and\/or setting the command (because the device was otherwise sleeping). After that, it showed right up in home-assistant and all is well!<\/p>\n<p>I&#8217;ve seen tickets related to this with other devices so if you have a z-wave device that&#8217;s not showing up, check the config options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I went over to my friend&#8217;s house last night to help get home-assistant on a Raspberry Pi working for his z-wave door sensors and siren. The Ecotech sensor showed up fine but the Aeotech recessed one (Recessed Door Sensor Gen5 , ZW089-A) did not show up by default. After poking around in the logs for &hellip; <a href=\"https:\/\/partofthething.com\/thoughts\/using-an-aeotech-recessed-door-sensor-in-home-assistant\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using an Aeotech recessed door sensor in home-assistant<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[3,69,75],"tags":[],"class_list":["post-993","post","type-post","status-publish","format-standard","hentry","category-computers","category-electronics-and-physics","category-home-automation"],"_links":{"self":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/comments?post=993"}],"version-history":[{"count":4,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/993\/revisions"}],"predecessor-version":[{"id":1522,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/993\/revisions\/1522"}],"wp:attachment":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/media?parent=993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/categories?post=993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/tags?post=993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}