Garageport animation, fjern alarm 1899, baghave lys vintersæson uge 42-8
This commit is contained in:
@@ -515,9 +515,9 @@ cards:
|
|||||||
- border: 1px solid rgba(255, 200, 0, 0.8)
|
- border: 1px solid rgba(255, 200, 0, 0.8)
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: lawn_mower.dock
|
service: script.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: lawn_mower.husqvarna_automower
|
entity_id: script.ploeneklipper_manuelt_stop
|
||||||
|
|
||||||
# 💡 Lys kontrol
|
# 💡 Lys kontrol
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
@@ -542,17 +542,62 @@ cards:
|
|||||||
action: more-info
|
action: more-info
|
||||||
show_state: true
|
show_state: true
|
||||||
|
|
||||||
- type: tile
|
- type: custom:button-card
|
||||||
entity: binary_sensor.garageport
|
entity: cover.anne
|
||||||
name: Garage
|
name: Garage
|
||||||
features_position: bottom
|
show_name: true
|
||||||
vertical: false
|
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:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: cover.toggle
|
service: cover.toggle
|
||||||
target:
|
target:
|
||||||
entity_id: cover.anne
|
entity_id: cover.anne
|
||||||
show_state: true
|
|
||||||
|
|
||||||
# 🎵 Sonos
|
# 🎵 Sonos
|
||||||
- type: grid
|
- type: grid
|
||||||
|
|||||||
@@ -214,31 +214,3 @@
|
|||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
entity_id: switch.sonos_alarm_298
|
entity_id: switch.sonos_alarm_298
|
||||||
|
|
||||||
- alias: 'Turn on alarms Badeværelse Afsted'
|
|
||||||
trigger:
|
|
||||||
platform: time
|
|
||||||
at: '20:07:10'
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
|
||||||
state: 'on'
|
|
||||||
- condition: template
|
|
||||||
value_template: >-
|
|
||||||
{{ not is_state('input_select.anne_status', 'syg') and
|
|
||||||
not is_state('input_select.claus_status', 'syg') }}
|
|
||||||
action:
|
|
||||||
- service: homeassistant.turn_on
|
|
||||||
entity_id: switch.sonos_alarm_1899
|
|
||||||
|
|
||||||
|
|
||||||
- alias: 'Turn off alarms Badeværelse Afsted'
|
|
||||||
trigger:
|
|
||||||
platform: time
|
|
||||||
at: '20:06:20'
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
|
||||||
state: 'off'
|
|
||||||
action:
|
|
||||||
- service: homeassistant.turn_off
|
|
||||||
entity_id: switch.sonos_alarm_1899
|
|
||||||
|
|||||||
@@ -29,10 +29,13 @@
|
|||||||
|
|
||||||
action:
|
action:
|
||||||
- variables:
|
- variables:
|
||||||
lights:
|
lights: >
|
||||||
- light.indkorsel_2
|
{% set base = ['light.indkorsel_2', 'light.garage'] %}
|
||||||
- light.extended_color_light_1
|
{% if now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 %}
|
||||||
- light.garage
|
{{ (base + ['light.extended_color_light_1']) | list }}
|
||||||
|
{% else %}
|
||||||
|
{{ base }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
lights_to_turn_on: >
|
lights_to_turn_on: >
|
||||||
{{ lights | select('is_state','off') | list }}
|
{{ lights | select('is_state','off') | list }}
|
||||||
|
|||||||
@@ -19,7 +19,10 @@
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.drivhus
|
- light.drivhus
|
||||||
- light.paradis
|
- light.paradis
|
||||||
- light.extended_color_light_1
|
- condition: template
|
||||||
|
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: light.extended_color_light_1
|
||||||
|
|
||||||
- alias: 'Sluk lys ved garage'
|
- alias: 'Sluk lys ved garage'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -29,12 +32,15 @@
|
|||||||
for:
|
for:
|
||||||
minutes: 10
|
minutes: 10
|
||||||
action:
|
action:
|
||||||
service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.drivhus
|
- light.drivhus
|
||||||
- light.paradis
|
- light.paradis
|
||||||
- light.extended_color_light_1
|
- condition: template
|
||||||
|
value_template: "{{ now().isocalendar()[1] >= 42 or now().isocalendar()[1] <= 8 }}"
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: light.extended_color_light_1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@
|
|||||||
entity_id:
|
entity_id:
|
||||||
- switch.sonos_alarm_1782 # Soft wakeup
|
- switch.sonos_alarm_1782 # Soft wakeup
|
||||||
- switch.sonos_alarm_298 # Badeværelse
|
- switch.sonos_alarm_298 # Badeværelse
|
||||||
- switch.sonos_alarm_1899 # Badeværelse afsted
|
|
||||||
|
|
||||||
- alias: "Syg - Soveværelse - genaktiver alarmer"
|
- alias: "Syg - Soveværelse - genaktiver alarmer"
|
||||||
id: syg_sovevaerelse_genaktiver_alarmer
|
id: syg_sovevaerelse_genaktiver_alarmer
|
||||||
|
|||||||
Reference in New Issue
Block a user