grid_connect_usb_power_point.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. name: Initial state
  48. category: config
  49. icon: "mdi:toggle-switch"
  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: Keep state
  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