smartplugv2.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. 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