emini_16a_public_evcharger.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. name: EV charger
  2. products:
  3. - id: nui1mldb0iedtsoj
  4. manufacturer: Emini
  5. model: 16A Public
  6. entities:
  7. - entity: sensor # work_state -3- enum
  8. translation_key: status
  9. icon: "mdi:ev-station"
  10. class: enum
  11. dps:
  12. - id: 3
  13. type: string
  14. name: sensor
  15. mapping:
  16. - dps_val: charger_free
  17. value: available
  18. - dps_val: charger_insert
  19. value: plugged_in
  20. - dps_val: charger_free_fault
  21. value: fault_unplugged
  22. - dps_val: charger_charging
  23. value: charging
  24. - dps_val: charger_fault
  25. value: fault
  26. - dps_val: charger_stop_wait
  27. value: paused
  28. - dps_val: charger_start_wait
  29. value: waiting
  30. - id: 23 # system_version -23- string
  31. type: string
  32. name: system_version
  33. - id: 101 # product_sn -101- string
  34. type: string
  35. name: serial_number
  36. - entity: sensor # forward_energy_total -1- integer kW·h
  37. class: energy
  38. dps:
  39. - id: 1
  40. type: integer
  41. name: sensor
  42. unit: kWh
  43. class: total_increasing
  44. mapping:
  45. - scale: 100
  46. - entity: number # charge_cur_set -4- integer A
  47. category: config
  48. class: current
  49. icon: "mdi:ev-plug-type2"
  50. dps:
  51. - id: 4
  52. type: integer
  53. name: value
  54. unit: A
  55. range:
  56. min: 6
  57. max: 16
  58. - entity: sensor # phase_a -6- raw (voltage, bytes 0-1, 0.1V)
  59. class: voltage
  60. category: diagnostic
  61. translation_key: voltage_x
  62. translation_placeholders:
  63. x: A
  64. dps:
  65. - id: 6
  66. type: base64
  67. name: sensor
  68. optional: true
  69. unit: V
  70. mask: "FFFF000000000000"
  71. mapping:
  72. - scale: 10
  73. - entity: sensor # phase_a -6- raw (current, bytes 2-4, 0.001A)
  74. class: current
  75. category: diagnostic
  76. translation_key: current_x
  77. translation_placeholders:
  78. x: A
  79. dps:
  80. - id: 6
  81. type: base64
  82. name: sensor
  83. optional: true
  84. unit: A
  85. mask: "0000FFFFFF000000"
  86. mapping:
  87. - scale: 1000
  88. - entity: sensor # phase_a -6- raw (power, bytes 5-7, 0.001kW)
  89. class: power
  90. category: diagnostic
  91. translation_key: power_x
  92. translation_placeholders:
  93. x: A
  94. dps:
  95. - id: 6
  96. type: base64
  97. name: sensor
  98. optional: true
  99. unit: kW
  100. class: measurement
  101. mask: "0000000000FFFFFF"
  102. mapping:
  103. - scale: 1000
  104. - entity: sensor # power_total -9- integer kW
  105. class: power
  106. dps:
  107. - id: 9
  108. type: integer
  109. name: sensor
  110. unit: kW
  111. class: measurement
  112. mapping:
  113. - scale: 1000
  114. - entity: binary_sensor # fault -10- bitmap
  115. class: problem
  116. category: diagnostic
  117. dps:
  118. - id: 10
  119. type: bitfield
  120. name: sensor
  121. mapping:
  122. - dps_val: 0
  123. value: false
  124. - value: true
  125. - id: 10
  126. type: bitfield
  127. name: fault_code
  128. - id: 10
  129. type: bitfield
  130. name: description
  131. mapping:
  132. - dps_val: 0
  133. value: ok
  134. - dps_val: 1
  135. value: ov_cr
  136. - dps_val: 2
  137. value: ov_vol
  138. - dps_val: 4
  139. value: undervoltage_alarm
  140. - dps_val: 8
  141. value: contactor_fault
  142. - dps_val: 16
  143. value: earth_fault
  144. - dps_val: 32
  145. value: cp_fault
  146. - dps_val: 64
  147. value: cir_short_fault
  148. - dps_val: 128
  149. value: self_test_alarm
  150. - dps_val: 256
  151. value: leakagecurr_alarm
  152. - dps_val: 512
  153. value: mcu_temp_over
  154. - dps_val: 1024
  155. value: plug_temp_over
  156. - dps_val: 2048
  157. value: relay_fault
  158. - dps_val: 4096
  159. value: mcu_temp_fault
  160. - dps_val: 8192
  161. value: plug_temp_fault
  162. - dps_val: 16384
  163. value: connector_temp_over
  164. - dps_val: 32768
  165. value: connector_temp_fault
  166. - entity: select # work_mode -14- enum
  167. translation_key: charging_mode
  168. category: config
  169. dps:
  170. - id: 14
  171. type: string
  172. name: option
  173. mapping:
  174. - dps_val: charge_now
  175. value: immediate
  176. - dps_val: charge_pct
  177. value: charge_to_percent
  178. - dps_val: charge_energy
  179. value: fixed_charge
  180. - dps_val: charge_schedule
  181. value: scheduled_charge
  182. - dps_val: charge_delay
  183. value: delayed_charge
  184. - entity: switch # switch -18- boolean
  185. icon: "mdi:ev-station"
  186. dps:
  187. - id: 18
  188. type: boolean
  189. name: switch
  190. - entity: sensor # temp_current -24- integer °C
  191. class: temperature
  192. category: diagnostic
  193. dps:
  194. - id: 24
  195. type: integer
  196. name: sensor
  197. unit: C
  198. class: measurement
  199. range:
  200. min: -40
  201. max: 200
  202. - entity: sensor # charge_energy_once -25- integer kW·h
  203. name: Last charge
  204. class: energy_storage
  205. dps:
  206. - id: 25
  207. type: integer
  208. name: sensor
  209. unit: kWh
  210. class: measurement
  211. mapping:
  212. - scale: 100
  213. - entity: switch # live updates -27- enum
  214. name: Live updates
  215. category: config
  216. icon: "mdi:chart-bar"
  217. dps:
  218. - id: 27
  219. type: string
  220. name: switch
  221. mapping:
  222. - dps_val: online
  223. value: true
  224. - dps_val: offline
  225. value: false
  226. - value: false
  227. hidden: true