caffeinated00

Main/sub btns

Jan 24th, 2025
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. type: horizontal-stack
  2. cards:
  3. - type: vertical-stack
  4. cards:
  5. - type: custom:bubble-card
  6. card_type: button
  7. button_type: state
  8. name: Main
  9. scrolling_effect: false
  10. show_icon: true
  11. show_name: true
  12. sub_button:
  13. - icon: ""
  14. entity: button.node_pveorg_reboot
  15. tap_action:
  16. action: toggle
  17. confirmation:
  18. text: Do you want to reboot main Proxmox?
  19. card_layout: normal
  20. styles: |-
  21. .bubble-button-card-container {
  22. background: #9a9ca8; /* main button's bg color */
  23. color: #E6EAEA; /* main name text color, whiteish */
  24. }
  25. .bubble-icon-container {
  26. background: #E6EAEA; /* icon bg color */
  27. color: #9a9ca8; /* main icon color */
  28. --mdc-icon-size: 30px !important;
  29. }
  30. .bubble-sub-button {
  31. background: #E6EAEA; /* sub-icon bg color */
  32. }
  33. .bubble-sub-button-icon {
  34. --mdc-icon-size: 15px !important;
  35. color: #9a9ca8; !important; /* sub-but text color */
  36. }
  37.  
  38. show_attribute: true
  39. button_action:
  40. tap_action:
  41. action: navigate
  42. navigation_path: "#mainpve"
  43. double_tap_action:
  44. action: none
  45. hold_action:
  46. action: none
  47. double_tap_action:
  48. action: url
  49. url_path: "https://proxmain.com"
  50. tap_action:
  51. action: none
  52. hold_action:
  53. action: none
  54. icon: mdi:alpha-m
  55. entity: sensor.node_prox_memory_used_percentage
  56. show_state: false
  57. - type: custom:bubble-card
  58. card_type: empty-column
  59. - type: vertical-stack
  60. cards:
  61. - type: custom:bubble-card
  62. card_type: button
  63. button_type: state
  64. name: Sub
  65. scrolling_effect: false
  66. show_icon: true
  67. show_name: true
  68. sub_button:
  69. - entity: button.node_prox_reboot
  70. tap_action:
  71. action: more-info
  72. confirmation:
  73. text: Do you want to reboot proxmox 3060?
  74. card_layout: normal
  75. styles: |-
  76. .bubble-button-card-container {
  77. background: #9a9ca8; /* main button's bg color */
  78. color: #E6EAEA; /* main name text color, whiteish */
  79. }
  80. .bubble-icon-container {
  81. background: #E6EAEA; /* icon bg color */
  82. color: #9a9ca8; /* main icon color */
  83. --mdc-icon-size: 30px !important;
  84. }
  85. .bubble-sub-button {
  86. background: #E6EAEA; /* sub-icon bg color */
  87. }
  88. .bubble-sub-button-icon {
  89. --mdc-icon-size: 15px !important;
  90. color: #9a9ca8; !important; /* sub-but text color */
  91. }
  92.  
  93. show_attribute: true
  94. button_action:
  95. tap_action:
  96. action: navigate
  97. navigation_path: "#3060"
  98. double_tap_action:
  99. action: none
  100. hold_action:
  101. action: none
  102. double_tap_action:
  103. action: url
  104. url_path: "https://proxsub.com"
  105. tap_action:
  106. action: none
  107. hold_action:
  108. action: none
  109. icon: mdi:alpha-s
  110. entity: sensor.node_prox_memory_used_percentage
  111. show_state: false
  112. columns: 1
  113. rows: 1
  114. grid_options:
  115. columns: 12
  116. rows: auto
  117.  
Advertisement
Add Comment
Please, Sign In to add comment