browser_mod added to integrations and styled full day events

This commit is contained in:
2025-12-01 13:12:27 -05:00
parent a1123c7092
commit 09a3b6ac98
4 changed files with 193 additions and 140 deletions

View File

@@ -54,3 +54,8 @@ Datetime (Time)
Toggle: Toggle:
- “calendar_all_day_event” - “calendar_all_day_event”
## HACS
### Browser Mod
>[!IMPORTANT]
> It's important to add the browser mod integration to your HA after you add it to HACS. Then restart your HA

View File

@@ -1,3 +1,5 @@
## add a new script to Settings > Automations & scenes > Scripts
alias: Add CalDAV Calendar Event alias: Add CalDAV Calendar Event
description: Create an event based on All Day or Timed selection description: Create an event based on All Day or Timed selection
sequence: sequence:

View File

@@ -1,4 +0,0 @@
# Script for CalDAV events
This is what allows you to utilize a self-hosted calendar (in my instance nextcloud).
Add this script to the scripts settings of your HA you can find scripts here `Settings > Automations & scenes > Scripts`

View File

@@ -54,6 +54,8 @@ views:
columns: full columns: full
column_span: 4 column_span: 4
- type: grid - type: grid
cards:
- type: vertical-stack
cards: cards:
- type: horizontal-stack - type: horizontal-stack
cards: cards:
@@ -146,6 +148,33 @@ views:
opacity: 1 !important; opacity: 1 !important;
background-color: ${hass.states['input_text.holiday_calendar_filter'].state === '.*' ? 'light-grey' : 'rgba(175, 150, 255, 0.6)'} !important;} background-color: ${hass.states['input_text.holiday_calendar_filter'].state === '.*' ? 'light-grey' : 'rgba(175, 150, 255, 0.6)'} !important;}
} }
icon: mdi:calendar-month
- type: custom:bubble-card
card_type: button
button_type: state
entity: calendar.contact_birthdays
scrolling_effect: false
show_icon: true
icon: mdi:cake
show_name: true
show_state: false
tap_action:
action: perform-action
perform_action: script.contact_calendar_visible_filter
target: {}
button_action:
tap_action:
action: perform-action
perform_action: script.contact_calendar_visible_filter
target: {}
styles: |
.bubble-button-background {
opacity: 1 !important;
background-color: ${hass.states['input_text.contact_calendar_filter'].state === '.*' ? 'light-grey' : 'rgba(250, 230, 30, 0.6)'} !important;}
}
card_layout: large
force_icon: false
name: Birthdays
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: name button_type: name
@@ -190,6 +219,13 @@ views:
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
[data-entity="calendar.contact_birthdays"] {
color: red !important;
}
grid_options:
columns: full
- type: vertical-stack
cards:
- type: custom:bubble-card - type: custom:bubble-card
card_type: select card_type: select
entity: input_select.calendar_view entity: input_select.calendar_view
@@ -199,19 +235,22 @@ views:
show_last_changed: false show_last_changed: false
show_attribute: false show_attribute: false
grid_options: grid_options:
columns: full columns: 9
rows: 1
- type: custom:config-template-card - type: custom:config-template-card
entities: entities:
- input_text.brian_calendar_filter - input_text.brian_calendar_filter
- input_text.kate_calendar_filter - input_text.kate_calendar_filter
- input_text.dog_calendar_filter - input_text.dog_calendar_filter
- input_text.holiday_calendar_filter - input_text.holiday_calendar_filter
- input_text.contact_calendar_filter
- inpup_select.calendar_view - inpup_select.calendar_view
variables: variables:
PERSONCAL: states['input_text.brian_calendar_filter']?.state PERSONCAL: states['input_text.brian_calendar_filter']?.state
PERSON2CAL: states['input_text.kate_calendar_filter']?.state PERSON2CAL: states['input_text.kate_calendar_filter']?.state
DOGCAL: states['input_text.dog_calendar_filter']?.state DOGCAL: states['input_text.dog_calendar_filter']?.state
HOLCAL: states['input_text.holiday_calendar_filter']?.state HOLCAL: states['input_text.holiday_calendar_filter']?.state
BIRCAL: states['input_text.contact_calendar_filter']?.state
VIEW: states['input_select.calendar_view']?.state VIEW: states['input_select.calendar_view']?.state
DAYS: | DAYS: |
(() => { (() => {
@@ -248,6 +287,10 @@ views:
name: holidays name: holidays
color: rgba(175, 150, 255, 0.6) color: rgba(175, 150, 255, 0.6)
filter: ${ HOLCAL } filter: ${ HOLCAL }
- entity: calendar.contact_birthdays
name: Birthdays
color: rgba(250, 240, 30, 0.6)
filter: ${ BIRCAL }
days: ${ DAYS } days: ${ DAYS }
startingDay: sunday startingDay: sunday
startingDayOffset: 0 startingDayOffset: 0
@@ -299,6 +342,10 @@ views:
overflow: hidden !important; overflow: hidden !important;
font-size: 1.1em !important; font-size: 1.1em !important;
} }
.event.fullday {
background: none !important; /* or transparent */
border: 2px solid var(--border-color); /* Use your border color variable */
}
.fullday .inner { .fullday .inner {
padding: 0.25rem !important; padding: 0.25rem !important;
} }
@@ -328,7 +375,7 @@ views:
--background-color: red; --background-color: red;
border: solid 1px whitesmoke; border: solid 1px whitesmoke;
padding: 0.2%; padding: 0.2%;
width: 12% !important; width: 13% !important;
} }
} }
grid_options: grid_options:
@@ -358,6 +405,9 @@ views:
: 'red'} !important; : 'red'} !important;
} }
modules: [] modules: []
close_action:
action: navigate
navigation_path: /our-calendar
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: entities - type: entities