smartplugv1.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. name: Energy monitoring smartplug
  2. legacy_type: kogan_switch
  3. products:
  4. - id: 370053454855194e5607
  5. name: Gosund EP2
  6. - id: 37mnhia3pojleqfh
  7. name: SP111-A
  8. primary_entity:
  9. entity: switch
  10. class: outlet
  11. dps:
  12. - id: 1
  13. type: boolean
  14. name: switch
  15. secondary_entities:
  16. - entity: sensor
  17. category: diagnostic
  18. class: voltage
  19. dps:
  20. - id: 6
  21. name: sensor
  22. type: integer
  23. class: measurement
  24. unit: V
  25. mapping:
  26. - scale: 10
  27. - entity: sensor
  28. category: diagnostic
  29. class: current
  30. dps:
  31. - id: 4
  32. name: sensor
  33. type: integer
  34. class: measurement
  35. unit: mA
  36. - entity: sensor
  37. category: diagnostic
  38. class: power
  39. dps:
  40. - id: 5
  41. name: sensor
  42. type: integer
  43. class: measurement
  44. unit: W
  45. mapping:
  46. - scale: 10
  47. - entity: binary_sensor
  48. name: Overcurrent alarm
  49. class: problem
  50. category: diagnostic
  51. dps:
  52. - id: 7
  53. type: boolean
  54. name: sensor
  55. optional: true
  56. mapping:
  57. - dps_val: null
  58. value: false
  59. - entity: number
  60. category: config
  61. translation_key: timer
  62. dps:
  63. - id: 2
  64. type: integer
  65. name: value
  66. unit: min
  67. range:
  68. min: 0
  69. max: 86400
  70. mapping:
  71. - scale: 60
  72. step: 60