Guest User

Untitled

a guest
Nov 14th, 2023
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. #Código gentilmente cedido e criado pela Comunidade Portuguesa de Home Assistant
  2.  
  3.  
  4. modbus:
  5. - name: edpbox1
  6. type: tcp
  7. host: #Colocar Aqui o endereço IP do vosso Modem ELFIN
  8. port: 9502
  9. delay: 1
  10. timeout: 5
  11. retries: 5
  12. retry_on_empty: true
  13. message_wait_milliseconds: 200
  14.  
  15. sensors:
  16. - name: "EDP Box - Tensão" # 6C
  17. slave: 1
  18. address: 108
  19. input_type: input
  20. data_type: uint16
  21. precision: 1
  22. scale: 0.1
  23. unit_of_measurement: V
  24. device_class: voltage
  25. scan_interval: 5
  26. offset: 0
  27. # long unsigned
  28. device_class: voltage
  29.  
  30. - name: "EDP Box - Corrente" # 6D
  31. slave: 1
  32. address: 109
  33. input_type: input
  34. data_type: uint16
  35. precision: 1
  36. scale: 0.1
  37. unit_of_measurement: A
  38. device_class: current
  39. scan_interval: 30
  40.  
  41. - name: "EDP Box - Potência Ativa" # 79
  42. slave: 1
  43. address: 121
  44. input_type: input
  45. ##
  46. data_type: custom
  47. count: 1
  48. structure: ">L"
  49. ##
  50. precision: 1
  51. scale: 1
  52. unit_of_measurement: W
  53. device_class: power
  54.  
  55. - name: "EDP Box Power Export" # 7A
  56. slave: 1
  57. address: 122
  58. input_type: input
  59. ##
  60. data_type: custom
  61. count: 1
  62. structure: ">L"
  63. ##
  64. precision: 0
  65. scale: 1
  66. unit_of_measurement: W
  67. device_class: power
  68. scan_interval: 30
  69.  
  70. - name: "EDP Box - Fator de Potência" # 7B
  71. slave: 1
  72. address: 123
  73. input_type: input
  74. data_type: uint16
  75. precision: 3
  76. scale: 0.001
  77. unit_of_measurement: pu
  78. device_class: power_factor
  79. scan_interval: 30
  80.  
  81. - name: "EDP Box - Frequência" # 7F
  82. slave: 1
  83. address: 127
  84. input_type: input
  85. data_type: uint16
  86. precision: 1
  87. scale: 0.1
  88. unit_of_measurement: Hz
  89. scan_interval: 30
  90.  
  91.  
  92. - name: "EDP Box - Total Vazio" # 26
  93. slave: 1
  94. address: 38
  95. input_type: input
  96. ##
  97. data_type: custom
  98. count: 1
  99. structure: ">L"
  100. ##
  101. precision: 3
  102. scale: 0.001
  103. unit_of_measurement: kWh
  104. device_class: energy
  105. scan_interval: 30
  106.  
  107. - name: "EDP Box - Total Ponta" # 27
  108. slave: 1
  109. address: 39
  110. input_type: input
  111. ##
  112. data_type: custom
  113. count: 1
  114. structure: ">L"
  115. ##
  116. precision: 3
  117. scale: 0.001
  118. unit_of_measurement: kWh
  119. device_class: energy
  120. scan_interval: 30
  121.  
  122. - name: "EDP Box - Total Cheia" # 28
  123. slave: 1
  124. address: 40
  125. input_type: input
  126. ##
  127. data_type: custom
  128. count: 1
  129. structure: ">L"
  130. ##
  131. precision: 3
  132. scale: 0.001
  133. unit_of_measurement: kWh
  134. device_class: energy
  135. scan_interval: 30
  136.  
  137. - name: "EDP Box Import" # 16
  138. slave: 1
  139. address: 22
  140. input_type: input
  141. ##
  142. data_type: custom
  143. count: 1
  144. structure: ">L"
  145. ##
  146. precision: 3
  147. scale: 0.001
  148. unit_of_measurement: kWh
  149. device_class: energy
  150. scan_interval: 30
  151.  
  152. - name: "EDP Box Export" # 17
  153. slave: 1
  154. address: 23
  155. input_type: input
  156. ##
  157. data_type: custom
  158. count: 1
  159. structure: ">L"
  160. ##
  161. precision: 3
  162. scale: 0.001
  163. unit_of_measurement: kWh
  164. device_class: energy
  165. scan_interval: 30
  166.  
  167. - name: 'EDP Box State L1'
  168. ## 0 para disconectado - 1 para conectado - 2 para preparado a reconectar
  169. scan_interval: 5
  170. slave: 1
  171. address: 132
  172. input_type: input
  173. count: 1
  174. data_type: custom
  175. structure: ">Bx"
  176.  
  177.  
  178. ###
  179.  
  180. - name: "EDP Box Q1"
  181. slave: 1
  182. address: 24
  183. input_type: input
  184. ##
  185. data_type: custom
  186. count: 1
  187. structure: ">L"
  188. ##
  189. precision: 3
  190. scale: 0.001
  191. unit_of_measurement: kVAr
  192. scan_interval: 30
  193.  
  194. # for tariff template
  195.  
  196. - name: "EDP Box Tariff L1" # Tariff
  197. ## 1 para Vazio - 2 para Ponta - 3 para Cheia
  198. slave: 1
  199. address: 11
  200. input_type: input
  201. count: 1
  202. data_type: custom
  203. structure: ">Bx"
  204. scan_interval: 30
  205.  
  206. # for testing
  207.  
  208. - name: "EDP Box Firmware Core"
  209. slave: 1
  210. address: 4
  211. input_type: input
  212. count: 1
  213. data_type: string
  214. scan_interval: 30
Advertisement
Add Comment
Please, Sign In to add comment