Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id: nuc_status
- type: custom:config-template-card
- variables:
- - states['sensor.disk_use_percent'].state
- - states['sensor.current_version'].state
- - states['sensor.disk_total'].state
- - states['sensor.disk_use'].state
- - states['sensor.memory_use_percent'].state
- - states['sensor.processor_use'].state
- - states['sensor.processor_temperature'].state
- entities:
- - sensor.disk_use_percent
- - sensor.current_version
- - sensor.disk_total
- - sensor.disk_use
- - sensor.memory_use_percent
- - sensor.processor_use
- - sensor.processor_temperature
- card:
- type: entities
- show_header_toggle: 'off'
- style: |
- .card-header {
- padding: 0px 0px 0px 0px !important;
- }
- entities:
- - type: section
- label: ${ 'Debian 11 --- HA Version ' + vars[1] }
- - type: custom:hui-element
- card_type: vertical-stack
- cards:
- - type: horizontal-stack
- cards:
- - type: picture
- style: |
- ha-card {
- --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
- --ha-card-background: "rgba(0, 0, 0, 0.0)";
- --ha-card-box-shadow: 'none';
- }
- image: /local/images/test-ha.png
- - type: vertical-stack
- cards:
- - type: custom:button-card
- layout: icon_name_state2nd
- show_icon: true
- show_state: true
- styles:
- grid:
- - grid-template-columns: 50px auto
- icon:
- - padding: 0px 0px
- - height: 30px
- - width: 30px
- card:
- - '--ha-card-background': rgba(0, 0, 0, 0.0)
- - '--ha-card-box-shadow': none
- state:
- - padding: 0px 10px
- - justify-self: start
- - font-family: Roboto, sans-serif
- - font-size: 15px
- name:
- - padding: 0px 10px
- - justify-self: start
- - color: var(--secondary-text-color)
- entity: sensor.hora_uptime
- name: Home Assistant
- icon: mdi:clock-outline
- - type: custom:button-card
- layout: icon_name_state2nd
- show_icon: true
- show_state: true
- styles:
- grid:
- - grid-template-columns: 50px auto
- icon:
- - padding: 0px 0px
- - height: 30px
- - width: 30px
- card:
- - '--ha-card-background': rgba(0, 0, 0, 0.0)
- - '--ha-card-box-shadow': none
- state:
- - padding: 0px 10px
- - justify-self: start
- - font-family: Roboto, sans-serif
- - font-size: 15px
- name:
- - padding: 0px 10px
- - justify-self: start
- - color: var(--secondary-text-color)
- entity: sensor.hora_last_boot
- name: Servidor
- icon: mdi:clock-outline
- - type: custom:bar-card
- show_icon: true
- align: split
- columns: 1
- max: 100
- positions:
- icon: inside
- indicator: inside
- name: inside
- value: inside
- unit_of_measurement: '%'
- severity:
- - from: 0
- to: 50
- color: '#018304'
- - from: 50
- to: 75
- color: '#f39c12'
- - from: 75
- to: 100
- color: '#e45e65'
- style: |
- ha-card {
- --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
- --ha-card-background: "rgba(0, 0, 0, 0.0)";
- --paper-item-icon-color: 'var(--text-primary-color';
- --ha-card-box-shadow: 'none';
- }
- entities:
- - entity: sensor.disk_use_percent
- name: ${ 'HD (' + vars[3] + 'Gb/' + vars[2] + 'Gb)' }
- entity_row: true
- - type: horizontal-stack
- cards:
- - type: custom:bar-card
- show_icon: true
- align: split
- columns: 1
- max: 100
- positions:
- icon: inside
- indicator: inside
- name: inside
- value: inside
- unit_of_measurement: '%'
- severity:
- - from: 0
- to: 50
- color: '#018304'
- - from: 50
- to: 75
- color: '#f39c12'
- - from: 75
- to: 100
- color: '#e45e65'
- style: |
- ha-card {
- --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
- --ha-card-background: "rgba(0, 0, 0, 0.0)";
- --paper-item-icon-color: 'var(--text-primary-color';
- --ha-card-box-shadow: 'none';
- }
- entity: sensor.memory_use_percent
- name: Memória Ram
- entity_row: true
- - type: custom:bar-card
- show_icon: true
- align: split
- columns: 1
- max: 100
- positions:
- icon: inside
- indicator: inside
- name: inside
- value: inside
- unit_of_measurement: '%'
- severity:
- - from: 0
- to: 50
- color: '#018304'
- - from: 50
- to: 75
- color: '#f39c12'
- - from: 75
- to: 100
- color: '#e45e65'
- style: |
- ha-card {
- --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
- --ha-card-background: "rgba(0, 0, 0, 0.0)";
- --paper-item-icon-color: 'var(--text-primary-color';
- --ha-card-box-shadow: 'none';
- }
- entity: sensor.processor_use
- name: CPU
- entity_row: true
- - type: custom:mini-graph-card
- height: 30
- line_width: 2
- font_size: 70
- hours_to_show: 168
- points_per_hour: 1
- show:
- extrema: true
- fill: true
- style: |
- ha-card {
- --ha-card-background: "rgba(0, 0, 0, 0.0)";
- --ha-card-box-shadow: 'none';
- border-radius: 5px;
- }
- .info.flex {
- font-size: 12px !important;
- }
- entities:
- - sensor.processor_temperature
- name: Temperature
- color_thresholds:
- - value: 30
- color: '#3498db'
- - value: 50
- color: '#f39c12'
- - value: 80
- color: '#ff0000'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement