Guest User

Untitled

a guest
Apr 16th, 2026
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | None | 0 0
  1. dashboard_import:
  2. package_import_url: github://MariuszWoszczynski/WMBUS-reader/WMBUS-reader-v5.yaml@main
  3. import_full_config: true
  4.  
  5. substitutions:
  6. name: "wmbus-reader-v5"
  7. friendly_name: "WMBUS Reader V5"
  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: esp-idf
  20.  
  21.  
  22.  
  23. external_components:
  24. # - source:
  25. # type: git
  26. # url: https://github.com/IoTLabs-pl/esphome-components
  27. # alternatively
  28. #- source: github://SzczepanLeon/[email protected] #or @5.0.4
  29. - source: github://zelo66/wmbusmeterCustom@main #or @5.0.4
  30. components:
  31. - socket_transmitter
  32. - wmbus_common
  33. - wmbus_radio
  34. - wmbus_meter
  35.  
  36. mdns:
  37. disabled: false
  38.  
  39. time:
  40. - platform: sntp
  41. id: time_sntp
  42.  
  43.  
  44. # Enable logging
  45. logger:
  46. level: VERY_VERBOSE
  47. logs:
  48. wmbus: VERY_VERBOSE
  49.  
  50. # Enable Home Assistant API
  51. api:
  52. encryption:
  53. key: "xxxZMIENNATOWOJ"
  54.  
  55. ota:
  56. - platform: esphome
  57. password: "xxxZMIENNATOWOJ"
  58.  
  59. wifi:
  60. ssid: !secret wifi_ssid
  61. password: !secret wifi_password
  62. output_power: 18dB
  63. # static IP configuration (instead of data from the secret file)
  64. # manual_ip:
  65. # static_ip: 192.168.10.99
  66. # gateway: 192.168.10.1
  67. # subnet: 255.255.255.0
  68.  
  69. # Enable fallback hotspot (captive portal) in case wifi connection fails
  70. ap:
  71. ssid: "Wmbus-Reader-V5 Fallback Hotspot"
  72.  
  73. captive_portal:
  74.  
  75. web_server:
  76. port: 80
  77. version: 3
  78.  
  79. output:
  80. - platform: gpio
  81. id: status_led
  82. pin: GPIO02
  83.  
  84. spi:
  85. clk_pin: GPIO33
  86. mosi_pin: GPIO32
  87. miso_pin: GPIO19
  88.  
  89.  
  90. wmbus_radio:
  91. radio_type: SX1276
  92. cs_pin: GPIO23
  93. reset_pin: GPIO22
  94. irq_pin: GPIO21
  95. # on_packet:
  96. # - logger.log: "Odebrano pakiet: ${data}" # Loguje dane pakietu
  97. on_frame:
  98. - then:
  99. - logger.log:
  100. format: "RSSI: %ddBm T: %s (%d)"
  101. args: [ frame->rssi(), frame->as_hex().c_str(), frame->data().size() ]
  102. - then:
  103. - repeat:
  104. count: 1
  105. then:
  106. - output.turn_on: status_led
  107. - delay: 100ms
  108. - output.turn_off: status_led
  109. - delay: 100ms
  110.  
  111.  
  112. ##############################################################################################################################################################################
  113. ##############################################################################################################################################################################
  114. # The following sensors are examples, for IZAR, APATOR, UNISMART, Heat and Electricity meters. Leave only the configuration of such meters you have, delete the other sensors.
  115. ##############################################################################################################################################################################
  116. ##############################################################################################################################################################################
  117.  
  118. ############################# Define counters here (typ, ID, key, mode...) ###############################
  119. wmbus_meter:
  120. - id: electricity_meter
  121. meter_id: 0x00000 ######## enter your ELECTRICITY meter ID here ########### #0x00000000 #ID format for SzczepanLeon
  122. type: tauronkpl # Lub "kaifa" - spróbuj obu wariantów
  123. # key: xxxxxx
  124. key: xxxxx######## enter your key here ###########
  125. mode:
  126. - T1
  127. - C1
  128. ########################### Define sensors here #####################################
  129. sensor:
  130. - platform: wmbus_meter #Electicity meter
  131. parent_id: electricity_meter
  132. field: current_power_consumption_kw
  133. name: Electricity Meter - current power
  134. accuracy_decimals: 0
  135. device_class: power
  136. unit_of_measurement: W
  137. state_class: measurement
  138. filters:
  139. - multiply: 1000
  140. - platform: wmbus_meter
  141. parent_id: electricity_meter
  142. field: total_energy_consumption_kwh
  143. name: Electricity Meter - energy consumption
  144. accuracy_decimals: 3
  145. device_class: energy
  146. state_class: total_increasing
  147. - platform: wmbus_meter
  148. parent_id: electricity_meter
  149. field: total_energy_production_kwh
  150. name: Electricity Meter - energy production
  151. accuracy_decimals: 3
  152. device_class: energy
  153. state_class: total_increasing
  154. - platform: wmbus_meter
  155. parent_id: electricity_meter
  156. field: current_power_production_kw
  157. name: Electricity Meter - current power production
  158. accuracy_decimals: 0
  159. device_class: power
  160. unit_of_measurement: W
  161. state_class: measurement
  162. filters:
  163. - multiply: 1000
  164. - platform: wmbus_meter
  165. parent_id: electricity_meter
  166. field: voltage_at_phase_1_v
  167. name: Electricity Meter - voltage L1
  168. accuracy_decimals: 0
  169. device_class: voltage
  170. unit_of_measurement: V
  171. state_class: measurement
  172. - platform: wmbus_meter
  173. parent_id: electricity_meter
  174. field: voltage_at_phase_2_v
  175. name: Electricity Meter - voltage L2
  176. accuracy_decimals: 0
  177. device_class: voltage
  178. unit_of_measurement: V
  179. state_class: measurement
  180. - platform: wmbus_meter
  181. parent_id: electricity_meter
  182. field: voltage_at_phase_3_v
  183. name: Electricity Meter - voltage L3
  184. accuracy_decimals: 0
  185. device_class: voltage
  186. unit_of_measurement: V
  187. state_class: measurement
  188. - platform: wmbus_meter
  189. parent_id: electricity_meter
  190. field: max_power_consumption_kw
  191. name: Electricity Meter - max power
  192. accuracy_decimals: 3
  193. device_class: power
  194. state_class: measurement
  195. - platform: wmbus_meter
  196. parent_id: electricity_meter
  197. field: rssi_dbm
  198. name: Electricity Meter RSSI
  199.  
  200. #######################################################################################
  201.  
  202. # More info on https://github.com/SzczepanLeon/esphome-components
Advertisement
Add Comment
Please, Sign In to add comment