caffeinated00

Scrypted button

Jan 24th, 2025
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3. - type: vertical-stack
  4. cards:
  5. - type: custom:bubble-card
  6. card_type: button
  7. button_type: state
  8. name: Scrypted
  9. scrolling_effect: false
  10. show_icon: true
  11. show_name: true
  12. sub_button:
  13. - show_background: false
  14. show_state: true
  15. name: RAM
  16. icon: mdi:memory
  17. double_tap_action:
  18. action: none
  19. tap_action:
  20. action: none
  21. show_name: true
  22. show_icon: true
  23. show_attribute: false
  24. attribute: friendly_name
  25. show_last_changed: false
  26. entity: sensor.lxc_scrypted_103_memory_used_percentage
  27. - name: Disk
  28. show_background: false
  29. show_name: true
  30. show_state: true
  31. tap_action:
  32. action: none
  33. show_attribute: true
  34. entity: sensor.lxc_scrypted_103_disk_used_percentage
  35. icon: mdi:harddisk
  36. - entity: sensor.lxc_scrypted_103_cpu_used
  37. show_state: true
  38. show_name: true
  39. name: CPU
  40. show_icon: true
  41. state_background: false
  42. show_background: false
  43. tap_action:
  44. action: none
  45. card_layout: large-2-rows
  46. styles: |-
  47. .bubble-button-card-container {
  48. background: #7A7691;
  49. color: #E6EAEA; /* main name text color, whiteish */
  50. #margin-left: 2px;
  51. }
  52. .bubble-icon-container {
  53. background: #E6EAEA;
  54. color: #7A7691; /* main icon color */
  55.  
  56. --mdc-icon-size: 25px !important;
  57. }
  58. .bubble-sub-button {
  59. font-size: 12px !important;
  60. color: #707275 !important; /* sub-but text color */
  61. #margin-right: -16px;
  62. }
  63. .bubble-sub-button-1 {
  64. background-color: ${hass.states['sensor.lxc_scrypted_103_memory_used_percentage'].state > 90
  65. ? '#D06D67'
  66. : '#E6EAEA'} !important; /* sub-icon color red when >90, otherwise white */
  67. }
  68. .bubble-sub-button-2 {
  69. background-color: ${hass.states['sensor.lxc_scrypted_103_disk_used_percentage'].state > 60
  70. ? '#D06D67'
  71. : '#E6EAEA'} !important;
  72. }
  73. .bubble-sub-button-3 {
  74. background-color: ${hass.states['sensor.lxc_scrypted_103_cpu_used'].state > 90
  75. ? '#D06D67'
  76. : '#E6EAEA'} !important;
  77. }
  78.  
  79.  
  80. show_attribute: true
  81. attribute: apparent_temperature
  82. button_action:
  83. tap_action:
  84. action: navigate
  85. navigation_path: "#scrypted"
  86. double_tap_action:
  87. action: none
  88. hold_action:
  89. action: none
  90. double_tap_action:
  91. action: url
  92. url_path: >-
  93. https://scrypted.com
  94. tap_action:
  95. action: none
  96. hold_action:
  97. action: none
  98. icon: mdi:cctv
  99. entity: sensor.lxc_scrypted_103_memory_used_percentage
  100. show_state: false
  101. - type: custom:bubble-card
  102. card_type: empty-column
  103.  
Advertisement
Add Comment
Please, Sign In to add comment