Alguem me ajuda com esse card?
cards:
- cards:
- custom_fields:
icone: |
[[[
return `<b>HassOS</b><br><ha-icon
icon="mdi:raspberry-pi"
style="width: 40px; height: 40px;">
</ha-icon><br></span>
<ha-icon
icon="mdi:radioactive"
style="width: 18px; height: 16px; color: red;">
</ha-icon><span> <span style="color: var(--text-color-sensor);">${states['sensor.processor_use'].state}%</span></span>`
]]]
ram: |
[[[
return `<ha-icon
icon="mdi:memory"
style="width: 22px; height: 18px; color: #C51162;">
</ha-icon><span>RAM: <span style="color: var(--text-color-sensor);"><b>${states['sensor.memory_free'].state}</b> MB</span></span>`
]]]
ramuse: |
[[[
return `<ha-icon
icon="mdi:memory"
style="width: 22px; height: 18px; color: #C51162;">
</ha-icon><span><span style="color: var(--text-color-sensor);"><b>${states['sensor.memory_use_percent'].state}</b>%</span></span>`
]]]
sd: |
[[[
return `<ha-icon
icon="mdi:harddisk"
style="width: 22px; height: 18px; color: #8BC34A;">
</ha-icon><span>SD: <span style="color: var(--text-color-sensor);"><b>${states['sensor.disk_free'].state}</b> GB</span></span>`
]]]
sduse: |
[[[
return `<ha-icon
icon="mdi:harddisk"
style="width: 22px; height: 18px; color: #8BC34A;">
</ha-icon><span><span style="color: var(--text-color-sensor);"><b>${states['sensor.disk_use_percent'].state}</b>%</span></span>`
]]]
temp: |
[[[
return `<ha-icon
icon="mdi:thermometer"
style="width: 22px; height: 18px; color: yellow;">
</ha-icon><span><b>${entity.state}</b>°C</span>`
]]]
versao: |
[[[
return `<ha-icon
icon="mdi:settings"
style="width: 22px; height: 18px; color: deepskyblue;">
</ha-icon><span>Versão: <span style="color: var(--text-color-sensor);"><b>${states['sensor.versao'].state}</b></span></span>`
]]]
entity: sensor.temperatura_da_cpu
layout: icon_state_name2nd
show_icon: false
show_name: false
show_state: false
styles:
card:
- padding: 10%
- font-size: 15px
custom_fields:
icone:
- position: absolute
- left: 77%
- top: 5%
ram:
- position: absolute
- left: 2%
- top: 70%
ramuse:
- position: absolute
- left: 35%
- top: 70%
sd:
- position: absolute
- left: 2%
- top: 40%
sduse:
- position: absolute
- left: 35%
- top: 40%
temp:
- position: absolute
- left: 35%
- top: 10%
versao:
- position: absolute
- left: 2%
- top: 10%
type: 'custom:button-card'
type: horizontal-stack
type: vertical-stack