blitzwolf_bwshp6_smartplug.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. name: Smartplug
  2. entities:
  3. - entity: switch
  4. class: outlet
  5. dps:
  6. - id: 1
  7. name: switch
  8. type: boolean
  9. - id: 21
  10. name: factory_test
  11. type: bitfield
  12. - id: 41
  13. name: cycle_time
  14. type: base64
  15. - id: 42
  16. name: random_time
  17. type: base64
  18. - id: 43
  19. name: inching
  20. type: base64
  21. - entity: sensor
  22. name: Energy
  23. category: diagnostic
  24. hidden: true
  25. dps:
  26. - id: 17
  27. type: integer
  28. name: sensor
  29. unit: Wh
  30. class: measurement
  31. optional: true
  32. - id: 25
  33. type: integer
  34. name: calibration
  35. optional: true
  36. - entity: sensor
  37. class: current
  38. category: diagnostic
  39. dps:
  40. - id: 18
  41. type: integer
  42. name: sensor
  43. unit: mA
  44. class: measurement
  45. force: true
  46. - id: 23
  47. type: integer
  48. name: calibration
  49. optional: true
  50. - entity: sensor
  51. class: power
  52. category: diagnostic
  53. dps:
  54. - id: 19
  55. type: integer
  56. name: sensor
  57. unit: W
  58. class: measurement
  59. force: true
  60. mapping:
  61. - scale: 10
  62. - id: 24
  63. type: integer
  64. name: calibration
  65. optional: true
  66. - entity: sensor
  67. class: voltage
  68. category: diagnostic
  69. dps:
  70. - id: 20
  71. type: integer
  72. name: sensor
  73. unit: V
  74. class: measurement
  75. force: true
  76. mapping:
  77. - scale: 10
  78. - id: 22
  79. type: integer
  80. name: calibration
  81. optional: true
  82. - entity: number
  83. translation_key: timer
  84. class: duration
  85. category: config
  86. dps:
  87. - id: 9
  88. type: integer
  89. name: value
  90. unit: min
  91. range:
  92. min: 0
  93. max: 86400
  94. mapping:
  95. - scale: 60
  96. step: 60
  97. - entity: select
  98. translation_key: initial_state
  99. category: config
  100. dps:
  101. - id: 38
  102. type: string
  103. name: option
  104. mapping:
  105. - dps_val: "on"
  106. value: "on"
  107. - dps_val: "off"
  108. value: "off"
  109. - dps_val: memory
  110. value: memory
  111. - entity: select
  112. name: Light mode
  113. icon: "mdi:lightbulb"
  114. category: config
  115. dps:
  116. - id: 39
  117. type: string
  118. name: option
  119. mapping:
  120. - dps_val: relay
  121. value: State
  122. - dps_val: pos
  123. value: Position
  124. - dps_val: none
  125. value: "Off"
  126. - entity: lock
  127. translation_key: child_lock
  128. category: config
  129. dps:
  130. - id: 40
  131. type: boolean
  132. name: lock