grid_connect_usb_power_point.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. name: Grid Connect USB charger with power socket
  2. entities:
  3. - entity: switch
  4. class: outlet
  5. dps:
  6. - id: 1
  7. type: boolean
  8. name: switch
  9. - entity: switch
  10. name: USB
  11. dps:
  12. - id: 2
  13. type: boolean
  14. name: switch
  15. - entity: time
  16. translation_key: timer
  17. category: config
  18. dps:
  19. - id: 9
  20. type: integer
  21. name: second
  22. range:
  23. min: 0
  24. max: 86400
  25. - entity: time
  26. translation_key: timer_x
  27. translation_placeholders:
  28. x: USB
  29. category: config
  30. dps:
  31. - id: 10
  32. type: integer
  33. name: second
  34. range:
  35. min: 0
  36. max: 86400
  37. - entity: number
  38. name: Outlet timer
  39. # 2025-07-20
  40. deprecated: time.timer
  41. class: duration
  42. translation_key: timer
  43. category: config
  44. dps:
  45. - id: 9
  46. type: integer
  47. name: value
  48. range:
  49. min: 0
  50. max: 86400
  51. mapping:
  52. - scale: 60
  53. step: 60
  54. unit: min
  55. - entity: number
  56. name: USB timer
  57. # 2025-07-20
  58. deprecated: time.timer_usb
  59. class: duration
  60. translation_key: timer
  61. category: config
  62. dps:
  63. - id: 10
  64. type: integer
  65. name: value
  66. range:
  67. min: 0
  68. max: 86400
  69. mapping:
  70. - scale: 60
  71. step: 60
  72. unit: min
  73. - entity: select
  74. translation_key: initial_state
  75. category: config
  76. dps:
  77. - id: 38
  78. type: string
  79. name: option
  80. mapping:
  81. - dps_val: power_off
  82. value: "off"
  83. - dps_val: power_on
  84. value: "on"
  85. - dps_val: last
  86. value: memory
  87. - entity: lock
  88. translation_key: child_lock
  89. category: config
  90. dps:
  91. - id: 41
  92. type: boolean
  93. name: lock
  94. - entity: switch
  95. name: Auto-off
  96. category: config
  97. icon: "mdi:camera-timer"
  98. dps:
  99. - id: 44
  100. type: boolean
  101. name: switch