{"id":441,"date":"2018-09-06T22:04:39","date_gmt":"2018-09-06T20:04:39","guid":{"rendered":"http:\/\/www.maxx.net.ua\/?p=441"},"modified":"2018-09-06T22:04:39","modified_gmt":"2018-09-06T20:04:39","slug":"%d0%b2%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%bb%d0%b5%d0%bd%d0%bd%d1%8f-%d1%82%d0%b0-%d0%be%d1%82%d1%80%d0%b8%d0%bc%d0%b0%d0%bd%d0%bd%d1%8f-%d1%81%d1%82%d0%b0%d0%bd%d1%83-%d0%b2%d0%b8%d1%85%d0%be","status":"publish","type":"post","link":"https:\/\/www.maxx.net.ua\/?p=441","title":{"rendered":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0442\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0443 \u0432\u0438\u0445\u043e\u0434\u0443\/\u0432\u0445\u043e\u0434\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e MQTT \u0448\u0438\u043d\u0438"},"content":{"rendered":"<p>\u041a\u043e\u043b\u0438 \u0432\u0438 \u043c\u0430\u0454\u0442\u0435 \u0432\u0438\u043c\u0438\u043a\u0430\u0447 \u0442\u0430 \u043b\u0430\u043c\u043f\u0443, \u043d\u0456\u0447\u043e\u0433\u043e \u0432\u0430\u043c \u043d\u0435 \u0437\u0430\u0432\u0430\u0436\u0430\u0454 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0432\u0430\u0442\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443 \u0441\u0442\u0430\u043d \u0446\u0456\u0454\u0457 \u043b\u0430\u043c\u043f\u0438 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0432\u0438\u043c\u0438\u043a\u0430\u0447\u0430, \u0430\u043b\u0435 \u043c\u0438 \u043d\u0435 \u0448\u0443\u043a\u0430\u0454\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u0438\u0445 \u0440\u0456\u0448\u0435\u043d\u044c.<\/p>\n<p>\u041c\u0430\u0454\u043c\u043e:<\/p>\n<ul>\n<li>\u0432\u0438\u043c\u0438\u043a\u0430\u0447<\/li>\n<li>\u043b\u0430\u043c\u043f\u0430<\/li>\n<li>openhab<\/li>\n<\/ul>\n<p>\u0411\u0430\u0436\u0430\u0454\u043c\u043e: \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438 \u043b\u0430\u043c\u043f\u0443 \u0442\u0430 \u0432\u0438\u043c\u0438\u043a\u0430\u0447 \u0434\u043e openhab, \u0432\u0438\u043c\u0438\u043a\u0430\u0442\u0438 \u0442\u0430 \u0432\u043c\u0438\u043a\u0430\u0442\u0438 \u043b\u0430\u043c\u043f\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0446\u044c\u043e\u0433\u043e \u0432\u0438\u043c\u0438\u043a\u0430\u0447\u0430.<\/p>\n<p><strong>\u0410\u043f\u0430\u0440\u0430\u0442\u043d\u0435 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f:<\/strong> \u0431\u0435\u0440\u0435\u043c\u043e raspberry pi (\u043c\u043e\u0436\u043d\u0430 \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430 ESP8266 \u0430\u043b\u0435 \u0454 \u0431\u0430\u0436\u0430\u043d\u043d\u044f \u043d\u0435 \u043c\u0430\u0442\u0438 WiFi \u0442\u0430\u043c, \u0434\u0435 \u0439\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u0430 \u043d\u0435 \u043c\u0430\u0442\u0438), \u043d\u0430 \u0432\u0445\u043e\u0434\u0456 \u0437\u0440\u043e\u0431\u0438\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u0443 \u0441\u0445\u0435\u043c\u0443 \u0434\u043b\u044f \u0437\u0430\u0445\u0438\u0441\u0442\u0443 (\u043d\u0443 \u044f\u043a\u0449\u043e \u0432\u0438\u043c\u0438\u043a\u0430\u0447 \u0431\u0443\u0434\u0435 \u0434\u0430\u043b\u0435\u043a\u043e, \u0430 \u043d\u0435\u043f\u043e\u0434\u0430\u043b\u0456\u043a \u0431\u0443\u0434\u0435 \u0431\u043b\u0438\u0441\u043a\u0430\u0432\u043a\u0430), \u043d\u0430 \u0432\u0438\u0445\u043e\u0434\u0456 MOC3063 (\u043d\u0430\u0432\u0456\u0442\u044c \u0431\u0435\u0437 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u043e\u0433\u043e \u0441\u0456\u043c\u0456\u0441\u0442\u043e\u0440\u0430 \u0432\u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u043a\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u0441\u0443\u0447\u0430\u0441\u043d\u0438\u043c\u0438 \u043b\u0430\u043c\u043f\u0430\u043c\u0438).<\/p>\n<p>\u0412\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0449\u043e\u0441\u044c \u0442\u0430\u043a\u0435:<\/p>\n<p><a href=\"http:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/in-out-1.png\"><img loading=\"lazy\" class=\"alignleft size-medium wp-image-444\" src=\"http:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/in-out-1-300x151.png\" alt=\"\" width=\"300\" height=\"151\" srcset=\"https:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/in-out-1-300x151.png 300w, https:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/in-out-1.png 571w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u0435 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f:<\/strong> spring-boot java \u0434\u043e\u0434\u0430\u0442\u043e\u043a. \u0414\u043e\u0434\u0430\u0442\u043e\u043a \u043c\u043e\u0436\u043d\u0430 \u0437\u043d\u0430\u0439\u0442\u0438 <a href=\"https:\/\/github.com\/maxx-ukoo\/pi-gpio-mqtt\">\u0442\u0443\u0442<\/a>.<\/p>\n<p><strong>Openhab \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044f<\/strong>:\u00a0 \u043f\u043e\u0432\u0438\u043d\u043d\u0430 \u043c\u0430\u0442\u0438 \u0442\u0430\u043a\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 \u0443 \u0441\u0435\u043a\u0446\u0456\u0457 items:<\/p>\n<pre class=\"lang:default decode:true \">Switch PI1_SW_1 { mqtt=\"&gt;[broker:\/java-switch\/gpio\/out\/GPIO 2:state:OFF:LOW],&gt;[broker:\/java-switch\/gpio\/out\/GPIO 2:state:ON:HIGH],&lt;[broker:\/java-switch\/gpio\/in\/GPIO 0:state:MAP(HILO.map)]\" }<\/pre>\n<p>\u042f\u043a \u043d\u0430\u0441\u043b\u0456\u0434\u043e\u043a, \u0432\u043e\u043d\u043e \u043f\u0440\u0430\u0446\u044e\u0454. \u0417\u0430\u0442\u0440\u0438\u043c\u043a\u0430 \u043c\u0456\u0436 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e \u0437\u0456 \u0441\u0442\u0430\u043d\u043e\u043c \u0442\u0430 \u043c\u0456\u0436 \u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e \u043d\u0430 \u0437\u043c\u0456\u043d\u0443 \u0441\u0442\u0430\u043d\u0443 \u0454 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e 50 \u043c\u0441.<\/p>\n<p>\u042f\u043a \u0434\u043e\u0434\u0430\u0442\u043e\u043a \u043c\u043e\u0436\u043d\u0430 \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044c (\u0442\u0430 \u0437\u043c\u0456\u043d\u0438\u0442\u0438) \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0441\u0442\u0430\u043d \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0432\u0435\u0431 \u0456\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443:<\/p>\n<p><a href=\"http:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/web-ui-sw.png\"><img loading=\"lazy\" class=\"alignleft size-medium wp-image-445\" src=\"http:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/web-ui-sw-300x128.png\" alt=\"\" width=\"300\" height=\"128\" srcset=\"https:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/web-ui-sw-300x128.png 300w, https:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/web-ui-sw-768x328.png 768w, https:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/web-ui-sw-1024x437.png 1024w, https:\/\/www.maxx.net.ua\/wp-content\/uploads\/2018\/09\/web-ui-sw.png 1205w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u043b\u0438 \u0432\u0438 \u043c\u0430\u0454\u0442\u0435 \u0432\u0438\u043c\u0438\u043a\u0430\u0447 \u0442\u0430 \u043b\u0430\u043c\u043f\u0443, \u043d\u0456\u0447\u043e\u0433\u043e \u0432\u0430\u043c \u043d\u0435 \u0437\u0430\u0432\u0430\u0436\u0430\u0454 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0432\u0430\u0442\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443 \u0441\u0442\u0430\u043d \u0446\u0456\u0454\u0457 \u043b\u0430\u043c\u043f\u0438 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0432\u0438\u043c\u0438\u043a\u0430\u0447\u0430, \u0430\u043b\u0435 \u043c\u0438 \u043d\u0435 \u0448\u0443\u043a\u0430\u0454\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u0438\u0445 \u0440\u0456\u0448\u0435\u043d\u044c. \u041c\u0430\u0454\u043c\u043e: \u0432\u0438\u043c\u0438\u043a\u0430\u0447 \u043b\u0430\u043c\u043f\u0430 openhab \u0411\u0430\u0436\u0430\u0454\u043c\u043e: \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438 \u043b\u0430\u043c\u043f\u0443 \u0442\u0430 \u0432\u0438\u043c\u0438\u043a\u0430\u0447 \u0434\u043e openhab, \u0432\u0438\u043c\u0438\u043a\u0430\u0442\u0438 \u0442\u0430 \u0432\u043c\u0438\u043a\u0430\u0442\u0438 \u043b\u0430\u043c\u043f\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0446\u044c\u043e\u0433\u043e \u0432\u0438\u043c\u0438\u043a\u0430\u0447\u0430. \u0410\u043f\u0430\u0440\u0430\u0442\u043d\u0435 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f: \u0431\u0435\u0440\u0435\u043c\u043e raspberry pi (\u043c\u043e\u0436\u043d\u0430 \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430 ESP8266 \u0430\u043b\u0435 \u0454 \u0431\u0430\u0436\u0430\u043d\u043d\u044f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/441"}],"collection":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=441"}],"version-history":[{"count":0,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maxx.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}