{"id":350848,"date":"2023-07-27T09:01:50","date_gmt":"2023-07-27T09:01:50","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=350848"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=350848","title":{"rendered":"<span>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board \u0438 \u043f\u0438\u0448\u0435\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u043d\u0430 wb-rules<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b62\/4d0\/29d\/b624d029dce48e6c4f7ce6dfc45af14c.jpg\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b62\/4d0\/29d\/b624d029dce48e6c4f7ce6dfc45af14c.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u042d\u0442\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0446\u0438\u043a\u043b\u0430 \u043f\u0440\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0445 Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board, \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/707678\/\"><u>\u00ab\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0443\u043c\u043d\u044b\u0439 \u0434\u043e\u043c: \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u00bb<\/u><\/a>\u00a0 \u2014 \u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0445 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u044b \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432.\u00a0<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/710177\/\"><u>\u00ab\u0421\u043b\u0435\u0437\u0430\u0435\u043c \u0441 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u0433\u043b\u044b Aqara \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board\u00bb<\/u><\/a> \u2014 \u043f\u0440\u043e \u043e\u0431\u043b\u0430\u043a\u043e Aqara \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Biard \u0441 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u043e\u0439 Sprut.hub.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/713274\/\"><u>\u00ab\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 Zigbee2mqtt \u0438 Node-RED\u00bb<\/u><\/a> \u2014 \u043f\u0440\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f Zigbee2mqtt \u0438 Node-RED.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 <a href=\"https:\/\/wirenboard.com\/ru\/product\/wiren-board-7\/\"><u>Wiren Board 7<\/u><\/a> \u0447\u0435\u0440\u0435\u0437 Zigbee2mqtt, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u043f\u0438\u0448\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u043d\u0430 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u0432\u0438\u0436\u043a\u0435 \u043f\u0440\u0430\u0432\u0438\u043b wb-rules.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f Zigbee WBE2R-R-ZIGBEE v.2<\/h2>\n<p>\u042f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043c\u043e\u0434\u0443\u043b\u044c <a href=\"https:\/\/wirenboard.com\/ru\/product\/WBE2R-R-ZIGBEE-v2\/\"><u>WBE2R-R-ZIGBEE v.2<\/u><\/a> \u0432 \u0441\u043b\u043e\u0442 MOD1 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Board 7, \u0441\u043b\u0435\u0434\u0443\u044f <a href=\"https:\/\/wirenboard.com\/wiki\/WBE2R-R-ZIGBEE_v.2_ZigBee_Extension_Module\"><u>\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443<\/u><\/a> \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/476\/8d4\/040\/4768d40405267e392069ac7975ea00cb.jpeg\" alt=\"\u041c\u043e\u0434\u0443\u043b\u044c Zigbee WBE2R-R-ZIGBEE v.2\" title=\"\u041c\u043e\u0434\u0443\u043b\u044c Zigbee WBE2R-R-ZIGBEE v.2\" width=\"1560\" height=\"1418\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/476\/8d4\/040\/4768d40405267e392069ac7975ea00cb.jpeg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u041c\u043e\u0434\u0443\u043b\u044c Zigbee WBE2R-R-ZIGBEE v.2<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0430\u043f \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u0443\u043d\u043a\u0442 \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb \u2014 \u00ab\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b\u00bb \u2014 \u00ab\u041c\u043e\u0434\u0443\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u0440\u0442\u044b\u00bb, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043b\u044f \u00ab\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u043b\u043e\u0442\u0430 1\u00bb \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0438\u043f \u043c\u043e\u0434\u0443\u043b\u044f WBE2R-R-ZIGBEE. \u041e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \/dev\/ttyMOD1.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d2f\/b7e\/361\/d2fb7e361578dfee2bb19951c9900009.png\" alt=\"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043c\u043e\u0434\u0443\u043b\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Board 7\" title=\"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043c\u043e\u0434\u0443\u043b\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Board 7\" width=\"1560\" height=\"1103\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d2f\/b7e\/361\/d2fb7e361578dfee2bb19951c9900009.png\"\/><\/p>\n<div><figcaption>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043c\u043e\u0434\u0443\u043b\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Board 7<\/figcaption><\/div>\n<\/figure>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Zigbee<\/h2>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0430\u043f \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Zigbee \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board. \u041e\u043d \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/wirenboard.com\/wiki\/Zigbee\"><u>\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435<\/u><\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0431\u0435\u0433\u0443\u0441\u044c \u043b\u0438\u0448\u044c \u0432\u043a\u0440\u0430\u0442\u0446\u0435.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <strong>zigbee2mqtt<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code>apt update &amp;&amp; apt install zigbee2mqtt<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u043d\u0435\u0441\u0442\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0435 \u0432 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1c6\/3a1\/caf\/1c63a1caf06a75641c2bbf29a8bc6fc5.png\" alt=\"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b configuration.yaml\" title=\"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b configuration.yaml\" width=\"725\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1c6\/3a1\/caf\/1c63a1caf06a75641c2bbf29a8bc6fc5.png\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>configuration.yaml<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0442\u0430\u043f \u2014 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 <strong>wb-zigbee2mqtt<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Zigbee \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Devices<\/strong> \u0432 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9c1\/14c\/084\/9c114c084a1cc2b4952e4a089289431f.png\" alt=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 zigbee2mqtt\" title=\"\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 zigbee2mqtt\" width=\"356\" height=\"207\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9c1\/14c\/084\/9c114c084a1cc2b4952e4a089289431f.png\"\/><\/p>\n<div><figcaption>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <strong>zigbee2mqtt<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438 <strong>Permit Join<\/strong> \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0443\u0442\u0435\u043c \u0438\u0445 \u0441\u0431\u0440\u043e\u0441\u0430, \u043a\u0430\u043a \u044f \u0434\u0435\u043b\u0430\u043b \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b6d\/7b2\/413\/b6d7b24136c59a82c1121c75f7587b8d.png\" alt=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c\" title=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c\" width=\"351\" height=\"155\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b6d\/7b2\/413\/b6d7b24136c59a82c1121c75f7587b8d.png\"\/><\/p>\n<div><figcaption>\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c<\/figcaption><\/div>\n<\/figure>\n<p>\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 Wiren Board, \u043d\u043e \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 \u0444\u0430\u0439\u043b <strong>configuration.yaml<\/strong> \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u044f \u0438 \u0441\u0434\u0435\u043b\u0430\u043b. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/wirenboard.com\/wiki\/Zigbee\"><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/u><\/a>.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c20\/127\/d97\/c20127d97171dd91ca9122c5919c254b.png\" alt=\"\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\" title=\"\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\" width=\"352\" height=\"157\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c20\/127\/d97\/c20127d97171dd91ca9122c5919c254b.png\"\/><\/p>\n<div><figcaption>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0432\u0441\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Aqara \u0438 \u0437\u0430\u0434\u0430\u043b \u0438\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 Lamp, Socket, Motion Sensor, Temperature Sensor.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/41b\/4bf\/256\/41b4bf25640036db11a5e7f36b6f82e8.png\" alt=\"\u0424\u0430\u0439\u043b configuration.yaml \u0441 \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438\" title=\"\u0424\u0430\u0439\u043b configuration.yaml \u0441 \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438\" width=\"725\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/41b\/4bf\/256\/41b4bf25640036db11a5e7f36b6f82e8.png\"\/><\/p>\n<div><figcaption>\u0424\u0430\u0439\u043b <strong>configuration.yaml \u0441 \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0435\u0440\u0435\u0437 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <a href=\"https:\/\/wirenboard.com\/ru\/product\/wiren-board-7\/\"><u>Wiren Board 7<\/u><\/a> \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 Zigbee \u043d\u0435\u043b\u044c\u0437\u044f, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b wb-rules.<\/p>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/h2>\n<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b wb-rules. \u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430<a href=\"https:\/\/wirenboard.com\/wiki\/Wb-rules\"> <u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>. \u0422\u0430\u043c \u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430 \u0438 \u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u044b.<\/p>\n<p>\u041c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Wiren Board, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0443. \u0412 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb \u2013 \u00ab\u041a\u0430\u043d\u0430\u043b\u044b MQTT\u00bb, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u0438 \u0442\u0435\u043c\u044b MQTT. \u0422\u0430\u043c \u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ca6\/4c0\/4f9\/ca64c04f946cd9e4459b0115a115a779.png\" alt=\"\u041a\u0430\u043d\u0430\u043b\u044b MQTT\" title=\"\u041a\u0430\u043d\u0430\u043b\u044b MQTT\" width=\"1600\" height=\"976\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ca6\/4c0\/4f9\/ca64c04f946cd9e4459b0115a115a779.png\"\/><\/p>\n<div><figcaption>\u041a\u0430\u043d\u0430\u043b\u044b MQTT<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u0430\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dd1\/283\/a07\/dd1283a079632bf7237c2d6577c92fc8.png\" alt=\"\u041f\u0440\u0430\u0432\u0438\u043b\u0430\" title=\"\u041f\u0440\u0430\u0432\u0438\u043b\u0430\" width=\"820\" height=\"629\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd1\/283\/a07\/dd1283a079632bf7237c2d6577c92fc8.png\"\/><\/p>\n<div><figcaption>\u041f\u0440\u0430\u0432\u0438\u043b\u0430<\/figcaption><\/div>\n<\/figure>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430<\/h2>\n<p>\u0414\u043b\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c. \u042f \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445<a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"> <u>Max Motion<\/u><\/a>, \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/731\/669\/f30\/731669f303480eda9bb223b1dfafdeb9.png\" alt=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b Aqara Temperature and Humidity Sensor\" title=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b Aqara Temperature and Humidity Sensor\" width=\"628\" height=\"588\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/731\/669\/f30\/731669f303480eda9bb223b1dfafdeb9.png\"\/><\/p>\n<div><figcaption>\u0414\u0430\u0442\u0447\u0438\u043a \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b Aqara Temperature and Humidity Sensor<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/762\/61b\/2a6\/76261b2a6a5caaab6e763e37e08c948c.png\" alt=\"\u0423\u043c\u043d\u0430\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u0430 Aqara Smart Plug\" title=\"\u0423\u043c\u043d\u0430\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u0430 Aqara Smart Plug\" width=\"1374\" height=\"1600\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/762\/61b\/2a6\/76261b2a6a5caaab6e763e37e08c948c.png\"\/><\/p>\n<div><figcaption>\u0423\u043c\u043d\u0430\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u0430 Aqara Smart Plug<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b Temperature Sensor\/temperature, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u043b \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 19 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432, \u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u044e \u0440\u043e\u0437\u0435\u0442\u043a\u0443. \u0418\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e, \u0447\u0442\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 23 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e \u0440\u043e\u0437\u0435\u0442\u043a\u0443. \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043c\u0435\u0436\u0434\u0443 19 \u0438 23 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u043c\u0438, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u044e.<\/p>\n<p>\u042f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 wb-rules. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 wb-zigbee2mqtt \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043d\u043e \u0432\u043e\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 Zigbee \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/p>\n<pre><code class=\"javascript\">dev[\"Socket\/set\"] = 'ON';<\/code><\/pre>\n<p>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c MQTT \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438\u00a0 \u043a\u043e\u043c\u0430\u043d\u0434\u044b publish<\/p>\n<pre><code class=\"javascript\">publish(\"zigbee2mqtt\/Socket\/set\", JSON.stringify({ state: \"ON\" }), 2, false);<\/code><\/pre>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.  <\/p>\n<pre><code class=\"javascript\">defineRule('Termostat', {     whenChanged: \"Temperature Sensor\/temperature\",     then: function(newValue, devName, cellName) {         if (newValue &lt; 19) {         publish(\"zigbee2mqtt\/Socket\/set\", JSON.stringify({ state: \"ON\" }), 2, false);             } else {             if (newValue > 23) {              publish(\"zigbee2mqtt\/Socket\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);               }          }     } });<\/code><\/pre>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u044b<\/h2>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u2014 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0449\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u0430\u0439\u043c\u0435\u0440 \u044f \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0430 \u0434\u0432\u0435 \u043c\u0438\u043d\u0443\u0442\u044b. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0435\u0441\u0442\u044c (\u0434\u0430\u0442\u0447\u0438\u043a \u0432\u044b\u0441\u043b\u0430\u043b true), \u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u0430\u043c\u043f\u0443, \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u0442 (\u0434\u0430\u0442\u0447\u0438\u043a \u0432\u044b\u0441\u043b\u0430\u043b false), \u0442\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0435\u0435 \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u0430\u043c\u043f\u0443. \u0415\u0441\u043b\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0442\u0430\u0439\u043c\u0435\u0440 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u0441\u044f.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0d8\/5a1\/ea7\/0d85a1ea7319ebc84e5c06e8257df35b.png\" alt=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f Aqara Motion Sensor\" title=\"\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f Aqara Motion Sensor\" width=\"1560\" height=\"934\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0d8\/5a1\/ea7\/0d85a1ea7319ebc84e5c06e8257df35b.png\"\/><\/p>\n<div><figcaption>\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f Aqara Motion Sensor<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/983\/a5b\/a26\/983a5ba26508bf3519c808a1b58e734d.png\" alt=\"\u0423\u043c\u043d\u0430\u044f \u043b\u0430\u043c\u043f\u0430 Aqara LED Light Bulb, E27, 9\u0412\u0442\" title=\"\u0423\u043c\u043d\u0430\u044f \u043b\u0430\u043c\u043f\u0430 Aqara LED Light Bulb, E27, 9\u0412\u0442\" width=\"1560\" height=\"825\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/983\/a5b\/a26\/983a5ba26508bf3519c808a1b58e734d.png\"\/><\/p>\n<div><figcaption>\u0423\u043c\u043d\u0430\u044f \u043b\u0430\u043c\u043f\u0430 Aqara LED Light Bulb, E27, 9\u0412\u0442<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u0430\u0442\u0447\u0438\u043a \u0432\u044b\u0441\u044b\u043b\u0430\u0435\u0442 true \u0438\u043b\u0438 false \u043a\u0430\u043a \u0442\u0435\u043a\u0441\u0442, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043d\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u044f \u043d\u0430\u0448\u0435\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 <strong>\u00ab\u0414\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f c \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u043e\u043c\u00bb<\/strong> \u043d\u0430<a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"> <u>\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432<\/u><\/a>.<\/p>\n<pre><code class=\"javascript\">var motion_timer_1_timeout_ms = 120 * 1000; var motion_timer_1_id = null;  defineRule(\"motion_detector_1\", {     whenChanged: \"Motion Sensor\/occupancy\",     then: function (newValue, devName, cellName) {              if (newValue == \"true\") {             publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"ON\" }), 2, false);             if (motion_timer_1_id) {                 clearTimeout(motion_timer_1_id);             }        }       else {                  motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);   }                }, });<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u044b \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u041d\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043b\u0430\u043c\u043f\u0443 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u0435\u0440\u0430\u043d\u0434\u0435 \u0438\u043b\u0438 \u0432 \u043a\u043e\u0440\u0438\u0434\u043e\u0440\u0435 \u0441 \u043e\u043a\u043d\u0430\u043c\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u0435\u043c\u043d\u043e\u0442\u0435 \u0438\u043b\u0438 \u0441\u0443\u043c\u0435\u0440\u043a\u0430\u0445. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430. \u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0438\u0436\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043e\u043b\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0434\u043d\u0435\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u043d\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b. \u041d\u043e \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u044b\u0448\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u043b\u0430\u043c\u043f, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u0447\u0438\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0438\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0432 \u043a\u043e\u0440\u0438\u0434\u043e\u0440\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0434\u0435\u0441\u044f\u0442\u0438 \u043c\u0438\u043d\u0443\u0442, \u0441\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0433\u043e\u0440\u0435\u0442\u044c). \u042f \u0432\u0437\u044f\u043b \u0437\u0430 \u043f\u043e\u0440\u043e\u0433 100 \u043b\u044e\u043a\u0441 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435. \u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 100 \u043b\u044e\u043a\u0441. \u0415\u0441\u043b\u0438 \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 100 \u043b\u044e\u043a\u0441, \u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u0442\u0430\u0439\u043c\u0435\u0440 \u043b\u0430\u043c\u043f\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430.  <\/p>\n<pre><code class=\"javascript\">var motion_timer_1_timeout_ms = 120 * 1000; var motion_timer_1_id = null;  defineRule(\"motion_detector_1\", {     whenChanged: \"Motion Sensor\/occupancy\",     then: function (newValue, devName, cellName) {              if (dev[\"Motion Sensor\/illuminance\"] &lt; 100) {                               if (newValue == \"true\") {             publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"ON\" }), 2, false);             if (motion_timer_1_id) {                 clearTimeout(motion_timer_1_id);             }        }       else {                  motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);   }       }      else {       motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);                }              }, });<\/code><\/pre>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0435\u043b\u0435<\/h2>\n<p>\u0414\u0432\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0432\u044b\u0448\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Zigbee \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c Wiren Board, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438? \u0412 \u043c\u043e\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0435\u043b\u0435 <a href=\"https:\/\/wirenboard.com\/ru\/product\/WB-MR6C_v2\/\"><u>WB-MR6C v.2<\/u><\/a>, \u043a \u0442\u0440\u0435\u043c \u043a\u0430\u043d\u0430\u043b\u0430\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e (K1, K2, K3) \u0448\u0442\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0442\u0440\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a80\/dd2\/630\/a80dd26300f0f5b4b0ae07c968c8bc8a.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0430\" title=\"\u0421\u0445\u0435\u043c\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0430\" width=\"1600\" height=\"1165\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a80\/dd2\/630\/a80dd26300f0f5b4b0ae07c968c8bc8a.png\"\/><\/p>\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0430<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d8d\/04c\/edf\/d8d04cedf657d1110c9f51bd68ffb4ef.jpeg\" alt=\"\u041a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043d\u043e\u043f\u043e\u043a\" title=\"\u041a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043d\u043e\u043f\u043e\u043a\" width=\"1600\" height=\"1152\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d8d\/04c\/edf\/d8d04cedf657d1110c9f51bd68ffb4ef.jpeg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u041a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043d\u043e\u043f\u043e\u043a<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/8e9\/f5d\/a95\/8e9f5da95de15af00932b234f87b03f4.jpeg\" alt=\"\u041c\u043e\u0434\u0443\u043b\u0438 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0435, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0435\u043b\u0435\u0439\u043d\u044b\u0439 WB-MR6C v.2\" title=\"\u041c\u043e\u0434\u0443\u043b\u0438 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0435, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0435\u043b\u0435\u0439\u043d\u044b\u0439 WB-MR6C v.2\" width=\"1600\" height=\"866\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8e9\/f5d\/a95\/8e9f5da95de15af00932b234f87b03f4.jpeg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u041c\u043e\u0434\u0443\u043b\u0438 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0435, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0435\u043b\u0435\u0439\u043d\u044b\u0439 WB-MR6C v.2<\/figcaption><\/div>\n<\/figure>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u00a0 \u0440\u0435\u043b\u0435 \u044f \u043f\u043e\u0434\u0433\u043b\u044f\u0434\u0435\u043b \u0432 <a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"><u>\u0441\u0442\u0430\u0442\u044c\u0435 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438<\/u><\/a>. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0430\u0448\u0435\u043b \u0432 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <strong>\u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb<\/strong> &#8212; <strong>\u00ab\u041a\u0430\u043d\u0430\u043b\u044b MQTT\u00bb<\/strong>.<\/p>\n<pre><code class=\"javascript\">var motion_timer_1_timeout_ms = 120 * 1000; var motion_timer_1_id = null;  defineRule(\"motion_detector_1\", {     whenChanged: \"Motion Sensor\/occupancy\",     then: function (newValue, devName, cellName) {              if (dev[\"Motion Sensor\/illuminance\"] &lt; 100) {                               if (newValue == \"true\") {             publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"ON\" }), 2, false);                     dev[\"wb-mr6c_46\/K1\"] = true;                     dev[\"wb-mr6c_46\/K2\"] = true;                     dev[\"wb-mr6c_46\/K3\"] = true;             if (motion_timer_1_id) {                 clearTimeout(motion_timer_1_id);             }        }       else {                  motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                     dev[\"wb-mr6c_46\/K1\"] = false;                     dev[\"wb-mr6c_46\/K2\"] = false;                     dev[\"wb-mr6c_46\/K3\"] = false;                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);   }       }      else {       motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                     dev[\"wb-mr6c_46\/K1\"] = false;                     dev[\"wb-mr6c_46\/K2\"] = false;                     dev[\"wb-mr6c_46\/K3\"] = false;                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);                }              }, });<\/code><\/pre>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043b\u0430\u043c\u043f\u043e\u0439 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438 \u0442\u0440\u0438 \u043a\u0430\u043d\u0430\u043b\u0430 \u0440\u0435\u043b\u0435. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a \u043d\u0438\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 \u0434\u0432\u0438\u0436\u043a\u0435 \u043f\u0440\u0430\u0432\u0438\u043b wb-rules \u043e\u0442\u043d\u044e\u0434\u044c \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e. \u0415\u0441\u0442\u044c<a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"> <u>\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438<\/u><\/a>, \u044f \u0432\u0437\u044f\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438 \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u0445 \u043f\u043e\u0434 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043d\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432, \u043d\u043e \u043c\u0435\u0442\u043e\u0434 \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0434\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<p>\u0420\u0430\u043d\u0435\u0435 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b<a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/710177\/\"> <u>Sprut.hub<\/u><\/a> \u0438<a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/713274\/\"> <u>Node-RED<\/u><\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u043e\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435 \u043e\u0441\u0432\u043e\u0438\u0442\u044c. \u041e\u043d\u0438 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0435\u0448\u0430\u044e\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b wb-rules \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0432 \u044d\u0442\u043e\u043c \u043d\u0435\u0442. \u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0432\u0430\u043c \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e.<\/p>\n<p>\u041f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0447\u0442\u043e \u0432\u0430\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u0440\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u043c\u0438 \u0438 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/companies\/wirenboard\/articles\/750640\/\"> https:\/\/habr.com\/ru\/companies\/wirenboard\/articles\/750640\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u042d\u0442\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0446\u0438\u043a\u043b\u0430 \u043f\u0440\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0445 Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board, \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/707678\/\"><u>\u00ab\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0443\u043c\u043d\u044b\u0439 \u0434\u043e\u043c: \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u00bb<\/u><\/a>\u00a0 \u2014 \u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0445 \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u044b \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432.\u00a0<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/710177\/\"><u>\u00ab\u0421\u043b\u0435\u0437\u0430\u0435\u043c \u0441 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u0433\u043b\u044b Aqara \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board\u00bb<\/u><\/a> \u2014 \u043f\u0440\u043e \u043e\u0431\u043b\u0430\u043a\u043e Aqara \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Biard \u0441 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u043e\u0439 Sprut.hub.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/wirenboard\/blog\/713274\/\"><u>\u00ab\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 Zigbee2mqtt \u0438 Node-RED\u00bb<\/u><\/a> \u2014 \u043f\u0440\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f Zigbee2mqtt \u0438 Node-RED.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Zigbee-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 <a href=\"https:\/\/wirenboard.com\/ru\/product\/wiren-board-7\/\"><u>Wiren Board 7<\/u><\/a> \u0447\u0435\u0440\u0435\u0437 Zigbee2mqtt, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u043f\u0438\u0448\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u043d\u0430 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u0432\u0438\u0436\u043a\u0435 \u043f\u0440\u0430\u0432\u0438\u043b wb-rules.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f Zigbee WBE2R-R-ZIGBEE v.2<\/h2>\n<p>\u042f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u043c\u043e\u0434\u0443\u043b\u044c <a href=\"https:\/\/wirenboard.com\/ru\/product\/WBE2R-R-ZIGBEE-v2\/\"><u>WBE2R-R-ZIGBEE v.2<\/u><\/a> \u0432 \u0441\u043b\u043e\u0442 MOD1 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Board 7, \u0441\u043b\u0435\u0434\u0443\u044f <a href=\"https:\/\/wirenboard.com\/wiki\/WBE2R-R-ZIGBEE_v.2_ZigBee_Extension_Module\"><u>\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443<\/u><\/a> \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041c\u043e\u0434\u0443\u043b\u044c Zigbee WBE2R-R-ZIGBEE v.2<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0430\u043f \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u0443\u043d\u043a\u0442 \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb \u2014 \u00ab\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b\u00bb \u2014 \u00ab\u041c\u043e\u0434\u0443\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u0440\u0442\u044b\u00bb, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043b\u044f \u00ab\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u043b\u043e\u0442\u0430 1\u00bb \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0438\u043f \u043c\u043e\u0434\u0443\u043b\u044f WBE2R-R-ZIGBEE. \u041e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \/dev\/ttyMOD1.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043c\u043e\u0434\u0443\u043b\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Wiren Board 7<\/figcaption><\/div>\n<\/figure>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Zigbee<\/h2>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0430\u043f \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Zigbee \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 Wiren Board. \u041e\u043d \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/wirenboard.com\/wiki\/Zigbee\"><u>\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435<\/u><\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0431\u0435\u0433\u0443\u0441\u044c \u043b\u0438\u0448\u044c \u0432\u043a\u0440\u0430\u0442\u0446\u0435.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <strong>zigbee2mqtt<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code>apt update &amp;&amp; apt install zigbee2mqtt<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u043d\u0435\u0441\u0442\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0435 \u0432 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <strong>configuration.yaml<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0442\u0430\u043f \u2014 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 <strong>wb-zigbee2mqtt<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Zigbee \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Devices<\/strong> \u0432 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<figure class=\"\">\n<div><figcaption>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <strong>zigbee2mqtt<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438 <strong>Permit Join<\/strong> \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0443\u0442\u0435\u043c \u0438\u0445 \u0441\u0431\u0440\u043e\u0441\u0430, \u043a\u0430\u043a \u044f \u0434\u0435\u043b\u0430\u043b \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<figure class=\"\">\n<div><figcaption>\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c<\/figcaption><\/div>\n<\/figure>\n<p>\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 Wiren Board, \u043d\u043e \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 \u0444\u0430\u0439\u043b <strong>configuration.yaml<\/strong> \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u044f \u0438 \u0441\u0434\u0435\u043b\u0430\u043b. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/wirenboard.com\/wiki\/Zigbee\"><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/u><\/a>.<\/p>\n<figure class=\"\">\n<div><figcaption>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0432\u0441\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Aqara \u0438 \u0437\u0430\u0434\u0430\u043b \u0438\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 Lamp, Socket, Motion Sensor, Temperature Sensor.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0424\u0430\u0439\u043b <strong>configuration.yaml \u0441 \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438<\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0435\u0440\u0435\u0437 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <a href=\"https:\/\/wirenboard.com\/ru\/product\/wiren-board-7\/\"><u>Wiren Board 7<\/u><\/a> \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 Zigbee \u043d\u0435\u043b\u044c\u0437\u044f, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b wb-rules.<\/p>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/h2>\n<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b wb-rules. \u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430<a href=\"https:\/\/wirenboard.com\/wiki\/Wb-rules\"> <u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>. \u0422\u0430\u043c \u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430 \u0438 \u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u044b.<\/p>\n<p>\u041c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Wiren Board, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0443. \u0412 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb \u2013 \u00ab\u041a\u0430\u043d\u0430\u043b\u044b MQTT\u00bb, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b \u0438 \u0442\u0435\u043c\u044b MQTT. \u0422\u0430\u043c \u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041a\u0430\u043d\u0430\u043b\u044b MQTT<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u0430\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u0430\u0432\u0438\u043b\u0430<\/figcaption><\/div>\n<\/figure>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430<\/h2>\n<p>\u0414\u043b\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c. \u042f \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445<a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"> <u>Max Motion<\/u><\/a>, \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0430 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u0430\u0442\u0447\u0438\u043a \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b Aqara Temperature and Humidity Sensor<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0423\u043c\u043d\u0430\u044f \u0440\u043e\u0437\u0435\u0442\u043a\u0430 Aqara Smart Plug<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b Temperature Sensor\/temperature, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u043b \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 19 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432, \u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u044e \u0440\u043e\u0437\u0435\u0442\u043a\u0443. \u0418\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e, \u0447\u0442\u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 23 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044e \u0440\u043e\u0437\u0435\u0442\u043a\u0443. \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043c\u0435\u0436\u0434\u0443 19 \u0438 23 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u043c\u0438, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u044e.<\/p>\n<p>\u042f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 wb-rules. \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 wb-zigbee2mqtt \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u043d\u043e \u0432\u043e\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 Zigbee \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/p>\n<pre><code class=\"javascript\">dev[\"Socket\/set\"] = 'ON';<\/code><\/pre>\n<p>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c MQTT \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438\u00a0 \u043a\u043e\u043c\u0430\u043d\u0434\u044b publish<\/p>\n<pre><code class=\"javascript\">publish(\"zigbee2mqtt\/Socket\/set\", JSON.stringify({ state: \"ON\" }), 2, false);<\/code><\/pre>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.  <\/p>\n<pre><code class=\"javascript\">defineRule('Termostat', {     whenChanged: \"Temperature Sensor\/temperature\",     then: function(newValue, devName, cellName) {         if (newValue &lt; 19) {         publish(\"zigbee2mqtt\/Socket\/set\", JSON.stringify({ state: \"ON\" }), 2, false);             } else {             if (newValue > 23) {              publish(\"zigbee2mqtt\/Socket\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);               }          }     } });<\/code><\/pre>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u044b<\/h2>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u2014 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0442\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f. \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0449\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u0430\u0439\u043c\u0435\u0440 \u044f \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0430 \u0434\u0432\u0435 \u043c\u0438\u043d\u0443\u0442\u044b. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0435\u0441\u0442\u044c (\u0434\u0430\u0442\u0447\u0438\u043a \u0432\u044b\u0441\u043b\u0430\u043b true), \u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u0430\u043c\u043f\u0443, \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u0442 (\u0434\u0430\u0442\u0447\u0438\u043a \u0432\u044b\u0441\u043b\u0430\u043b false), \u0442\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0435\u0435 \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u0430\u043c\u043f\u0443. \u0415\u0441\u043b\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0442\u0430\u0439\u043c\u0435\u0440 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u0441\u044f.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f Aqara Motion Sensor<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0423\u043c\u043d\u0430\u044f \u043b\u0430\u043c\u043f\u0430 Aqara LED Light Bulb, E27, 9\u0412\u0442<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u0430\u0442\u0447\u0438\u043a \u0432\u044b\u0441\u044b\u043b\u0430\u0435\u0442 true \u0438\u043b\u0438 false \u043a\u0430\u043a \u0442\u0435\u043a\u0441\u0442, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043d\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u044f \u043d\u0430\u0448\u0435\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 <strong>\u00ab\u0414\u0435\u0442\u0435\u043a\u0442\u043e\u0440 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f c \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u043e\u043c\u00bb<\/strong> \u043d\u0430<a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"> <u>\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432<\/u><\/a>.<\/p>\n<pre><code class=\"javascript\">var motion_timer_1_timeout_ms = 120 * 1000; var motion_timer_1_id = null;  defineRule(\"motion_detector_1\", {     whenChanged: \"Motion Sensor\/occupancy\",     then: function (newValue, devName, cellName) {              if (newValue == \"true\") {             publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"ON\" }), 2, false);             if (motion_timer_1_id) {                 clearTimeout(motion_timer_1_id);             }        }       else {                  motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);   }                }, });<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0442\u0435\u043c\u043d\u043e\u0439 \u043a\u043e\u043c\u043d\u0430\u0442\u044b \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u041d\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043b\u0430\u043c\u043f\u0443 \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u0435\u0440\u0430\u043d\u0434\u0435 \u0438\u043b\u0438 \u0432 \u043a\u043e\u0440\u0438\u0434\u043e\u0440\u0435 \u0441 \u043e\u043a\u043d\u0430\u043c\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u0435\u043c\u043d\u043e\u0442\u0435 \u0438\u043b\u0438 \u0441\u0443\u043c\u0435\u0440\u043a\u0430\u0445. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430. \u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0438\u0436\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043e\u043b\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u0434\u043d\u0435\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u043d\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b. \u041d\u043e \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u044b\u0448\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u043b\u0430\u043c\u043f, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u0447\u0438\u043a \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0438\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0432 \u043a\u043e\u0440\u0438\u0434\u043e\u0440\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0434\u0435\u0441\u044f\u0442\u0438 \u043c\u0438\u043d\u0443\u0442, \u0441\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0433\u043e\u0440\u0435\u0442\u044c). \u042f \u0432\u0437\u044f\u043b \u0437\u0430 \u043f\u043e\u0440\u043e\u0433 100 \u043b\u044e\u043a\u0441 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435. \u0414\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 100 \u043b\u044e\u043a\u0441. \u0415\u0441\u043b\u0438 \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 100 \u043b\u044e\u043a\u0441, \u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u0442\u0430\u0439\u043c\u0435\u0440 \u043b\u0430\u043c\u043f\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430.  <\/p>\n<pre><code class=\"javascript\">var motion_timer_1_timeout_ms = 120 * 1000; var motion_timer_1_id = null;  defineRule(\"motion_detector_1\", {     whenChanged: \"Motion Sensor\/occupancy\",     then: function (newValue, devName, cellName) {              if (dev[\"Motion Sensor\/illuminance\"] &lt; 100) {                               if (newValue == \"true\") {             publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"ON\" }), 2, false);             if (motion_timer_1_id) {                 clearTimeout(motion_timer_1_id);             }        }       else {                  motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);   }       }      else {       motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);                }              }, });<\/code><\/pre>\n<h2>\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0435\u043b\u0435<\/h2>\n<p>\u0414\u0432\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f \u0432\u044b\u0448\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0431\u0435\u0441\u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 Zigbee \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c Wiren Board, \u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438? \u0412 \u043c\u043e\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0435\u043b\u0435 <a href=\"https:\/\/wirenboard.com\/ru\/product\/WB-MR6C_v2\/\"><u>WB-MR6C v.2<\/u><\/a>, \u043a \u0442\u0440\u0435\u043c \u043a\u0430\u043d\u0430\u043b\u0430\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e (K1, K2, K3) \u0448\u0442\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0442\u0440\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0430<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u041a\u043e\u043b\u044c\u0446\u0435\u0432\u044b\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043d\u043e\u043f\u043e\u043a<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u041c\u043e\u0434\u0443\u043b\u0438 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0447\u0435\u043c\u043e\u0434\u0430\u043d\u0435, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0435\u043b\u0435\u0439\u043d\u044b\u0439 WB-MR6C v.2<\/figcaption><\/div>\n<\/figure>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u00a0 \u0440\u0435\u043b\u0435 \u044f \u043f\u043e\u0434\u0433\u043b\u044f\u0434\u0435\u043b \u0432 <a href=\"https:\/\/wirenboard.com\/wiki\/Rule_Examples\"><u>\u0441\u0442\u0430\u0442\u044c\u0435 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438<\/u><\/a>. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0430\u0448\u0435\u043b \u0432 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <strong>\u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb<\/strong> &#8212; <strong>\u00ab\u041a\u0430\u043d\u0430\u043b\u044b MQTT\u00bb<\/strong>.<\/p>\n<pre><code class=\"javascript\">var motion_timer_1_timeout_ms = 120 * 1000; var motion_timer_1_id = null;  defineRule(\"motion_detector_1\", {     whenChanged: \"Motion Sensor\/occupancy\",     then: function (newValue, devName, cellName) {              if (dev[\"Motion Sensor\/illuminance\"] &lt; 100) {                               if (newValue == \"true\") {             publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"ON\" }), 2, false);                     dev[\"wb-mr6c_46\/K1\"] = true;                     dev[\"wb-mr6c_46\/K2\"] = true;                     dev[\"wb-mr6c_46\/K3\"] = true;             if (motion_timer_1_id) {                 clearTimeout(motion_timer_1_id);             }        }       else {                  motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                     dev[\"wb-mr6c_46\/K1\"] = false;                     dev[\"wb-mr6c_46\/K2\"] = false;                     dev[\"wb-mr6c_46\/K3\"] = false;                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);   }       }      else {       motion_timer_1_id = setTimeout(function () {                 publish(\"zigbee2mqtt\/Lamp\/set\", JSON.stringify({ state: \"OFF\" }), 2, false);                     dev[\"wb-mr6c_46\/K1\"] = false;                     dev[\"wb-mr6c_46\/K2\"] = false;                     dev[\"wb-mr6c_46\/K3\"] = false;                 motion_timer_1_id = null;             }, motion_timer_1_timeout_ms);    <\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-350848","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/350848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=350848"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/350848\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=350848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=350848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}