Advertisement
joaoescorcio

Untitled

May 31st, 2022
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 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.current_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.current_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/test-ha.png
  42. - type: vertical-stack
  43. cards:
  44. - type: custom:button-card
  45. layout: icon_name_state2nd
  46. show_icon: true
  47. show_state: true
  48. styles:
  49. grid:
  50. - grid-template-columns: 50px auto
  51. icon:
  52. - padding: 0px 0px
  53. - height: 30px
  54. - width: 30px
  55. card:
  56. - '--ha-card-background': rgba(0, 0, 0, 0.0)
  57. - '--ha-card-box-shadow': none
  58. state:
  59. - padding: 0px 10px
  60. - justify-self: start
  61. - font-family: Roboto, sans-serif
  62. - font-size: 15px
  63. name:
  64. - padding: 0px 10px
  65. - justify-self: start
  66. - color: var(--secondary-text-color)
  67. entity: sensor.hora_uptime
  68. name: Home Assistant
  69. icon: mdi:clock-outline
  70. - type: custom:button-card
  71. layout: icon_name_state2nd
  72. show_icon: true
  73. show_state: true
  74. styles:
  75. grid:
  76. - grid-template-columns: 50px auto
  77. icon:
  78. - padding: 0px 0px
  79. - height: 30px
  80. - width: 30px
  81. card:
  82. - '--ha-card-background': rgba(0, 0, 0, 0.0)
  83. - '--ha-card-box-shadow': none
  84. state:
  85. - padding: 0px 10px
  86. - justify-self: start
  87. - font-family: Roboto, sans-serif
  88. - font-size: 15px
  89. name:
  90. - padding: 0px 10px
  91. - justify-self: start
  92. - color: var(--secondary-text-color)
  93. entity: sensor.hora_last_boot
  94. name: Servidor
  95. icon: mdi:clock-outline
  96. - type: custom:bar-card
  97. show_icon: true
  98. align: split
  99. columns: 1
  100. max: 100
  101. positions:
  102. icon: inside
  103. indicator: inside
  104. name: inside
  105. value: inside
  106. unit_of_measurement: '%'
  107. severity:
  108. - from: 0
  109. to: 50
  110. color: '#018304'
  111. - from: 50
  112. to: 75
  113. color: '#f39c12'
  114. - from: 75
  115. to: 100
  116. color: '#e45e65'
  117. style: |
  118. ha-card {
  119. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  120. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  121. --paper-item-icon-color: 'var(--text-primary-color';
  122. --ha-card-box-shadow: 'none';
  123. }
  124. entities:
  125. - entity: sensor.disk_use_percent
  126. name: ${ 'HD (' + vars[3] + 'Gb/' + vars[2] + 'Gb)' }
  127. entity_row: true
  128. - type: horizontal-stack
  129. cards:
  130. - type: custom:bar-card
  131. show_icon: true
  132. align: split
  133. columns: 1
  134. max: 100
  135. positions:
  136. icon: inside
  137. indicator: inside
  138. name: inside
  139. value: inside
  140. unit_of_measurement: '%'
  141. severity:
  142. - from: 0
  143. to: 50
  144. color: '#018304'
  145. - from: 50
  146. to: 75
  147. color: '#f39c12'
  148. - from: 75
  149. to: 100
  150. color: '#e45e65'
  151. style: |
  152. ha-card {
  153. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  154. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  155. --paper-item-icon-color: 'var(--text-primary-color';
  156. --ha-card-box-shadow: 'none';
  157. }
  158. entity: sensor.memory_use_percent
  159. name: Memória Ram
  160. entity_row: true
  161. - type: custom:bar-card
  162. show_icon: true
  163. align: split
  164. columns: 1
  165. max: 100
  166. positions:
  167. icon: inside
  168. indicator: inside
  169. name: inside
  170. value: inside
  171. unit_of_measurement: '%'
  172. severity:
  173. - from: 0
  174. to: 50
  175. color: '#018304'
  176. - from: 50
  177. to: 75
  178. color: '#f39c12'
  179. - from: 75
  180. to: 100
  181. color: '#e45e65'
  182. style: |
  183. ha-card {
  184. --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
  185. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  186. --paper-item-icon-color: 'var(--text-primary-color';
  187. --ha-card-box-shadow: 'none';
  188. }
  189. entity: sensor.processor_use
  190. name: CPU
  191. entity_row: true
  192. - type: custom:mini-graph-card
  193. height: 30
  194. line_width: 2
  195. font_size: 70
  196. hours_to_show: 168
  197. points_per_hour: 1
  198. show:
  199. extrema: true
  200. fill: true
  201. style: |
  202. ha-card {
  203. --ha-card-background: "rgba(0, 0, 0, 0.0)";
  204. --ha-card-box-shadow: 'none';
  205. border-radius: 5px;
  206. }
  207. .info.flex {
  208. font-size: 12px !important;
  209. }
  210. entities:
  211. - sensor.processor_temperature
  212. name: Temperature
  213. color_thresholds:
  214. - value: 30
  215. color: '#3498db'
  216. - value: 50
  217. color: '#f39c12'
  218. - value: 80
  219. color: '#ff0000'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement