emylo_energy_meter.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. name: Energy meter
  2. products:
  3. - id: nqbs1onwskmmmaac
  4. manufacturer: eMylo
  5. model: EAI-90
  6. entities:
  7. - entity: sensor
  8. class: energy
  9. dps:
  10. - id: 1
  11. type: integer
  12. name: sensor
  13. unit: kWh
  14. class: total_increasing
  15. mapping:
  16. - scale: 100
  17. - id: 6
  18. type: string
  19. name: phase_a
  20. optional: true
  21. force: true
  22. - id: 17
  23. type: string
  24. name: alarm
  25. optional: true
  26. - entity: binary_sensor
  27. class: problem
  28. category: diagnostic
  29. dps:
  30. - id: 10
  31. type: bitfield
  32. name: sensor
  33. mapping:
  34. - dps_val: 0
  35. value: false
  36. - value: true
  37. - id: 10
  38. type: bitfield
  39. name: fault_code
  40. - entity: switch
  41. name: Prepayment
  42. category: config
  43. icon: "mdi:cash"
  44. dps:
  45. - id: 12
  46. type: boolean
  47. name: switch
  48. - entity: sensor
  49. name: Prepaid energy
  50. category: diagnostic
  51. dps:
  52. - id: 13
  53. type: integer
  54. name: sensor
  55. unit: kWh
  56. optional: true
  57. mapping:
  58. - scale: 100
  59. - entity: button
  60. name: Clear energy
  61. class: restart
  62. category: config
  63. dps:
  64. - id: 14
  65. type: boolean
  66. name: button
  67. optional: true
  68. - entity: number
  69. name: Charge energy
  70. category: config
  71. icon: "mdi:cash"
  72. dps:
  73. - id: 15
  74. type: integer
  75. name: value
  76. unit: kWh
  77. optional: true
  78. range:
  79. min: 0
  80. max: 50000
  81. - entity: switch
  82. dps:
  83. - id: 16
  84. type: boolean
  85. name: switch
  86. - entity: button
  87. name: Clear event
  88. class: restart
  89. category: config
  90. dps:
  91. - id: 20
  92. type: boolean
  93. name: button
  94. optional: true
  95. - entity: sensor
  96. class: voltage
  97. category: diagnostic
  98. dps:
  99. - id: 6
  100. type: base64
  101. name: sensor
  102. optional: true
  103. unit: V
  104. mask: "FFFF000000000000"
  105. mapping:
  106. - scale: 10
  107. - entity: sensor
  108. class: current
  109. category: diagnostic
  110. dps:
  111. - id: 6
  112. type: base64
  113. name: sensor
  114. optional: true
  115. unit: A
  116. mask: "0000FFFFFF000000"
  117. mapping:
  118. - scale: 1000
  119. - entity: sensor
  120. class: power
  121. category: diagnostic
  122. dps:
  123. - id: 6
  124. type: base64
  125. name: sensor
  126. optional: true
  127. unit: kW
  128. mask: "0000000000FFFFFF"
  129. mapping:
  130. - scale: 1000