{"id":318125,"date":"2021-02-16T21:01:36","date_gmt":"2021-02-16T21:01:36","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=318125"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=318125","title":{"rendered":"C\u0447\u0435\u0442\u0447\u0438\u043a \u0433\u0430\u0437\u0430 \u0432 Home Assistant \u0431\u0435\u0437 \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u0435\u043b \u0441\u0447\u0451\u0442 \u0437\u0430 \u0433\u0430\u0437 \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u0430\u043b\u043e \u043d\u0435 \u043f\u043e \u0441\u0435\u0431\u0435, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0433\u0430\u0437\u0430 \u0432 \u0441\u0432\u043e\u0439 \u0443\u043c\u043d\u044b\u0439 \u0434\u043e\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 Raspberry Pi + Home Assistant, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0445\u043e\u0434 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u043f\u043e\u043b\u0435\u0437 \u043d\u0430 \u0425\u0430\u0431\u0440, \u0438 \u043a \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e, \u0441\u0440\u0435\u0434\u0438 \u043d\u0435 \u043c\u0430\u043b\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432, \u0438 \u0434\u0430\u0436\u0435 \u043f\u0430\u0440\u044b \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e \u0441\u043d\u044f\u0442\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0433\u0430\u0437\u0430, \u043d\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u043b.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f 2014 \u0433\u043e\u0434\u0430 \u043e\u0431 <a href=\"https:\/\/habr.com\/ru\/post\/220869\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0441\u043d\u044f\u0442\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430<\/a>, \u043d\u043e \u0432 \u043d\u0435\u0439 \u043d\u0438 \u0441\u043b\u043e\u0432\u0430 \u043d\u0438 \u043e Home Assistant \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438 \u043e \u0435\u0433\u043e <a href=\"https:\/\/www.home-assistant.io\/integrations\/seven_segments\/\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432<\/a> \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044f 2018 \u0433\u043e\u0434\u0430 \u043e\u0431 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0434\u043b\u044f <a href=\"https:\/\/habr.com\/ru\/post\/409829\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043d\u044f\u0442\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u044b\u043b \u0431\u044b \u0440\u0430\u0434 \u043a\u0443\u043f\u0438\u0442\u044c, \u043d\u043e \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0443\u044e \u043f\u0440\u043e\u0434\u0430\u0436\u0443 \u043e\u043d\u043e \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u043e.<\/p>\n<p>\u0427\u0438\u0442\u0430\u044f \u044d\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u044e 2018 \u0433\u043e\u0434\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/418573\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e \u0412\u043e\u0442\u0435\u0440\u0438\u0443\u0441<\/a>, \u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044e 2020 \u0433\u043e\u0434\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/503646\/\" rel=\"noopener noreferrer nofollow\">\u0423\u043c\u043d\u0430\u044f \u0445\u0440\u0443\u0449\u0451\u0432\u043a\u0430 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u043a\u0430\u0445<\/a>) \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0435 \u043d\u0430 \u0434\u0432\u0430 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f (offline \u0438 online), \u0430 \u043d\u0430 \u0442\u0440\u0438. \u041f\u043e\u043c\u0438\u043c\u043e 3-\u0433\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e, \u0435\u0441\u0442\u044c \u0435\u0449\u0435 2-\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0430\u043c\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0441\u0435\u0442\u0438 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u043d\u043e \u0441\u043d\u0430\u0431\u0436\u0435\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 (\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043b\u0438 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0445), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0443 \u043c\u043e\u0434\u0443\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u0442\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>\u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0441\u0432\u043e\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0433\u0430\u0437\u0430 (\u0438\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f BK-G4) \u044f \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d (\u043c\u0430\u0433\u043d\u0438\u0442\u0438\u043a \u043d\u0430 \u0431\u0430\u0440\u0430\u0431\u0430\u043d\u0435 \u043c\u043b\u0430\u0434\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0440\u044f\u0434\u0430), \u043d\u043e \u0438 \u0434\u0430\u0436\u0435 \u0442\u043e, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/zen.yandex.ru\/media\/id\/5f5bea45267c75477b342dab\/integriruem-schetchik-gaza-v-home-assistant-5f7f6c9bbd4c4645564d093d\" rel=\"noopener noreferrer nofollow\">\u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0432 Home Assistant<\/a>. <\/p>\n<figure class=\"float\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/010\/cc9\/43b\/010cc943b36355e8f8170cc782f67b2e.png\" width=\"527\" height=\"343\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 (\u0433\u0435\u0440\u043a\u043e\u043d\u043e\u0432\u044b\u0439) \u0434\u0430\u0442\u0447\u0438\u043a \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 IN-Z61 (1640\u0440 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0432\u044b\u0435\u043c\u043a\u0443 \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430), \u043f\u043b\u0430\u0442\u0443 esp8266 (788\u0440 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439), \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a, \u043e\u043b\u043e\u0432\u043e, \u043a\u0430\u043d\u0438\u0444\u043e\u043b\u044c, \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u0438\u0435\u0434\u0435\u0442, \u0430 \u043f\u043e\u0442\u043e\u043c \u043a\u0430\u043d\u0438\u0444\u043e\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u043c, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443, \u043d\u0435\u043b\u044c\u0437\u044f \u043b\u0438 \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0434\u0435\u0448\u0435\u0432\u043b\u0435.<\/p>\n<p>\u0423\u0434\u0430\u0447\u0430 \u0443\u043b\u044b\u0431\u043d\u0443\u043b\u0430\u0441\u044c \u043c\u043d\u0435, \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0434\u0435\u043b\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u044b\u0441\u044f\u0447 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432, \u044f \u0432 \u0442\u043e\u0442 \u0436\u0435 \u0434\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432 Home Assistant \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0432\u0435\u0440\u0438 Xiaomi (\u043c\u043e\u0434\u0435\u043b\u044c MCCGQ01LM), \u0433\u043e\u0440\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u043b \u043d\u0430 \u0410\u0432\u0438\u0442\u043e \u043f\u043e 600\u0440 \u0437\u0430 \u0448\u0442\u0443\u043a\u0443.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e59\/3ba\/701\/e593ba701da145cac1d8f2b59f860d03.jpg\" alt=\"\" title=\"\" width=\"1280\" height=\"960\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d7d\/678\/aff\/d7d678afff27c6c7da2d397b8286415b.jpg\" width=\"591\" height=\"1280\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0441\u043d\u0438\u043c\u0430\u044f \u043a\u043e\u0440\u043f\u0443\u0441 \u0441 \u043f\u043b\u0430\u0442\u044b \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0438\u043b\u0438\u0439. \u0411\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043d\u0430 \u0434\u043e\u043b\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442, \u0445\u043e\u0442\u044f \u0443 \u043c\u0435\u043d\u044f \u0437\u0430 \u043c\u0435\u0441\u044f\u0446-\u0434\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u0438 \u043d\u043e\u0432\u044b\u0435 <a href=\"https:\/\/a.aliexpress.com\/_9u9kXw\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0430 AliExpress<\/a> \u043e\u043a\u043e\u043b\u043e 20\u0440 \u0437\u0430 \u0448\u0442\u0443\u043a\u0443.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432 Home Assistant \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u0430\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432 configuration.yaml<\/p>\n<pre><code>counter:   gas_counter:     step: 10<\/code><\/pre>\n<p>\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 automations.yaml \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 <\/p>\n<pre><code>- id: '1606010744418'   alias: Gas count   description: ''   trigger:   - entity_id: binary_sensor.openclose_gas     platform: state     from: 'on'     to: 'off'   action:   - data:       entity_id:       - counter.gas_counter     service: counter.increment<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 configuration.yaml \u0441\u0442\u0440\u043e\u043a\u0443 <code>utility_meter: !include utility_meter.yaml<\/code>, \u0430 \u0432 \u0444\u0430\u0439\u043b utility_meter.yaml \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0433\u0430\u0437\u0430 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c (\u043c\u0435\u0441\u044f\u0446, \u0434\u0435\u043d\u044c, \u0447\u0430\u0441)<\/p>\n<pre><code>gas_monthly:   source: sensor.gas_counter_sensor   cycle: monthly   tariffs:     - single gas_daily:   source: sensor.gas_counter_sensor   cycle: daily   tariffs:     - single gas_hourly:   source: sensor.gas_counter_sensor   cycle: hourly   tariffs:     - single<\/code><\/pre>\n<p>\u0438 \u0443\u0436\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u0438\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u0435\u043d\u0441\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043a\u0443\u0431\u043e\u043c\u0435\u0442\u0440\u044b \u0432 \u0440\u0443\u0431\u043b\u0438<\/p>\n<pre><code>- platform: template   sensors:     gas_counter_sensor:       friendly_name: \"\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0438\u043a\u0430 \u0433\u0430\u0437\u0430\"       unit_of_measurement: '\u041c3'       value_template: \"{{ (states('counter.gas_counter') | float) \/ 1000 }}\"       icon_template: mdi:counter - platform: template   sensors:     gas_last_month:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_monthly_single', 'last_period') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_this_month:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u044d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((states('sensor.gas_monthly_single') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_today:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u0441\u0435\u0433\u043e\u0434\u043d\u044f)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((states('sensor.gas_daily_single') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_yesterday:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u0432\u0447\u0435\u0440\u0430)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_daily_single', 'last_period') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_this_hour:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0447\u0430\u0441)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((states('sensor.gas_hourly_single') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_last_hour:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0447\u0430\u0441)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_hourly_single', 'last_period') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_hour_based_monthly_estimate:       friendly_name: \"\u041f\u0440\u043e\u0433\u043d\u043e\u0437 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 (\u0447\u0430\u0441-&gt;\u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_hourly_single', 'last_period') | float) \/ 1000 * 6056.4 * 24 * 30) | int }}\"       icon_template: mdi:chart-line-variant - platform: template   sensors:     gas_day_based_monthly_estimate:       friendly_name: \"\u041f\u0440\u043e\u0433\u043d\u043e\u0437 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 (\u0434\u0435\u043d\u044c-&gt;\u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_daily_single', 'last_period') | float) \/ 1000 * 6056.4 * 30) | int }}\"       icon_template: mdi:chart-line-variant<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043d\u0435 \u0443\u0431\u0438\u043b SD \u043a\u0430\u0440\u0442\u0443 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0435\u0433\u0430\u0435\u0442 Home Assistant \u0432 \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0435 \u0441\u0440\u043e\u043a\u0438, \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Home Assistant \u043d\u0435 \u0432\u0435\u0448\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b \u0434\u0430\u0442\u0447\u0438\u043a\u0443 \u0438\u0441\u0442\u043e\u0440\u0438\u044e, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 configuration.yaml<\/p>\n<pre><code>recorder:   exclude:     entities:       - binary_sensor.openclose_gas<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Home Assistant \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/267\/dff\/267\/267dff267b884422a93d1b4678a6ae68.png\" width=\"1202\" height=\"932\"><figcaption><\/figcaption><\/figure>\n<p>\u0423 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441, \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 Home Assistant \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432, \u043d\u043e \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0437\u0430 \u043c\u0435\u0441\u044f\u0446 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0437\u0430 \u0447\u0430\u0441 (\u0438\u043b\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c) \u044d\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442, \u043a\u0430\u043a \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043e \u0441\u043a\u0430\u0447\u043a\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432. <\/p>\n<p>\u0410 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u0443\u044e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0438\u043d\u0443\u0442\u044c \u0438\u0445 \u0430\u0440\u0435\u043d\u0434\u043e\u0434\u0430\u0442\u0435\u043b\u044e) \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f (\u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c) \u0437\u0430 \u0434\u0435\u043d\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043c\u0435\u0441\u044f\u0446\u0430.<\/p>\n<\/div>\n<p> \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\/post\/542738\/\"> https:\/\/habr.com\/ru\/post\/542738\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u0435\u043b \u0441\u0447\u0451\u0442 \u0437\u0430 \u0433\u0430\u0437 \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0442\u0430\u043b\u043e \u043d\u0435 \u043f\u043e \u0441\u0435\u0431\u0435, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0433\u0430\u0437\u0430 \u0432 \u0441\u0432\u043e\u0439 \u0443\u043c\u043d\u044b\u0439 \u0434\u043e\u043c \u043d\u0430 \u0431\u0430\u0437\u0435 Raspberry Pi + Home Assistant, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0445\u043e\u0434 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u043f\u043e\u043b\u0435\u0437 \u043d\u0430 \u0425\u0430\u0431\u0440, \u0438 \u043a \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e, \u0441\u0440\u0435\u0434\u0438 \u043d\u0435 \u043c\u0430\u043b\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432, \u0438 \u0434\u0430\u0436\u0435 \u043f\u0430\u0440\u044b \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e \u0441\u043d\u044f\u0442\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0433\u0430\u0437\u0430, \u043d\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0438\u0441\u043a\u0430\u043b.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f 2014 \u0433\u043e\u0434\u0430 \u043e\u0431 <a href=\"https:\/\/habr.com\/ru\/post\/220869\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0441\u043d\u044f\u0442\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430<\/a>, \u043d\u043e \u0432 \u043d\u0435\u0439 \u043d\u0438 \u0441\u043b\u043e\u0432\u0430 \u043d\u0438 \u043e Home Assistant \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438 \u043e \u0435\u0433\u043e <a href=\"https:\/\/www.home-assistant.io\/integrations\/seven_segments\/\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432<\/a> \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044f 2018 \u0433\u043e\u0434\u0430 \u043e\u0431 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0434\u043b\u044f <a href=\"https:\/\/habr.com\/ru\/post\/409829\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043d\u044f\u0442\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u044b\u043b \u0431\u044b \u0440\u0430\u0434 \u043a\u0443\u043f\u0438\u0442\u044c, \u043d\u043e \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0443\u044e \u043f\u0440\u043e\u0434\u0430\u0436\u0443 \u043e\u043d\u043e \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u043e.<\/p>\n<p>\u0427\u0438\u0442\u0430\u044f \u044d\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u044e 2018 \u0433\u043e\u0434\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/418573\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e \u0412\u043e\u0442\u0435\u0440\u0438\u0443\u0441<\/a>, \u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044e 2020 \u0433\u043e\u0434\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/503646\/\" rel=\"noopener noreferrer nofollow\">\u0423\u043c\u043d\u0430\u044f \u0445\u0440\u0443\u0449\u0451\u0432\u043a\u0430 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u043a\u0430\u0445<\/a>) \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0435 \u043d\u0430 \u0434\u0432\u0430 \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f (offline \u0438 online), \u0430 \u043d\u0430 \u0442\u0440\u0438. \u041f\u043e\u043c\u0438\u043c\u043e 3-\u0433\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e, \u0435\u0441\u0442\u044c \u0435\u0449\u0435 2-\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0430\u043c\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0441\u0435\u0442\u0438 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u043d\u043e \u0441\u043d\u0430\u0431\u0436\u0435\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 (\u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043b\u0438 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0445), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0443 \u043c\u043e\u0434\u0443\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u0442\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>\u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0441\u0432\u043e\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0433\u0430\u0437\u0430 (\u0438\u043c \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f BK-G4) \u044f \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d (\u043c\u0430\u0433\u043d\u0438\u0442\u0438\u043a \u043d\u0430 \u0431\u0430\u0440\u0430\u0431\u0430\u043d\u0435 \u043c\u043b\u0430\u0434\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0440\u044f\u0434\u0430), \u043d\u043e \u0438 \u0434\u0430\u0436\u0435 \u0442\u043e, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/zen.yandex.ru\/media\/id\/5f5bea45267c75477b342dab\/integriruem-schetchik-gaza-v-home-assistant-5f7f6c9bbd4c4645564d093d\" rel=\"noopener noreferrer nofollow\">\u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0432 Home Assistant<\/a>. <\/p>\n<figure class=\"float\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 (\u0433\u0435\u0440\u043a\u043e\u043d\u043e\u0432\u044b\u0439) \u0434\u0430\u0442\u0447\u0438\u043a \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 IN-Z61 (1640\u0440 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0432\u044b\u0435\u043c\u043a\u0443 \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430), \u043f\u043b\u0430\u0442\u0443 esp8266 (788\u0440 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439), \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a, \u043e\u043b\u043e\u0432\u043e, \u043a\u0430\u043d\u0438\u0444\u043e\u043b\u044c, \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u0438\u0435\u0434\u0435\u0442, \u0430 \u043f\u043e\u0442\u043e\u043c \u043a\u0430\u043d\u0438\u0444\u043e\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u043c, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443, \u043d\u0435\u043b\u044c\u0437\u044f \u043b\u0438 \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0434\u0435\u0448\u0435\u0432\u043b\u0435.<\/p>\n<p>\u0423\u0434\u0430\u0447\u0430 \u0443\u043b\u044b\u0431\u043d\u0443\u043b\u0430\u0441\u044c \u043c\u043d\u0435, \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0434\u0435\u043b\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u044b\u0441\u044f\u0447 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432, \u044f \u0432 \u0442\u043e\u0442 \u0436\u0435 \u0434\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432 Home Assistant \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0432\u0435\u0440\u0438 Xiaomi (\u043c\u043e\u0434\u0435\u043b\u044c MCCGQ01LM), \u0433\u043e\u0440\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u043b \u043d\u0430 \u0410\u0432\u0438\u0442\u043e \u043f\u043e 600\u0440 \u0437\u0430 \u0448\u0442\u0443\u043a\u0443.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0441\u043d\u0438\u043c\u0430\u044f \u043a\u043e\u0440\u043f\u0443\u0441 \u0441 \u043f\u043b\u0430\u0442\u044b \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u0434\u0431\u043e\u0440 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0438\u043b\u0438\u0439. \u0411\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043d\u0430 \u0434\u043e\u043b\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442, \u0445\u043e\u0442\u044f \u0443 \u043c\u0435\u043d\u044f \u0437\u0430 \u043c\u0435\u0441\u044f\u0446-\u0434\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u0438 \u043d\u043e\u0432\u044b\u0435 <a href=\"https:\/\/a.aliexpress.com\/_9u9kXw\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0430 AliExpress<\/a> \u043e\u043a\u043e\u043b\u043e 20\u0440 \u0437\u0430 \u0448\u0442\u0443\u043a\u0443.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432 Home Assistant \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u0430\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432 configuration.yaml<\/p>\n<pre><code>counter:   gas_counter:     step: 10<\/code><\/pre>\n<p>\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 automations.yaml \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 <\/p>\n<pre><code>- id: '1606010744418'   alias: Gas count   description: ''   trigger:   - entity_id: binary_sensor.openclose_gas     platform: state     from: 'on'     to: 'off'   action:   - data:       entity_id:       - counter.gas_counter     service: counter.increment<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 configuration.yaml \u0441\u0442\u0440\u043e\u043a\u0443 <code>utility_meter: !include utility_meter.yaml<\/code>, \u0430 \u0432 \u0444\u0430\u0439\u043b utility_meter.yaml \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0433\u0430\u0437\u0430 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c (\u043c\u0435\u0441\u044f\u0446, \u0434\u0435\u043d\u044c, \u0447\u0430\u0441)<\/p>\n<pre><code>gas_monthly:   source: sensor.gas_counter_sensor   cycle: monthly   tariffs:     - single gas_daily:   source: sensor.gas_counter_sensor   cycle: daily   tariffs:     - single gas_hourly:   source: sensor.gas_counter_sensor   cycle: hourly   tariffs:     - single<\/code><\/pre>\n<p>\u0438 \u0443\u0436\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u0438\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u0435\u043d\u0441\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043a\u0443\u0431\u043e\u043c\u0435\u0442\u0440\u044b \u0432 \u0440\u0443\u0431\u043b\u0438<\/p>\n<pre><code>- platform: template   sensors:     gas_counter_sensor:       friendly_name: \"\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0438\u043a\u0430 \u0433\u0430\u0437\u0430\"       unit_of_measurement: '\u041c3'       value_template: \"{{ (states('counter.gas_counter') | float) \/ 1000 }}\"       icon_template: mdi:counter - platform: template   sensors:     gas_last_month:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_monthly_single', 'last_period') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_this_month:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u044d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((states('sensor.gas_monthly_single') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_today:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u0441\u0435\u0433\u043e\u0434\u043d\u044f)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((states('sensor.gas_daily_single') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_yesterday:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u0432\u0447\u0435\u0440\u0430)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_daily_single', 'last_period') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_this_hour:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0447\u0430\u0441)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((states('sensor.gas_hourly_single') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_last_hour:       friendly_name: \"\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0430\u0437\u0430 (\u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0447\u0430\u0441)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_hourly_single', 'last_period') | float) \/ 1000 * 6056.4) | round(2) }}\"       icon_template: mdi:cash-100 - platform: template   sensors:     gas_hour_based_monthly_estimate:       friendly_name: \"\u041f\u0440\u043e\u0433\u043d\u043e\u0437 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 (\u0447\u0430\u0441-&gt;\u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_hourly_single', 'last_period') | float) \/ 1000 * 6056.4 * 24 * 30) | int }}\"       icon_template: mdi:chart-line-variant - platform: template   sensors:     gas_day_based_monthly_estimate:       friendly_name: \"\u041f\u0440\u043e\u0433\u043d\u043e\u0437 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 (\u0434\u0435\u043d\u044c-&gt;\u043c\u0435\u0441\u044f\u0446)\"       unit_of_measurement: '\u20bd'       value_template: \"{{ ((state_attr('sensor.gas_daily_single', 'last_period') | float) \/ 1000 * 6056.4 * 30) | int }}\"       icon_template: mdi:chart-line-variant<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043d\u0435 \u0443\u0431\u0438\u043b SD \u043a\u0430\u0440\u0442\u0443 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0435\u0433\u0430\u0435\u0442 Home Assistant \u0432 \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0435 \u0441\u0440\u043e\u043a\u0438, \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Home Assistant \u043d\u0435 \u0432\u0435\u0448\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b \u0434\u0430\u0442\u0447\u0438\u043a\u0443 \u0438\u0441\u0442\u043e\u0440\u0438\u044e, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 configuration.yaml<\/p>\n<pre><code>recorder:   exclude:     entities:       - binary_sensor.openclose_gas<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Home Assistant \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0423 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441, \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 Home Assistant \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432, \u043d\u043e \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0437\u0430 \u043c\u0435\u0441\u044f\u0446 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u0437\u0430 \u0447\u0430\u0441 (\u0438\u043b\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c) \u044d\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442, \u043a\u0430\u043a \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043e \u0441\u043a\u0430\u0447\u043a\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432. <\/p>\n<p>\u0410 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u0443\u044e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0438\u043d\u0443\u0442\u044c \u0438\u0445 \u0430\u0440\u0435\u043d\u0434\u043e\u0434\u0430\u0442\u0435\u043b\u044e) \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f (\u0435\u0441\u043b\u0438 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c) \u0437\u0430 \u0434\u0435\u043d\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043c\u0435\u0441\u044f\u0446\u0430.<\/p>\n<\/div>\n<p> \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\/post\/542738\/\"> https:\/\/habr.com\/ru\/post\/542738\/<\/a><br \/><\/br><\/br><\/p>\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-318125","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318125","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=318125"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318125\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}