smartplugv2.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. name: Energy monitoring smartplug
  2. legacy_type: kogan_switch2
  3. products:
  4. - id: 3o0vwq7nfd8keuwp
  5. manufacturer: Mercator Ikuü
  6. model: SPLUG02
  7. entities:
  8. - entity: switch
  9. class: outlet
  10. dps:
  11. - id: 1
  12. type: boolean
  13. name: switch
  14. - id: 21
  15. type: bitfield
  16. name: factory_test
  17. optional: true
  18. - entity: sensor
  19. category: diagnostic
  20. class: voltage
  21. dps:
  22. - id: 20
  23. name: sensor
  24. type: integer
  25. class: measurement
  26. unit: V
  27. mapping:
  28. - scale: 10
  29. - id: 22
  30. type: integer
  31. name: calibration
  32. optional: true
  33. - entity: sensor
  34. category: diagnostic
  35. class: current
  36. dps:
  37. - id: 18
  38. name: sensor
  39. type: integer
  40. class: measurement
  41. unit: mA
  42. - id: 23
  43. type: integer
  44. name: calibration
  45. optional: true
  46. - entity: sensor
  47. category: diagnostic
  48. class: power
  49. dps:
  50. - id: 19
  51. name: sensor
  52. type: integer
  53. class: measurement
  54. unit: W
  55. mapping:
  56. - scale: 10
  57. - id: 24
  58. type: integer
  59. name: calibration
  60. optional: true
  61. - entity: number
  62. category: config
  63. class: duration
  64. translation_key: timer
  65. dps:
  66. - id: 9
  67. type: integer
  68. name: value
  69. unit: min
  70. range:
  71. min: 0
  72. max: 86400
  73. mapping:
  74. - scale: 60
  75. step: 60
  76. - entity: binary_sensor
  77. class: problem
  78. category: diagnostic
  79. dps:
  80. - id: 26
  81. type: bitfield
  82. name: sensor
  83. optional: true
  84. mapping:
  85. - dps_val: 0
  86. value: false
  87. - dps_val: null
  88. value: false
  89. - value: true
  90. - id: 26
  91. type: bitfield
  92. name: fault_code
  93. optional: true