{"id":117,"date":"2020-09-07T14:17:56","date_gmt":"2020-09-07T13:17:56","guid":{"rendered":"https:\/\/www.galagaking.org\/?p=117"},"modified":"2020-09-07T15:29:35","modified_gmt":"2020-09-07T14:29:35","slug":"axa-remote-2","status":"publish","type":"post","link":"https:\/\/www.galagaking.org\/nl\/2020\/09\/07\/axa-remote-2\/","title":{"rendered":"AXA Remote 2"},"content":{"rendered":"<h5 class=\"wp-block-heading\">Controlling an AXA Remote Window controller from your Home Assistant system<\/h5>\n\n\n\n<div class=\"markdown-body\"><div class=\"markdown-heading\"><h1 class=\"heading-element\">ESPAXA<\/h1><a id=\"user-content-espaxa\" class=\"anchor-element\" aria-label=\"Permalink: ESPAXA\" href=\"#espaxa\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/galagaking\/espaxa\/blob\/master\/docs\/20200831_155745.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/galagaking\/espaxa\/raw\/master\/docs\/20200831_155745.jpg\" alt=\"AXA2\" style=\"max-width: 100%;\"><\/a>\nThis module will connect the AXA Remote 2.0 with your Home Assistant Server using ESPHOME. The module will integrate in Home Assistant, showing the position of your Window (open or closed), and give you the possibility to open and close the window from there. The remote control will still work, the status of the window will synchronize with home assistant.<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Power<\/h2><a id=\"user-content-power\" class=\"anchor-element\" aria-label=\"Permalink: Power\" href=\"#power\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>The module is using a 5V power supply, and I use a DC-DC step-up converter (MT3608) to create the 8V (7.5 with some cable loss) for the AXA Remote from the 5V power supply. So, NO batteries needed in your AXA Remote (Remove these before plugging in the connector)! The Power Supply should have enough capacity to handle the motors inside the AXA. Preferable is a Raspberry Pi supply (model 3, 2.5A or more). The power can be connected via the WEMOS USB plug, or directly to the 5V and GND pin of the WEMOS. The DC-DC Converter should be adjusted to 8V, using a multimeter. You can plug in the power adapter to this module as well for delivering power.<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Schema<\/h2><a id=\"user-content-schema\" class=\"anchor-element\" aria-label=\"Permalink: Schema\" href=\"#schema\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>This is more like 'connecting the modules'. The DC-DC converter is connected to 5V and the power input of the AXA Remote (pins 1 and 2). The MCP2003 is the LINBUS driver. It has some special 'low power' capabilities we will not use. Therefor the \/WAKE function is disabled, and Vren is not used. RxD is the OUTPUT signal! It should be connected to Rx of the Wemos. This is an 'open drain' output, so we have to pull-up to 3.3V to create a Wemos compatible signal. The input is Tx, this is a TTL compatible input, but will accept the 3.3V as a '1'. The decoupling capacitors used are 47uF, but any value &gt; 10uF is OK. As an extra a BMP\/BME280 module is integrated to measure Temperature, Pressure and Humidity (BME). A nice feature of ESPHOME, just to show, but not necessary for the AXA control.\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https:\/\/raw.githubusercontent.com\/galagaking\/espaxa\/master\/docs\/Schematic_ESP_AXA_2020-08-26_21-20-54.png\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/galagaking\/espaxa\/master\/docs\/Schematic_ESP_AXA_2020-08-26_21-20-54.png\" alt=\"Schema\" style=\"max-width: 100%;\"><\/a><\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Components<\/h2><a id=\"user-content-components\" class=\"anchor-element\" aria-label=\"Permalink: Components\" href=\"#components\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>Sometimes difficult to find, my sources (NO affiliate links \ud83d\ude42 ):<\/p>\n<ul>\n<li><a href=\"https:\/\/www.tinytronics.nl\/shop\/nl\/spanning-converters\/step-up\/dc-dc-verstelbare-step-up-boost-converter-mt3608-2a\" rel=\"nofollow\">Step-up converter MT3608<\/a><\/li>\n<li><a href=\"http:\/\/www.okaphone.com\/artikel.asp?id=485422\" rel=\"nofollow\">MCP2003<\/a><\/li>\n<li><a href=\"https:\/\/www.tinytronics.nl\/shop\/nl\/communicatie\/wi-fi\/wemos-d1-mini-v2-esp8266-12f-ch340\" rel=\"nofollow\">Wemos D1 Mini v3<\/a><\/li>\n<li><a href=\"https:\/\/www.tinytronics.nl\/shop\/nl\/kabels\/adapters\/rj12-naar-6-pins-dupont-jumper-adapter\" rel=\"nofollow\">RJ12 cable<\/a><\/li>\n<li><a href=\"https:\/\/www.tinytronics.nl\/shop\/nl\/sensoren\/temperatuur-lucht-vochtigheid\/bme280-digitale-barometer-druk-en-vochtigheid-sensor-module\" rel=\"nofollow\">BME280 sensor<\/a><\/li>\n<li><a href=\"https:\/\/www.tinytronics.nl\/shop\/nl\/raspberry-pi\/voedingen\/raspberry-pi-micro-usb-voeding-5.1v-2.5a-zwart-t6716dv\" rel=\"nofollow\">Power Supply<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Reference<\/h2><a id=\"user-content-reference\" class=\"anchor-element\" aria-label=\"Permalink: Reference\" href=\"#reference\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li><a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/devicedoc\/22230a.pdf\" rel=\"nofollow\">Data sheet MCP 2003<\/a><\/li>\n<li><a href=\"http:\/\/files.domoticaforum.eu\/uploads\/Axa\/AXA%20Remote%202%20domotica%20English%202012nov_V2.pdf\" rel=\"nofollow\">AXA Documentation<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Construction<\/h2><a id=\"user-content-construction\" class=\"anchor-element\" aria-label=\"Permalink: Construction\" href=\"#construction\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>No PCB (yet), so you must use a protoboard to connect the components. Before connecting the AXA and the MCP (if you use a socket), measure the correct voltage on the MCP2003 pins (8V) and the AXA connector. Be aware that mounting the temperature sensor as shown, will give a +5 degrees temperature due to the 'hot' Wemos module. Attach the sensor with wires, if possible.\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https:\/\/raw.githubusercontent.com\/galagaking\/espaxa\/master\/docs\/espaxa.png\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/galagaking\/espaxa\/master\/docs\/espaxa.png\" alt=\"ESPAXA\" style=\"max-width: 100%;\"><\/a><\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Programming<\/h2><a id=\"user-content-programming\" class=\"anchor-element\" aria-label=\"Permalink: Programming\" href=\"#programming\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>We use ESPHOME to create the firmware. This is more like a configuration than a program. <a href=\"https:\/\/github.com\/galagaking\/espaxa\/blob\/master\/espaxa.yaml\">espaxa.yaml<\/a> has all the definitions and is also referring to some program code in AXA\/espaxa.h. You must create this directory and put the <a href=\"https:\/\/github.com\/galagaking\/espaxa\/blob\/master\/AXA\/espaxa.h\">expaxa.h<\/a> file in it. Also fill in the WiFi credentials (or better: use the secrets file). More info on esphome\n<a href=\"https:\/\/esphome.io\/\" rel=\"nofollow\">here<\/a> or <a href=\"https:\/\/www.galagaking.org\/nl\/2019\/11\/05\/esphome-workshop\/\" rel=\"nofollow\">here<\/a>. To start, connect the ESPAXA (without connecting the AXA Remote) directly to your USB port to upload the sketch the first time. Now OTA is installed, you can upload any new sketch 'Over the Air'. ESPHOME will try to find the module itself. If not, you must manage your DHCP server and 'hardcode' an IP address. The 'Closing' sequence starts with a short 'Open' command. It seems the AXA Remote will 'block' at the end position. By sending an 'Open' command before closing, the unit will 'deblock'.<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Connecting<\/h2><a id=\"user-content-connecting\" class=\"anchor-element\" aria-label=\"Permalink: Connecting\" href=\"#connecting\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>Use a RJ12 connecter to connect the module to the AXA remote. Use the connection in the schema. Remove the batteries in the AXA Remote!\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https:\/\/github.com\/galagaking\/espaxa\/blob\/master\/docs\/20200831_155821.jpg\"><img decoding=\"async\" src=\"https:\/\/github.com\/galagaking\/espaxa\/raw\/master\/docs\/20200831_155821.jpg\" alt=\"Connector\" style=\"max-width: 100%;\"><\/a><\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Logs<\/h2><a id=\"user-content-logs\" class=\"anchor-element\" aria-label=\"Permalink: Logs\" href=\"#logs\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>By looking at the logs (you can use the webserver at the modules address, the serial port output or the esphome logs command), you can see if the module is working. It will output the WiFi connection, Home Assistant connection and at a 30 sec interval the state of your Window. If any command is given, this will show up as well.\n[20:44:04][D][sensor:092]: 'Axa Window': Sending state 0.00000  with 0 decimals of accuracy <br>\n[20:44:34][D][espaxa:054]: 211, 211 Strong Locked <br>\n[20:44:34][D][sensor:092]: 'Axa Window': Sending state 0.00000  with 0 decimals of accuracy <br>\n[20:44:59][D][cover:072]: 'Zolderraam' - Setting <br>\n[20:44:59][D][cover:082]:   Command: OPEN <br>\n[20:44:59][D][cover:152]: 'Zolderraam' - Publishing: <br>\n[20:44:59][D][cover:160]:   State: CLOSED <br>\n[20:44:59][D][cover:168]:   Current Operation: IDLE <br>\n[20:45:04][D][espaxa:054]: 210, 210 UnLocked <br><\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Home Assistant<\/h2><a id=\"user-content-home-assistant\" class=\"anchor-element\" aria-label=\"Permalink: Home Assistant\" href=\"#home-assistant\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>The ESP module will show up as a new integration. After enabling this integration, you can add the entities given in your espaxa yaml file in your interface. The objects will already use their default MDI picture.\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https:\/\/raw.githubusercontent.com\/galagaking\/espaxa\/master\/docs\/2020-08-25_22-39-03.png\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/galagaking\/espaxa\/master\/docs\/2020-08-25_22-39-03.png\" alt=\"Home Assitant\" style=\"max-width: 100%;\"><\/a><\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">Thank you<\/h2><a id=\"user-content-thank-you\" class=\"anchor-element\" aria-label=\"Permalink: Thank you\" href=\"#thank-you\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>For inspiration and examples:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/SuperHouse\/\">SuperHouse Automation<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nldroid\/CustomP1UartComponent\">nldroid CustomP1UartComponent<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">disclaimer<\/h2><a id=\"user-content-disclaimer\" class=\"anchor-element\" aria-label=\"Permalink: disclaimer\" href=\"#disclaimer\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<p>Use this project as-is, I am not responsible for any unexpected open window at your home, or any damage to any hardware. This is a creative commons project, for non-commercial use only.<\/p>\n<div class=\"markdown-heading\"><h2 class=\"heading-element\">todo<\/h2><a id=\"user-content-todo\" class=\"anchor-element\" aria-label=\"Permalink: todo\" href=\"#todo\"><span aria-hidden=\"true\" class=\"octicon octicon-link\"><\/span><\/a><\/div>\n<ul>\n<li>PCB?<\/li>\n<li>multiple AXA Remotes chained? Two should work on one power supply, more will need some adjustment in the power management.<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Controlling an AXA Remote Window controller from your Home Assistant system<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[1],"tags":[2,3],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-homeassistant","tag-esp8266","tag-esphome"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.galagaking.org\/nl\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}