Guest User

Untitled

a guest
May 25th, 2025
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. substitutions:
  6. name: "wmbus-reader-v4"
  7. friendly_name: "WMBUS Reader V4"
  8.  
  9. esphome:
  10. name: "${name}"
  11. friendly_name: "${friendly_name}"
  12. project:
  13. name: esphome.wmbus_reader
  14. version: "1.0"
  15.  
  16. esp32:
  17. board: nodemcu-32s
  18. framework:
  19. type: arduino
  20.  
  21. ##### NOTE!!! In the external_components section there is a link to always the latest version of the repository.
  22. ##### If there will be any changes to the software, user intervention may be required
  23. ##### (e.g. changing the way sensors are configured, etc.).
  24. ##### Therefore, it is advisable to follow the information on the site of the author of the software:
  25. ##### https://github.com/SzczepanLeon/esphome-components
  26. external_components:
  27. - source: github://SzczepanLeon/esphome-components@version_4
  28. components: [ wmbus ]
  29. refresh: 0d
  30.  
  31. # Status LED for connection
  32. status_led:
  33. pin:
  34. # Blue LED
  35. number: GPIO02
  36.  
  37. mdns:
  38. disabled: false
  39.  
  40. time:
  41. - platform: sntp
  42. id: time_sntp
  43.  
  44.  
  45. # Enable logging
  46. logger:
  47. level: debug
  48.  
  49. # Enable Home Assistant API
  50. api:
  51. encryption:
  52. key: "IAHzf/W7ltjO0oJPBxXC0k7YCXPKRpLmLU4lOnizC9Q="
  53.  
  54. ota:
  55. - platform: esphome
  56. password: "2732cd0e5a1bc7beb2d19537dd821c79"
  57.  
  58. wifi:
  59. ssid: !secret wifi_ssid
  60. password: !secret wifi_password
  61. output_power: 18dB
  62. # static IP configuration (instead of data from the secret file)
  63. # manual_ip:
  64. # static_ip: 192.168.1.114
  65. # gateway: 192.168.1.1
  66. # subnet: 255.255.255.0
  67.  
  68. # Enable fallback hotspot (captive portal) in case wifi connection fails
  69. # ap:
  70. # ssid: "Wmbus-Reader-V4 Fallback Hotspot"
  71.  
  72. #your mqtt parameters
  73. #mqtt:
  74. # broker: 192.1168.1.11
  75. # port: 1883
  76. # username:
  77. # password:
  78.  
  79. captive_portal:
  80.  
  81. web_server:
  82. port: 80
  83. version: 3
  84.  
  85. wmbus:
  86. mosi_pin: GPIO32
  87. clk_pin: GPIO33
  88. miso_pin: GPIO19
  89. gdo2_pin: GPIO21
  90. gdo0_pin: GPIO22
  91. cs_pin: GPIO23
  92.  
  93. frequency: 868.950
  94. all_drivers: False
  95. sync_mode: True
  96. log_all: True
  97.  
  98. # mqtt:
  99. # broker: 192.168.1.11
  100. # username:
  101. # password:
  102.  
  103. sensor:
  104. - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
  105. name: "WiFi Signal dB"
  106. id: wifi_signal_db
  107. update_interval: 60s
  108. entity_category: "diagnostic"
  109.  
  110. - platform: copy # Reports the WiFi signal strength in %
  111. source_id: wifi_signal_db
  112. name: "WiFi Signal Percent"
  113. filters:
  114. - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
  115. unit_of_measurement: "Signal %"
  116. entity_category: "diagnostic"
  117.  
  118. ###########################################################################################################################################################
  119. ###########################################################################################################################################################
  120. # The following sensors are examples, for IZAR, APATOR and UNISMART meters. Leave only the configuration of such meters you have, delete the other sensors.
  121. # If you have another meter, check its configuration on: https://github.com/SzczepanLeon/esphome-components
  122. ###########################################################################################################################################################
  123. ###########################################################################################################################################################
  124.  
  125. # APATOR 16-2 water meter
  126. - platform: wmbus
  127. meter_id: 0x04438459 ######## enter your APATOR meter ID here ###########
  128. type: apator162
  129. key: "00000000000000000000000000000000"
  130. sensors:
  131. - name: "RSSI APATOR"
  132. field: "rssi"
  133. accuracy_decimals: 0
  134. unit_of_measurement: "dBm"
  135. device_class: "signal_strength"
  136. state_class: "measurement"
  137. entity_category: "diagnostic"
  138. - name: "APATOR water meter state"
  139. field: "total"
  140. accuracy_decimals: 3
  141. unit_of_measurement: "m³"
  142. device_class: "water"
  143. state_class: "total_increasing"
  144. icon: "mdi:water"
  145. #filters: #optional
  146. # - offset: 991.10
Advertisement
Add Comment
Please, Sign In to add comment