smartplugv3.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. name: Advanced energy monitoring smartplug
  2. entities:
  3. - entity: switch
  4. class: outlet
  5. dps:
  6. - id: 1
  7. type: boolean
  8. name: switch
  9. - id: 21
  10. type: integer
  11. name: test_bit
  12. - id: 41
  13. type: string
  14. name: cycle_timer
  15. - id: 42
  16. type: string
  17. name: random_timer
  18. - entity: number
  19. category: config
  20. class: duration
  21. translation_key: timer
  22. dps:
  23. - id: 9
  24. type: integer
  25. name: value
  26. unit: min
  27. range:
  28. min: 0
  29. max: 86400
  30. mapping:
  31. - scale: 60
  32. step: 60
  33. - entity: sensor
  34. category: diagnostic
  35. class: current
  36. dps:
  37. - id: 18
  38. name: sensor
  39. type: integer
  40. class: measurement
  41. force: true
  42. unit: mA
  43. - id: 23
  44. type: integer
  45. name: calibration
  46. optional: true
  47. - entity: sensor
  48. category: diagnostic
  49. class: power
  50. dps:
  51. - id: 19
  52. name: sensor
  53. type: integer
  54. class: measurement
  55. force: true
  56. unit: W
  57. mapping:
  58. - scale: 10
  59. - id: 24
  60. type: integer
  61. name: calibration
  62. optional: true
  63. - entity: sensor
  64. category: diagnostic
  65. class: voltage
  66. dps:
  67. - id: 20
  68. name: sensor
  69. type: integer
  70. force: true
  71. class: measurement
  72. unit: V
  73. mapping:
  74. - scale: 10
  75. - id: 22
  76. type: integer
  77. name: calibration
  78. optional: true
  79. - entity: binary_sensor
  80. class: problem
  81. category: diagnostic
  82. dps:
  83. - id: 26
  84. type: bitfield
  85. name: sensor
  86. mapping:
  87. - dps_val: 0
  88. value: false
  89. - value: true
  90. - id: 26
  91. type: bitfield
  92. name: fault_code
  93. - entity: select
  94. category: config
  95. translation_key: initial_state
  96. dps:
  97. - id: 38
  98. type: string
  99. name: option
  100. mapping:
  101. - dps_val: "on"
  102. value: "on"
  103. - dps_val: "off"
  104. value: "off"
  105. - dps_val: memory
  106. value: memory
  107. - entity: switch
  108. name: Overcharge cutoff
  109. category: config
  110. icon: "mdi:battery-charging"
  111. dps:
  112. - id: 46
  113. type: boolean
  114. name: switch