Advertisement
Guest User

Untitled

a guest
Jan 17th, 2022
1,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. id: nuc_status
  2. type: custom:config-template-card
  3. variables:
  4. - states['sensor.disk_use_percent'].state
  5. - states['sensor.homeassistant_version'].state
  6. - states['sensor.disk_total'].state
  7. - states['sensor.disk_use'].state
  8. - states['sensor.memory_use_percent'].state
  9. - states['sensor.processor_use'].state
  10. - states['sensor.processor_temperature'].state
  11. entities:
  12. - sensor.disk_use_percent
  13. - sensor.homeassistant_version
  14. - sensor.disk_total
  15. - sensor.disk_use
  16. - sensor.memory_use_percent
  17. - sensor.processor_use
  18. - sensor.processor_temperature
  19. card:
  20. type: entities
  21. show_header_toggle: 'off'
  22. style: |
  23. .card-header {
  24. padding: 0px 0px 0px 0px !important;
  25. }
  26. entities:
  27. - type: section
  28. label: ${ 'Debian 11 --- HA Version ' + vars[1] }
  29. - type: custom:hui-element
  30. card_type: vertical-stack
  31. cards:
  32. - type: horizontal-stack
  33. cards:
  34. - type: picture
  35. style: |
  36. ha-card {
  37. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  38. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  39. --ha-card-box-shadow: 'none';
  40. }
  41. image: /local/images/intel-nuc.png
  42. - type: custom:button-card
  43. layout: icon_name_state2nd
  44. show_icon: true
  45. show_state: true
  46. styles:
  47. grid:
  48. - grid-template-columns: 50px auto
  49. icon:
  50. - padding: 0px 0px
  51. - height: 30px
  52. - width: 30px
  53. card:
  54. - '--ha-card-background': rgba(0, 0, 0, 0.0)
  55. - '--ha-card-box-shadow': none
  56. state:
  57. - padding: 0px 10px
  58. - justify-self: start
  59. - font-family: Roboto, sans-serif
  60. - font-size: 15px
  61. name:
  62. - padding: 0px 10px
  63. - justify-self: start
  64. - color: var(--secondary-text-color)
  65. entity: sensor.homeassistant_uptime
  66. name: Uptime
  67. icon: mdi:clock-outline
  68. - type: custom:bar-card
  69. show_icon: true
  70. align: split
  71. columns: 1
  72. max: 100
  73. positions:
  74. icon: inside
  75. indicator: inside
  76. name: inside
  77. value: inside
  78. unit_of_measurement: '%'
  79. severity:
  80. - from: 0
  81. to: 50
  82. color: '#018304'
  83. - from: 50
  84. to: 75
  85. color: '#f39c12'
  86. - from: 75
  87. to: 100
  88. color: '#e45e65'
  89. style: |
  90. ha-card {
  91. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  92. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  93. --paper-item-icon-color: 'var(--text-primary-color';
  94. --ha-card-box-shadow: 'none';
  95. }
  96. entities:
  97. - entity: sensor.disk_use_percent
  98. name: ${ 'Disk (' + vars[3] + 'Gb/' + vars[2] + 'Gb)' }
  99. entity_row: true
  100. - type: horizontal-stack
  101. cards:
  102. - type: custom:bar-card
  103. show_icon: true
  104. align: split
  105. columns: 1
  106. max: 100
  107. positions:
  108. icon: inside
  109. indicator: inside
  110. name: inside
  111. value: inside
  112. unit_of_measurement: '%'
  113. severity:
  114. - from: 0
  115. to: 50
  116. color: '#018304'
  117. - from: 50
  118. to: 75
  119. color: '#f39c12'
  120. - from: 75
  121. to: 100
  122. color: '#e45e65'
  123. style: |
  124. ha-card {
  125. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  126. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  127. --paper-item-icon-color: 'var(--text-primary-color';
  128. --ha-card-box-shadow: 'none';
  129. }
  130. entity: sensor.memory_use_percent
  131. name: RAM
  132. entity_row: true
  133. - type: custom:bar-card
  134. show_icon: true
  135. align: split
  136. columns: 1
  137. max: 100
  138. positions:
  139. icon: inside
  140. indicator: inside
  141. name: inside
  142. value: inside
  143. unit_of_measurement: '%'
  144. severity:
  145. - from: 0
  146. to: 50
  147. color: '#018304'
  148. - from: 50
  149. to: 75
  150. color: '#f39c12'
  151. - from: 75
  152. to: 100
  153. color: '#e45e65'
  154. style: |
  155. ha-card {
  156. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  157. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  158. --paper-item-icon-color: 'var(--text-primary-color';
  159. --ha-card-box-shadow: 'none';
  160. }
  161. entity: sensor.processor_use
  162. name: CPU
  163. entity_row: true
  164. - type: custom:mini-graph-card
  165. height: 30
  166. line_width: 2
  167. font_size: 70
  168. hours_to_show: 168
  169. points_per_hour: 1
  170. show:
  171. extrema: true
  172. fill: true
  173. style: |
  174. ha-card {
  175. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  176. --ha-card-box-shadow: 'none';
  177. border-radius: 5px;
  178. }
  179. .info.flex {
  180. font-size: 12px !important;
  181. }
  182. entities:
  183. - sensor.processor_temperature
  184. name: Temperature
  185. color_thresholds:
  186. - value: 30
  187. color: '#3498db'
  188. - value: 50
  189. color: '#f39c12'
  190. - value: 80
  191. color: '#ff0000'
  192.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement