aubess_1gang_switch.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. name: Energy monitor switch
  2. products:
  3. # - id: UNKNOWN
  4. # manufacturer: Aubess
  5. - id: m4jtkjc43ltrilru
  6. model: T34 Smart Plug+
  7. entities:
  8. - entity: switch
  9. dps:
  10. - id: 1
  11. name: switch
  12. type: boolean
  13. - id: 24
  14. name: test_bit
  15. type: integer
  16. - id: 42
  17. name: random_time
  18. type: string
  19. - id: 43
  20. name: cycle_time
  21. type: string
  22. - id: 44
  23. name: switch_inching
  24. type: string
  25. - entity: number
  26. translation_key: timer
  27. class: duration
  28. category: config
  29. dps:
  30. - id: 9
  31. name: value
  32. type: integer
  33. range:
  34. min: 0
  35. max: 86400
  36. mapping:
  37. - scale: 60
  38. step: 60
  39. - entity: select
  40. translation_key: initial_state
  41. category: config
  42. dps:
  43. - id: 38
  44. type: string
  45. name: option
  46. mapping:
  47. - dps_val: "0"
  48. value: "off"
  49. available: numeric_values
  50. - dps_val: "1"
  51. value: "on"
  52. available: numeric_values
  53. - dps_val: "2"
  54. value: memory
  55. available: numeric_values
  56. - dps_val: "off"
  57. value: "off"
  58. available: word_values
  59. - dps_val: "on"
  60. value: "on"
  61. available: word_values
  62. - dps_val: "memory"
  63. value: memory
  64. available: word_values
  65. - id: 38
  66. type: string
  67. name: numeric_values
  68. mapping:
  69. - dps_val: "0"
  70. value: true
  71. - dps_val: "1"
  72. value: true
  73. - dps_val: "2"
  74. value: true
  75. - value: false
  76. - id: 38
  77. type: string
  78. name: word_values
  79. mapping:
  80. - dps_val: "on"
  81. value: true
  82. - dps_val: "off"
  83. value: true
  84. - dps_val: memory
  85. value: true
  86. - value: false
  87. - entity: sensor
  88. name: Energy
  89. category: diagnostic
  90. dps:
  91. - id: 20
  92. name: sensor
  93. type: integer
  94. optional: true
  95. unit: Wh
  96. - entity: sensor
  97. class: current
  98. category: diagnostic
  99. dps:
  100. - id: 21
  101. name: sensor
  102. type: integer
  103. class: measurement
  104. force: true
  105. unit: mA
  106. - entity: sensor
  107. class: power
  108. category: diagnostic
  109. dps:
  110. - id: 22
  111. name: sensor
  112. type: integer
  113. class: measurement
  114. force: true
  115. unit: W
  116. mapping:
  117. - scale: 10
  118. - entity: sensor
  119. class: voltage
  120. category: diagnostic
  121. dps:
  122. - id: 23
  123. name: sensor
  124. type: integer
  125. force: true
  126. class: measurement
  127. unit: V
  128. mapping:
  129. - scale: 10
  130. - entity: binary_sensor
  131. class: problem
  132. category: diagnostic
  133. dps:
  134. - id: 29
  135. type: bitfield
  136. optional: true
  137. name: sensor
  138. mapping:
  139. - dps_val: 0
  140. value: false
  141. - value: true
  142. - id: 29
  143. type: bitfield
  144. optional: true
  145. name: fault_code