Guest User

Untitled

a guest
Jan 10th, 2026
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.16 KB | None | 0 0
  1. type: custom:mod-card
  2. card:
  3. type: vertical-stack
  4. cards:
  5. - type: custom:mini-graph-card
  6. font_size: 70
  7. lower_bound: 0
  8. show:
  9. name: false
  10. state: false
  11. icon: false
  12. points_per_hour: 12
  13. hours_to_show: 6
  14. card_mod:
  15. style: |
  16. .graph__legend__item:nth-of-type(1) .ellipsis:after {
  17. content: ": {{states('sensor.pc_audio_default_device_volume')}}";
  18. }
  19. .graph__legend__item:nth-of-type(2) .ellipsis:after {
  20. content: ": {{states('sensor.pc_audio_peak_volume')}}";
  21. }
  22. entities:
  23. - entity: sensor.pc
  24. name: Set Volume
  25. - entity: sensor.pc_audio_peak_volume
  26. name: Actual Volume
  27. - type: conditional
  28. conditions:
  29. - condition: user
  30. users:
  31. - abcdef0123456789
  32. card:
  33. type: entities
  34. entities:
  35. - entity: switch.pc_admin_controls
  36. toggle: true
  37. - type: conditional
  38. conditions:
  39. - entity: switch.pc_admin_controls
  40. state_not: "off"
  41. card:
  42. type: grid
  43. columns: 4
  44. square: false
  45. cards:
  46. - type: button
  47. entity: button.pc_keypress_esc
  48. name: Esc
  49. icon: mdi:keyboard-esc
  50. tap_action:
  51. action: call-service
  52. service: button.press
  53. data:
  54. entity_id: button.pc_keypress_esc
  55. - type: button
  56. entity: button.pc_ctrlf4
  57. name: Ctrl+F4
  58. icon: mdi:tab-remove
  59. tap_action:
  60. action: call-service
  61. service: button.press
  62. data:
  63. entity_id: button.pc_ctrlf4
  64. - type: button
  65. entity: button.pc_altf4
  66. name: Alt+F4
  67. icon: mdi:window-close
  68. tap_action:
  69. action: call-service
  70. service: button.press
  71. data:
  72. entity_id: button.pc_altf4
  73. - type: button
  74. entity: button.pc_bash_lock
  75. name: Lock
  76. tap_action:
  77. action: call-service
  78. service: button.press
  79. data:
  80. entity_id: button.pc_bash_lock
  81. - type: horizontal-stack
  82. cards:
  83. - type: custom:mini-graph-card
  84. card_mod:
  85. style:
  86. .header.flex .icon ha-icon $: |
  87. ha-svg-icon {
  88. fill: deepskyblue;
  89. }
  90. .: |
  91. ha-card .states.flex::after {
  92. content: "{{ states('sensor.pc_temperature_coretemp_package_id_0') | int }}°C";
  93. }
  94. font_size: 70
  95. lower_bound: 0
  96. icon: si:intel
  97. entities:
  98. - entity: sensor.pc_cpu_usage
  99. name: CPU
  100. color: deepskyblue
  101. - type: custom:mini-graph-card
  102. card_mod:
  103. style:
  104. .header.flex .icon ha-icon $: |
  105. ha-svg-icon {
  106. fill: lawngreen;
  107. }
  108. .: |
  109. ha-card .states.flex::after {
  110. content: "{{ states('sensor.pc_temperature_amdgpu_edge') }}°C";
  111. }
  112. font_size: 70
  113. lower_bound: 0
  114. icon: si:amd
  115. entities:
  116. - entity: sensor.pc_gpu_amd_0
  117. name: GPU
  118. color: lawngreen
  119. - type: custom:mini-graph-card
  120. card_mod:
  121. style:
  122. .header.flex .icon ha-icon $: |
  123. ha-svg-icon {
  124. fill: lightgrey;
  125. }
  126. .: |
  127. ha-card .states.flex::after {
  128. content: "16GB";
  129. }
  130. font_size: 70
  131. lower_bound: 0
  132. decimals: 0
  133. icon: si:corsair
  134. entities:
  135. - entity: sensor.pc_memory_usage
  136. name: RAM
  137. color: lightgrey
  138. - type: horizontal-stack
  139. cards:
  140. - type: custom:mini-graph-card
  141. card_mod:
  142. style:
  143. .header.flex .icon ha-icon $: |
  144. ha-svg-icon {
  145. fill: #1528A0;
  146. }
  147. .: |
  148. ha-card {
  149. padding: 0px !important;
  150. }
  151. .header.flex {
  152. padding-bottom: 0px;
  153. padding-top: 16px;
  154. }
  155. .states.flex {
  156. padding-bottom: 0px;
  157. }
  158. font_size: 70
  159. line_width: 3
  160. lower_bound: 0
  161. upper_bound: 100
  162. entities:
  163. - entity: sensor.pc_disk_dev_nvme0n1p1
  164. name: System NVME
  165. color: "#1528A0"
  166. - entity: sensor.pc_disk_io_nvme0n1
  167. name: I/O
  168. - type: custom:mini-graph-card
  169. card_mod:
  170. style:
  171. .header.flex .icon ha-icon $: |
  172. ha-svg-icon {
  173. fill: #00529F;
  174. }
  175. .: |
  176. ha-card {
  177. padding: 0px !important;
  178. }
  179. .header.flex {
  180. padding-bottom: 0px;
  181. padding-top: 16px;
  182. }
  183. .states.flex {
  184. padding-bottom: 0px;
  185. }
  186. font_size: 70
  187. line_width: 3
  188. lower_bound: 0
  189. upper_bound: 100
  190. icon: si:westerndigital
  191. entities:
  192. - entity: sensor.pc_disk_dev_sda1
  193. name: Games HDD
  194. color: "#00529F"
  195. - entity: sensor.pc_disk_io_sda
  196. name: I/O
  197. - type: conditional
  198. conditions:
  199. - entity: switch.pc_admin_controls
  200. state_not: "off"
  201. card:
  202. type: entities
  203. entities:
  204. - entity: input_boolean.pc_power_options
  205. name: Power Options
  206. - type: conditional
  207. conditions:
  208. - entity: input_boolean.pc_power_options
  209. state_not: "off"
  210. card:
  211. type: grid
  212. columns: 4
  213. square: false
  214. cards:
  215. - type: button
  216. entity: button.pc_bash_log_out
  217. name: Log Out
  218. tap_action:
  219. action: call-service
  220. service: button.press
  221. data:
  222. entity_id: button.pc_bash_log_out
  223. - type: button
  224. entity: button.pc_suspend
  225. name: Suspend
  226. icon: mdi:power-sleep
  227. tap_action:
  228. action: call-service
  229. service: button.press
  230. data:
  231. entity_id: button.pc_suspend
  232. - type: button
  233. entity: button.pc_restart
  234. name: Restart
  235. icon: mdi:restart
  236. tap_action:
  237. action: call-service
  238. service: button.press
  239. data:
  240. entity_id: button.pc_restart
  241. - type: conditional
  242. conditions:
  243. - entity: switch.pc
  244. state_not: "off"
  245. card:
  246. type: button
  247. entity: switch.pc
  248. name: Shutdown
  249. icon: mdi:power-off
  250. tap_action:
  251. action: call-service
  252. service: switch.toggle
  253. data:
  254. entity_id: switch.pc
  255. - type: conditional
  256. conditions:
  257. - entity: switch.pc
  258. state_not: "on"
  259. card:
  260. type: button
  261. entity: switch.pc
  262. name: Start Up
  263. icon: mdi:power-on
  264. tap_action:
  265. action: call-service
  266. service: switch.toggle
  267. data:
  268. entity_id: switch.pc
  269. - type: custom:mod-card
  270. card_mod:
  271. style:
  272. hui-horizontal-stack-card$: |
  273. hui-entity-card {
  274. width: 180%;
  275. flex: auto !important;
  276. }
  277. hui-button-card {
  278. flex: auto !important;
  279. }
  280. card:
  281. type: horizontal-stack
  282. cards:
  283. - type: entity
  284. entity: sensor.pc_active_window
  285. name: Active Window
  286. card_mod:
  287. style: |
  288. .value {
  289. font-size: 12px !important;
  290. }
  291. .info {
  292. text-overflow: unset !important;
  293. white-space: unset !important;
  294. padding: 0px 16px 8px !important;
  295. line-height: 12px !important;
  296. }
  297. - type: button
  298. entity: button.pc_cyclewindows
  299. show_name: false
  300. icon: mdi:window-restore
  301. tap_action:
  302. action: call-service
  303. service: button.press
  304. data:
  305. entity_id: button.pc_cyclewindows
  306. - type: custom:mini-media-player
  307. entity: media_player.mqtt_media_player_pc_media_player
  308. name: Media
  309. artwork: cover
  310. hide:
  311. icon: true
  312. power: true
  313. jump: false
  314. shortcuts:
  315. columns: 3
  316. hide_when_off: true
  317. buttons:
  318. - name: Fullscreen
  319. type: service
  320. icon: mdi:fullscreen
  321. id: button.press
  322. data:
  323. entity_id: button.pc_ytfullscr
  324. - name: Captions
  325. type: service
  326. icon: mdi:closed-caption
  327. id: button.press
  328. data:
  329. entity_id: button.pc_ytsubs
  330. - name: Tidal
  331. type: service
  332. icon: si:tidal
  333. id: button.press
  334. data:
  335. entity_id: button.pc_exe_tidal
  336. - type: conditional
  337. conditions:
  338. - entity: select.pc_steam_game_select
  339. state_not:
  340. - Stopped
  341. - unavailable
  342. card:
  343. type: entity
  344. entity: select.pc_steam_game_select
  345. name: Now Playing on Steam
  346.  
Advertisement
Add Comment
Please, Sign In to add comment