digoo_dgsp202.yaml 1.7 KB

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