smartplugv1.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. icon: "mdi:timer"
  62. name: Timer
  63. dps:
  64. - id: 2
  65. type: integer
  66. name: value
  67. unit: min
  68. range:
  69. min: 0
  70. max: 86400
  71. mapping:
  72. - scale: 60
  73. step: 60