mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Move config out of subfolder
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
v3_button_ac:
|
||||
template: v3_button
|
||||
icon: mdi:air-conditioner
|
||||
state_display: |
|
||||
[[[
|
||||
if (!entity) {
|
||||
return "Unavailable";
|
||||
}
|
||||
|
||||
if (entity.state === "off") {
|
||||
return "Off";
|
||||
}
|
||||
return entity.attributes.hvac_action.charAt(0).toUpperCase() +
|
||||
entity.attributes.hvac_action.slice(1) + ' to ' +
|
||||
entity.attributes.temperature + '°';
|
||||
]]]
|
||||
state:
|
||||
- value: 'off'
|
||||
operator: '!='
|
||||
styles:
|
||||
card:
|
||||
- background-color: white
|
||||
- color: black
|
||||
icon:
|
||||
- color: var(--primary-color)
|
||||
state:
|
||||
- color: black
|
||||
Reference in New Issue
Block a user