Garageport animation, fjern alarm 1899, baghave lys vintersæson uge 42-8

This commit is contained in:
2026-05-05 19:38:01 +02:00
parent ae8b1ea6f8
commit bf6f2feba6
5 changed files with 72 additions and 47 deletions
+52 -7
View File
@@ -515,9 +515,9 @@ cards:
- border: 1px solid rgba(255, 200, 0, 0.8)
tap_action:
action: call-service
service: lawn_mower.dock
service: script.turn_on
target:
entity_id: lawn_mower.husqvarna_automower
entity_id: script.ploeneklipper_manuelt_stop
# 💡 Lys kontrol
- type: horizontal-stack
@@ -542,17 +542,62 @@ cards:
action: more-info
show_state: true
- type: tile
entity: binary_sensor.garageport
- type: custom:button-card
entity: cover.anne
name: Garage
features_position: bottom
vertical: false
show_name: true
show_state: false
show_label: true
label: >
[[[
const s = entity.state;
if (s === 'opening') return 'Åbner...';
if (s === 'closing') return 'Lukker...';
if (s === 'open') return 'Åben';
return 'Lukket';
]]]
icon: >
[[[
const s = entity.state;
if (s === 'open' || s === 'opening') return 'mdi:garage-open-variant';
return 'mdi:garage-variant';
]]]
extra_styles: |
@keyframes garage-pulse {
0% { opacity: 1; transform: scale(1); }
50% { opacity: 0.55; transform: scale(1.04); }
100% { opacity: 1; transform: scale(1); }
}
styles:
card:
- animation: >
[[[
const s = entity.state;
return (s === 'opening' || s === 'closing')
? 'garage-pulse 0.8s ease-in-out infinite'
: 'none';
]]]
icon:
- color: >
[[[
const s = entity.state;
if (s === 'open') return 'orange';
if (s === 'opening' || s === 'closing') return 'dodgerblue';
return 'var(--primary-text-color)';
]]]
label:
- font-size: 11px
- color: >
[[[
const s = entity.state;
if (s === 'opening' || s === 'closing') return 'dodgerblue';
return 'var(--secondary-text-color)';
]]]
tap_action:
action: call-service
service: cover.toggle
target:
entity_id: cover.anne
show_state: true
# 🎵 Sonos
- type: grid