Skip to content

Instantly share code, notes, and snippets.

@jasontucker
Created September 29, 2025 17:23
Show Gist options
  • Select an option

  • Save jasontucker/bd5c50cecb61d58654b3c891d6571bec to your computer and use it in GitHub Desktop.

Select an option

Save jasontucker/bd5c50cecb61d58654b3c891d6571bec to your computer and use it in GitHub Desktop.
Home Assistant - Update Doorbell with Day-Specific Message at 1:10am
alias: Update Doorbell with Day-Specific Message at 1:10am
triggers:
- at: "00:01:10"
trigger: time
actions:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: calendar.holidays
state: "on"
- condition: state
entity_id: calendar.home_calendar
state: "on"
sequence:
- target:
entity_id: text.home_doorbell
data:
value: >
{% set event1 = state_attr('calendar.holidays', 'message') %} {%
set event2 = state_attr('calendar.home_calendar', 'message') %}
{% if event1 %}
Happy {{ event1 }}!
{% elif event2 %}
Happy {{ event2 }}!
{% else %}
WELCOME!
{% endif %}
action: text.set_value
- conditions:
- condition: time
weekday:
- mon
sequence:
- target:
entity_id: text.home_doorbell
data:
value: It's Monday! Welcome!
action: text.set_value
- conditions:
- condition: time
weekday:
- tue
sequence:
- target:
entity_id: text.home_doorbell
data:
value: Happy Tuesday!
action: text.set_value
- conditions:
- condition: time
weekday:
- wed
sequence:
- target:
entity_id: text.home_doorbell
data:
value: Wednesday Vibes!
action: text.set_value
- conditions:
- condition: time
weekday:
- thu
sequence:
- target:
entity_id: text.home_doorbell
data:
value: Almost Friday!
action: text.set_value
- conditions:
- condition: time
weekday:
- fri
sequence:
- target:
entity_id: text.home_doorbell
data:
value: It's Friday, I'm in love
action: text.set_value
- conditions:
- condition: time
weekday:
- sat
sequence:
- target:
entity_id: text.home_doorbell
data:
value: Enjoy your Saturday!
action: text.set_value
- conditions:
- condition: time
weekday:
- sun
sequence:
- target:
entity_id: text.home_doorbell
data:
value: Relax, it's Sunday!
action: text.set_value
default:
- target:
entity_id: text.home_doorbell
data:
value: WELCOME!
action: text.set_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment