blitzwolf_bwshp6_smartplug.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. name: Smartplug
  2. primary_entity:
  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. secondary_entities:
  22. - entity: sensor
  23. name: Energy
  24. category: diagnostic
  25. dps:
  26. - id: 17
  27. type: integer
  28. name: sensor
  29. unit: Wh
  30. optional: true
  31. - id: 25
  32. type: integer
  33. name: calibration
  34. optional: true
  35. - entity: sensor
  36. class: current
  37. category: diagnostic
  38. dps:
  39. - id: 18
  40. type: integer
  41. name: sensor
  42. unit: mA
  43. class: measurement
  44. force: true
  45. - id: 23
  46. type: integer
  47. name: calibration
  48. optional: true
  49. - entity: sensor
  50. class: power
  51. category: diagnostic
  52. dps:
  53. - id: 19
  54. type: integer
  55. name: sensor
  56. unit: W
  57. class: measurement
  58. force: true
  59. mapping:
  60. - scale: 10
  61. - id: 24
  62. type: integer
  63. name: calibration
  64. optional: true
  65. - entity: sensor
  66. class: voltage
  67. category: diagnostic
  68. dps:
  69. - id: 20
  70. type: integer
  71. name: sensor
  72. unit: V
  73. class: measurement
  74. force: true
  75. mapping:
  76. - scale: 10
  77. - id: 22
  78. type: integer
  79. name: calibration
  80. optional: true
  81. - entity: number
  82. translation_key: timer
  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