digoo_dgsp202.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. name: DIGOO DG-SP202
  2. entities:
  3. - entity: switch
  4. class: outlet
  5. translation_key: outlet_x
  6. translation_placeholders:
  7. x: "1"
  8. dps:
  9. - id: 1
  10. type: boolean
  11. name: switch
  12. - entity: switch
  13. translation_key: outlet_x
  14. translation_placeholders:
  15. x: "2"
  16. class: outlet
  17. dps:
  18. - id: 2
  19. type: boolean
  20. name: switch
  21. - entity: sensor
  22. category: diagnostic
  23. class: voltage
  24. dps:
  25. - id: 20
  26. name: sensor
  27. type: integer
  28. class: measurement
  29. unit: V
  30. force: true
  31. mapping:
  32. - scale: 10
  33. - entity: sensor
  34. category: diagnostic
  35. class: current
  36. dps:
  37. - id: 18
  38. name: sensor
  39. type: integer
  40. class: measurement
  41. force: true
  42. unit: mA
  43. - entity: sensor
  44. category: diagnostic
  45. class: power
  46. dps:
  47. - id: 19
  48. name: sensor
  49. type: integer
  50. class: measurement
  51. force: true
  52. unit: W
  53. mapping:
  54. - scale: 10
  55. - entity: number
  56. category: config
  57. translation_key: timer_x
  58. translation_placeholders:
  59. x: "1"
  60. class: duration
  61. dps:
  62. - id: 9
  63. name: value
  64. type: integer
  65. unit: min
  66. range:
  67. min: 0
  68. max: 86400
  69. mapping:
  70. - scale: 60
  71. step: 60
  72. - entity: number
  73. category: config
  74. translation_key: timer_x
  75. translation_placeholders:
  76. x: "2"
  77. class: duration
  78. dps:
  79. - id: 10
  80. name: value
  81. type: integer
  82. unit: min
  83. range:
  84. min: 0
  85. max: 86400
  86. mapping:
  87. - scale: 60
  88. step: 60