rad1xs

Button-Card

Aug 20th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | Source Code | 0 0
  1. type: custom:stack-in-card
  2. cards:
  3. - type: custom:mushroom-template-card
  4. icon: mdi:fan
  5. primary: Control Wurden Fan
  6. - type: grid
  7. square: false
  8. columns: 5
  9. cards:
  10. - type: custom:button-card
  11. entity: script.wurden_fan_on_off
  12. name: On/Off
  13. show_name: null
  14. icon: mdi:fan
  15. tap_action:
  16. action: toggle
  17. styles:
  18. grid:
  19. - grid-template-areas: "\"i\" \"n\""
  20. - grid-template-columns: 1fr;
  21. - grid-template-rows: 1fr;
  22. card:
  23. - margin: 0
  24. - border-radius: 20px
  25. - padding: 12px 14px 12px 14px
  26. img_cell:
  27. - background: "#272829"
  28. - border-radius: 100px
  29. - width: 50px
  30. - height: 30px
  31. icon:
  32. - justify-self: start
  33. - width: 20px
  34. - color: white
  35. name:
  36. - padding-top: 8px
  37. - justify-self: middle
  38. - font-size: 12px
  39. - font-weight: 500
  40. - type: custom:button-card
  41. entity: script.wurden_fan_speed_mode
  42. name: Speed
  43. show_name: true
  44. icon: mdi:fan-plus
  45. tap_action:
  46. action: toggle
  47. styles:
  48. grid:
  49. - grid-template-areas: "\"i\" \"n\""
  50. - grid-template-columns: 1fr;
  51. - grid-template-rows: 1fr;
  52. card:
  53. - margin: 0
  54. - border-radius: 20px
  55. - padding: 12px 14px 12px 14px
  56. img_cell:
  57. - background: "#272829"
  58. - border-radius: 100px
  59. - width: 50px
  60. - height: 30px
  61. icon:
  62. - justify-self: start
  63. - width: 20px
  64. - color: white
  65. name:
  66. - padding-top: 8px
  67. - justify-self: middle
  68. - font-size: 12px
  69. - font-weight: 500
  70. - type: custom:button-card
  71. entity: script.wurden_fan_timer
  72. name: Timer
  73. show_name: true
  74. icon: mdi:fan-clock
  75. tap_action:
  76. action: toggle
  77. styles:
  78. grid:
  79. - grid-template-areas: "\"i\" \"n\""
  80. - grid-template-columns: 1fr;
  81. - grid-template-rows: 1fr;
  82. card:
  83. - margin: 0
  84. - border-radius: 20px
  85. - padding: 12px 14px 12px 14px
  86. img_cell:
  87. - background: "#272829"
  88. - border-radius: 100px
  89. - width: 50px
  90. - height: 30px
  91. icon:
  92. - justify-self: start
  93. - width: 20px
  94. - color: white
  95. name:
  96. - padding-top: 8px
  97. - justify-self: middle
  98. - font-size: 12px
  99. - font-weight: 500
  100. - type: custom:button-card
  101. entity: script.wurden_fan_vertical_mode
  102. name: Vertical
  103. show_name: true
  104. icon: mdi:fan-chevron-up
  105. tap_action:
  106. action: toggle
  107. styles:
  108. grid:
  109. - grid-template-areas: "\"i\" \"n\""
  110. - grid-template-columns: 1fr;
  111. - grid-template-rows: 1fr;
  112. card:
  113. - margin: 0
  114. - border-radius: 20px
  115. - padding: 12px 14px 12px 14px
  116. img_cell:
  117. - background: "#272829"
  118. - border-radius: 100px
  119. - width: 50px
  120. - height: 30px
  121. icon:
  122. - justify-self: start
  123. - width: 20px
  124. - color: white
  125. name:
  126. - padding-top: 8px
  127. - justify-self: middle
  128. - font-size: 12px
  129. - font-weight: 500
  130. - type: custom:button-card
  131. entity: script.wurden_fan_horizontal_mode
  132. name: Horizontal
  133. show_name: true
  134. icon: mdi:fan-minus
  135. tap_action:
  136. action: toggle
  137. styles:
  138. grid:
  139. - grid-template-areas: "\"i\" \"n\""
  140. - grid-template-columns: 1fr;
  141. - grid-template-rows: 1fr;
  142. card:
  143. - margin: 0
  144. - border-radius: 20px
  145. - padding: 12px 14px 12px 14px
  146. img_cell:
  147. - background: "#272829"
  148. - border-radius: 100px
  149. - width: 50px
  150. - height: 30px
  151. icon:
  152. - justify-self: start
  153. - width: 20px
  154. - color: white
  155. name:
  156. - padding-top: 8px
  157. - justify-self: middle
  158. - font-size: 12px
  159. - font-weight: 500
  160.  
Advertisement
Add Comment
Please, Sign In to add comment