{"id":370706,"date":"2024-05-21T04:31:29","date_gmt":"2024-05-21T04:31:29","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=370706"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T04:31:29","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=370706","title":{"rendered":"<span>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043f\u043b\u0430 \u0432 Home Assistant<\/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<p>     \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0441\u0442\u0440\u043e\u0439\u0449\u0438\u043a\u043e\u043c \u0432 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0435 \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0435\u043f\u043b\u0430 \u041f\u0443\u043b\u044c\u0441 \u0421\u0422\u041a-15-\u041c \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c Meter-Bus\u00a0(M-bus). \u041f\u043e\u0438\u0441\u043a\u0438 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043d\u0435 \u0434\u0430\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043a\u0430\u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f. <\/p>\n<p>     \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 3,5 \u0433\u043e\u0434\u0430 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0430 (\u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u044d\u043a\u0440\u0430\u043d\u0430\/\u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432) \u0438 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0441\u0440\u043e\u043a \u043f\u043e\u0432\u0435\u0440\u043a\u0438. \u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u043a\u0438 \u0441 \u0434\u0435\u043c\u043e\u043d\u0442\u0430\u0436\u043e\u043c\/\u043c\u043e\u043d\u0442\u0430\u0436\u043e\u043c, \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0438 \u043f\u043b\u043e\u043c\u0431\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u041f\u0443\u043b\u044c\u0441 \u0421\u0422\u041a-15-\u0418 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0442\u0438\u043f\u0430 \u0442\u043e\u043a\u043e\u0432\u0430\u044f \u043f\u0435\u0442\u043b\u044f \u043f\u043e \u0413\u041e\u0421\u0422 IEC 61107-2011.   <\/p>\n<p>     \u0421 \u044d\u0442\u0438\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u043c \u0432\u0441\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435: \u043e\u043d \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u043c\u043f\u0443\u043b\u044c\u0441 \u043d\u0430 1 \u043a\u0412\u0442*\u0447 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043f\u043b\u043e\u0432\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 (0,001 \u0413\u043a\u0430\u043b, \u0445\u043e\u0442\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c 1 \u0413\u043a\u0430\u043b = 1163 \u043a\u0412\u0442\u00b7\u0447  <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9A%D0%B0%D0%BB%D0%BE%D1%80%D0%B8%D1%8F\" rel=\"noopener noreferrer nofollow\">https:\/\/ru.wikipedia.org\/wiki\/\u041a\u0430\u043b\u043e\u0440\u0438\u044f<\/a>). \u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 &#8212; \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0442\u0435\u043f\u043b\u043e\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044f, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0430 \u0438 \u0442.\u0434. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0442\u0435\u043f\u043b\u043e\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f 2 \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b DS18B20.    <\/p>\n<p>     \u0416\u0435\u043b\u0435\u0437\u043e:<\/p>\n<ul>\n<li>\n<p>\u041f\u043b\u0430\u0442\u0430 ESP8266 NodeMCU V3<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b DS18B20 2\u0448\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u043e\u043c \u043e\u0442 4 \u0434\u043e 10 \u043a\u041e\u043c  <\/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\/b58\/636\/079\/b5863607969c725675996f8f9cf97e2e.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\" title=\"\u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\" width=\"672\" height=\"539\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b58\/636\/079\/b5863607969c725675996f8f9cf97e2e.png\"\/><\/p>\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/figcaption><\/div>\n<\/figure>\n<p>  \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u043e\u0434 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u043f\u0438\u043d\u0443 RX \u043f\u043b\u0430\u0442\u044b ESP8266, \u0447\u0435\u0440\u043d\u044b\u0439 \u043a GND. \u0414\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u044b \u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443\/\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443 \u0442\u0440\u0443\u0431\u043e\u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c \u0440\u044f\u0434\u043e\u043c \u0441\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u043c.<\/p>\n<p>     \u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 &#8212;  <a href=\"https:\/\/esphome.io\/\" rel=\"noopener noreferrer nofollow\">ESPHome<\/a>.<\/p>\n<p>     JAML \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f:<\/p>\n<pre><code class=\"yaml\">substitutions:   plug_name: shw   dlspin: GPIO13 #D7   ledpin: GPIO2 #D4   htcpin: GPIO3 #RX    esphome:   name: uc-shw  esp8266:   board: nodemcuv2  # Enable logging logger:   level: WARN  # Enable Home Assistant API api:  ota:   password: \"******************************\"  wifi:   ssid: !secret wifi_ssid2   password: !secret wifi_password2    # Enable fallback hotspot (captive portal) in case wifi connection fails   ap:     ssid: \"UC-Shw Fallback Hotspot\"     password: \"************\"  captive_portal:  web_server:   port: 80  dallas:   - pin: $dlspin      update_interval: 10s    sensor:   - platform: uptime     name: ${plug_name}_uptime    - platform: wifi_signal     name: ${plug_name}_wifi_signal     update_interval: 10s        - platform: dallas     address: 0xe53c01e07693fa28     name: ${plug_name}_heat_temp_in    - platform: dallas     address: 0xba3c01e0769c4b28     name: ${plug_name}_heat_temp_out      - platform: pulse_counter     pin:        number: $htcpin       inverted: true       mode:         input: true         pullup: true     name: ${plug_name}_pulses_heat     accuracy_decimals: 0     id: pulse_heat                 - platform: integration     name: ${plug_name}_pulses_heat_integr     sensor: pulse_heat     time_unit: min     id: pulses_heat     accuracy_decimals: 0     unit_of_measurement: kWh     restore: true      text_sensor:   - platform: wifi_info     ip_address:       name: ${plug_name}_ip     ssid:       name: ${plug_name}_ssid     mac_address:       name: ${plug_name}_mac   - platform: version     name: ${plug_name}_version      status_led:   pin: $ledpin<\/code><\/pre>\n<p>  \u0412 Home Assistant \u0432 configuration.yaml \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c utility_meter \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043f\u043b\u043e\u0432\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c, \u043d\u0435\u0434\u0435\u043b\u044e, \u043c\u0435\u0441\u044f\u0446, \u0433\u043e\u0434: <\/p>\n<pre><code class=\"yaml\">    utility_meter:       daily_heating:         source: sensor.shw_pulses_heat_integr         cycle: daily                weekly_heating:         source: sensor.shw_pulses_heat_integr         cycle: weekly                monthly_heating:         source: sensor.shw_pulses_heat_integr         cycle: monthly                yearly_heating:         source: sensor.shw_pulses_heat_integr         cycle: yearly<\/code><\/pre>\n<p>     \u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c Template \u0441\u0435\u043d\u0441\u043e\u0440 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430, \u0442.\u043a. \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0438 \u0443\u0436\u0435 \u043d\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:   <\/p>\n<pre><code class=\"yaml\">sensor:   - platform: template        heat_real:               friendly_name: \"\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043f\u043b\u0430\"               unit_of_measurement: 'GCal'               value_template: >                 {{(states('sensor.yearly_heating')|float*0.001 + 0.384) | round(3)}}<\/code><\/pre>\n<p>     \u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 Home Assistant \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:   <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b04\/fd4\/699\/b04fd46992a03c362fcd22c7ebdd5a2e.png\" alt=\"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432 Home Assistant \" title=\"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432 Home Assistant \" width=\"1368\" height=\"965\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b04\/fd4\/699\/b04fd46992a03c362fcd22c7ebdd5a2e.png\"\/><\/p>\n<div><figcaption>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432 Home Assistant <\/figcaption><\/div>\n<\/figure>\n<p>     \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0433\u043e\u0440\u044f\u0447\u0435\u0439 \u0432\u043e\u0434\u044b \u043d\u0430 DS18B20, \u0434\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 HC-SR501, \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b\/\u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 AHT10, \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u0441 \u0432\u044b\u0445\u043e\u0434\u0430 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432\u043e\u0434\u044b \u041f\u0443\u043b\u044c\u0441 15\u0423\u0418-80 \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u043e\u0439 \u0437\u0435\u0440\u043a\u0430\u043b\u0430. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/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\/articles\/799957\/\"> https:\/\/habr.com\/ru\/articles\/799957\/<\/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<p>     \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0441\u0442\u0440\u043e\u0439\u0449\u0438\u043a\u043e\u043c \u0432 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0435 \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0435\u043f\u043b\u0430 \u041f\u0443\u043b\u044c\u0441 \u0421\u0422\u041a-15-\u041c \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c Meter-Bus\u00a0(M-bus). \u041f\u043e\u0438\u0441\u043a\u0438 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043d\u0435 \u0434\u0430\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043a\u0430\u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f. <\/p>\n<p>     \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 3,5 \u0433\u043e\u0434\u0430 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0430 (\u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u044d\u043a\u0440\u0430\u043d\u0430\/\u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432) \u0438 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0441\u0440\u043e\u043a \u043f\u043e\u0432\u0435\u0440\u043a\u0438. \u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u043a\u0438 \u0441 \u0434\u0435\u043c\u043e\u043d\u0442\u0430\u0436\u043e\u043c\/\u043c\u043e\u043d\u0442\u0430\u0436\u043e\u043c, \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0438 \u043f\u043b\u043e\u043c\u0431\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u041f\u0443\u043b\u044c\u0441 \u0421\u0422\u041a-15-\u0418 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0442\u0438\u043f\u0430 \u0442\u043e\u043a\u043e\u0432\u0430\u044f \u043f\u0435\u0442\u043b\u044f \u043f\u043e \u0413\u041e\u0421\u0422 IEC 61107-2011.   <\/p>\n<p>     \u0421 \u044d\u0442\u0438\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u043c \u0432\u0441\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435: \u043e\u043d \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u043c\u043f\u0443\u043b\u044c\u0441 \u043d\u0430 1 \u043a\u0412\u0442*\u0447 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043f\u043b\u043e\u0432\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 (0,001 \u0413\u043a\u0430\u043b, \u0445\u043e\u0442\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c 1 \u0413\u043a\u0430\u043b = 1163 \u043a\u0412\u0442\u00b7\u0447  <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9A%D0%B0%D0%BB%D0%BE%D1%80%D0%B8%D1%8F\" rel=\"noopener noreferrer nofollow\">https:\/\/ru.wikipedia.org\/wiki\/\u041a\u0430\u043b\u043e\u0440\u0438\u044f<\/a>). \u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 &#8212; \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0442\u0435\u043f\u043b\u043e\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044f, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0430 \u0438 \u0442.\u0434. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0442\u0435\u043f\u043b\u043e\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f 2 \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b DS18B20.    <\/p>\n<p>     \u0416\u0435\u043b\u0435\u0437\u043e:<\/p>\n<ul>\n<li>\n<p>\u041f\u043b\u0430\u0442\u0430 ESP8266 NodeMCU V3<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b DS18B20 2\u0448\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u043e\u043c \u043e\u0442 4 \u0434\u043e 10 \u043a\u041e\u043c  <\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/figcaption><\/div>\n<\/figure>\n<p>  \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u043e\u0434 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u043f\u0438\u043d\u0443 RX \u043f\u043b\u0430\u0442\u044b ESP8266, \u0447\u0435\u0440\u043d\u044b\u0439 \u043a GND. \u0414\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u044b \u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443\/\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u043c\u0443 \u0442\u0440\u0443\u0431\u043e\u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c \u0440\u044f\u0434\u043e\u043c \u0441\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u043c.<\/p>\n<p>     \u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 &#8212;  <a href=\"https:\/\/esphome.io\/\" rel=\"noopener noreferrer nofollow\">ESPHome<\/a>.<\/p>\n<p>     JAML \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f:<\/p>\n<pre><code class=\"yaml\">substitutions:   plug_name: shw   dlspin: GPIO13 #D7   ledpin: GPIO2 #D4   htcpin: GPIO3 #RX    esphome:   name: uc-shw  esp8266:   board: nodemcuv2  # Enable logging logger:   level: WARN  # Enable Home Assistant API api:  ota:   password: \"******************************\"  wifi:   ssid: !secret wifi_ssid2   password: !secret wifi_password2    # Enable fallback hotspot (captive portal) in case wifi connection fails   ap:     ssid: \"UC-Shw Fallback Hotspot\"     password: \"************\"  captive_portal:  web_server:   port: 80  dallas:   - pin: $dlspin      update_interval: 10s    sensor:   - platform: uptime     name: ${plug_name}_uptime    - platform: wifi_signal     name: ${plug_name}_wifi_signal     update_interval: 10s        - platform: dallas     address: 0xe53c01e07693fa28     name: ${plug_name}_heat_temp_in    - platform: dallas     address: 0xba3c01e0769c4b28     name: ${plug_name}_heat_temp_out      - platform: pulse_counter     pin:        number: $htcpin       inverted: true       mode:         input: true         pullup: true     name: ${plug_name}_pulses_heat     accuracy_decimals: 0     id: pulse_heat                 - platform: integration     name: ${plug_name}_pulses_heat_integr     sensor: pulse_heat     time_unit: min     id: pulses_heat     accuracy_decimals: 0     unit_of_measurement: kWh     restore: true      text_sensor:   - platform: wifi_info     ip_address:       name: ${plug_name}_ip     ssid:       name: ${plug_name}_ssid     mac_address:       name: ${plug_name}_mac   - platform: version     name: ${plug_name}_version      status_led:   pin: $ledpin<\/code><\/pre>\n<p>  \u0412 Home Assistant \u0432 configuration.yaml \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c utility_meter \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043f\u043b\u043e\u0432\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0437\u0430 \u0434\u0435\u043d\u044c, \u043d\u0435\u0434\u0435\u043b\u044e, \u043c\u0435\u0441\u044f\u0446, \u0433\u043e\u0434: <\/p>\n<pre><code class=\"yaml\">    utility_meter:       daily_heating:         source: sensor.shw_pulses_heat_integr         cycle: daily                weekly_heating:         source: sensor.shw_pulses_heat_integr         cycle: weekly                monthly_heating:         source: sensor.shw_pulses_heat_integr         cycle: monthly                yearly_heating:         source: sensor.shw_pulses_heat_integr         cycle: yearly<\/code><\/pre>\n<p>     \u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c Template \u0441\u0435\u043d\u0441\u043e\u0440 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430, \u0442.\u043a. \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0438 \u0443\u0436\u0435 \u043d\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:   <\/p>\n<pre><code class=\"yaml\">sensor:   - platform: template        heat_real:               friendly_name: \"\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0442\u0435\u043f\u043b\u0430\"               unit_of_measurement: 'GCal'               value_template: >                 {{(states('sensor.yearly_heating')|float*0.001 + 0.384) | round(3)}}<\/code><\/pre>\n<p>     \u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 Home Assistant \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e:   <\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432 Home Assistant <\/figcaption><\/div>\n<\/figure>\n<p>     \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0433\u043e\u0440\u044f\u0447\u0435\u0439 \u0432\u043e\u0434\u044b \u043d\u0430 DS18B20, \u0434\u0430\u0442\u0447\u0438\u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 HC-SR501, \u0434\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b\/\u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 AHT10, \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u044b \u0441 \u0432\u044b\u0445\u043e\u0434\u0430 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0432\u043e\u0434\u044b \u041f\u0443\u043b\u044c\u0441 15\u0423\u0418-80 \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u043e\u0439 \u0437\u0435\u0440\u043a\u0430\u043b\u0430. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/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\/articles\/799957\/\"> https:\/\/habr.com\/ru\/articles\/799957\/<\/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-370706","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370706","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=370706"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370706\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}