grid_connect_usb_power_point.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. 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. translation_key: timer
  34. category: config
  35. dps:
  36. - id: 10
  37. type: integer
  38. name: value
  39. range:
  40. min: 0
  41. max: 86400
  42. mapping:
  43. - scale: 60
  44. step: 60
  45. unit: min
  46. - entity: select
  47. translation_key: initial_state
  48. category: config
  49. dps:
  50. - id: 38
  51. type: string
  52. name: option
  53. mapping:
  54. - dps_val: power_off
  55. value: "off"
  56. - dps_val: power_on
  57. value: "on"
  58. - dps_val: last
  59. value: memory
  60. - entity: lock
  61. translation_key: child_lock
  62. category: config
  63. dps:
  64. - id: 41
  65. type: boolean
  66. name: lock
  67. - entity: switch
  68. name: Auto-off
  69. category: config
  70. icon: "mdi:camera-timer"
  71. dps:
  72. - id: 44
  73. type: boolean
  74. name: switch