blitzwolf_bwshp6_smartplug.yaml 2.5 KB

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