grid_connect_usb_power_point.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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: number
  16. name: Outlet timer
  17. class: duration
  18. translation_key: timer
  19. category: config
  20. dps:
  21. - id: 9
  22. type: integer
  23. name: value
  24. range:
  25. min: 0
  26. max: 86400
  27. mapping:
  28. - scale: 60
  29. step: 60
  30. unit: mi
  31. - entity: number
  32. name: USB timer
  33. class: duration
  34. translation_key: timer
  35. category: config
  36. dps:
  37. - id: 10
  38. type: integer
  39. name: value
  40. range:
  41. min: 0
  42. max: 86400
  43. mapping:
  44. - scale: 60
  45. step: 60
  46. unit: min
  47. - entity: select
  48. translation_key: initial_state
  49. category: config
  50. dps:
  51. - id: 38
  52. type: string
  53. name: option
  54. mapping:
  55. - dps_val: power_off
  56. value: "off"
  57. - dps_val: power_on
  58. value: "on"
  59. - dps_val: last
  60. value: memory
  61. - entity: lock
  62. translation_key: child_lock
  63. category: config
  64. dps:
  65. - id: 41
  66. type: boolean
  67. name: lock
  68. - entity: switch
  69. name: Auto-off
  70. category: config
  71. icon: "mdi:camera-timer"
  72. dps:
  73. - id: 44
  74. type: boolean
  75. name: switch