smartplugv1.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. name: Energy monitoring smartplug
  2. legacy_type: kogan_switch
  3. products:
  4. - id: 370053454855194e5607
  5. name: Gosund EP2
  6. primary_entity:
  7. entity: switch
  8. class: outlet
  9. dps:
  10. - id: 1
  11. type: boolean
  12. name: switch
  13. secondary_entities:
  14. - entity: sensor
  15. category: diagnostic
  16. class: voltage
  17. name: Voltage
  18. dps:
  19. - id: 6
  20. name: sensor
  21. type: integer
  22. class: measurement
  23. unit: V
  24. mapping:
  25. - scale: 10
  26. - entity: sensor
  27. category: diagnostic
  28. class: current
  29. name: 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. name: Power
  40. dps:
  41. - id: 5
  42. name: sensor
  43. type: integer
  44. class: measurement
  45. unit: W
  46. mapping:
  47. - scale: 10
  48. - entity: binary_sensor
  49. name: Overcurrent alarm
  50. class: problem
  51. category: diagnostic
  52. dps:
  53. - id: 7
  54. type: boolean
  55. name: sensor
  56. optional: true
  57. mapping:
  58. - dps_val: null
  59. value: false
  60. - entity: number
  61. category: config
  62. icon: "mdi:timer"
  63. name: Timer
  64. dps:
  65. - id: 2
  66. type: integer
  67. name: value
  68. unit: min
  69. range:
  70. min: 0
  71. max: 86400
  72. mapping:
  73. - scale: 60
  74. step: 60