grid_connect_usb_power_point.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. name: Grid Connect USB charger with power socket
  2. primary_entity:
  3. entity: switch
  4. class: outlet
  5. dps:
  6. - id: 1
  7. type: boolean
  8. name: switch
  9. secondary_entities:
  10. - entity: switch
  11. name: USB
  12. dps:
  13. - id: 2
  14. type: boolean
  15. name: switch
  16. - entity: number
  17. name: Outlet timer
  18. class: duration
  19. translation_key: timer
  20. category: config
  21. dps:
  22. - id: 9
  23. type: integer
  24. name: value
  25. range:
  26. min: 0
  27. max: 86400
  28. mapping:
  29. - scale: 60
  30. step: 60
  31. unit: mi
  32. - entity: number
  33. name: USB timer
  34. class: duration
  35. translation_key: timer
  36. category: config
  37. dps:
  38. - id: 10
  39. type: integer
  40. name: value
  41. range:
  42. min: 0
  43. max: 86400
  44. mapping:
  45. - scale: 60
  46. step: 60
  47. unit: min
  48. - entity: select
  49. translation_key: initial_state
  50. category: config
  51. dps:
  52. - id: 38
  53. type: string
  54. name: option
  55. mapping:
  56. - dps_val: power_off
  57. value: "off"
  58. - dps_val: power_on
  59. value: "on"
  60. - dps_val: last
  61. value: memory
  62. - entity: lock
  63. translation_key: child_lock
  64. category: config
  65. dps:
  66. - id: 41
  67. type: boolean
  68. name: lock
  69. - entity: switch
  70. name: Auto-off
  71. category: config
  72. icon: "mdi:camera-timer"
  73. dps:
  74. - id: 44
  75. type: boolean
  76. name: switch