smartplugv2.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. name: Energy monitoring smartplug
  2. legacy_type: kogan_switch2
  3. primary_entity:
  4. entity: switch
  5. class: outlet
  6. dps:
  7. - id: 1
  8. type: boolean
  9. name: switch
  10. - id: 21
  11. type: bitfield
  12. name: factory_test
  13. optional: true
  14. - id: 26
  15. type: integer
  16. name: fault_code
  17. optional: true
  18. secondary_entities:
  19. - entity: sensor
  20. category: diagnostic
  21. class: voltage
  22. dps:
  23. - id: 20
  24. name: sensor
  25. type: integer
  26. class: measurement
  27. unit: V
  28. mapping:
  29. - scale: 10
  30. - id: 22
  31. type: integer
  32. name: calibration
  33. optional: true
  34. - entity: sensor
  35. category: diagnostic
  36. class: current
  37. dps:
  38. - id: 18
  39. name: sensor
  40. type: integer
  41. class: measurement
  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. unit: W
  56. mapping:
  57. - scale: 10
  58. - id: 24
  59. type: integer
  60. name: calibration
  61. optional: true
  62. - entity: number
  63. category: config
  64. name: Timer
  65. icon: "mdi:timer"
  66. dps:
  67. - id: 9
  68. type: integer
  69. name: value
  70. unit: min
  71. range:
  72. min: 0
  73. max: 86400
  74. mapping:
  75. - scale: 60
  76. step: 60