-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- presence_someone_arrives_home bugfix - consolidate weather templates - organize custom templates - minor bugfixes
- Loading branch information
Showing
44 changed files
with
456 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{%- macro window_door_sensor(entity_name) -%} | ||
:host { | ||
--paper-item-icon-color: | ||
{%- if is_state('input_boolean.' ~ entity_name, 'on') %} var(--state-icon-color) | ||
{%- else %} var(--entity-minor-color) | ||
{%- endif -%} | ||
; | ||
--state-binary_sensor-active-color: | ||
{%- set sensor = 'binary_sensor.' ~ entity_name ~ '_open_alert' %} | ||
{%- set trigger = state_attr('alarm_control_panel.master', 'open_sensors') if state_attr('alarm_control_panel.master', 'open_sensors') else '' %} | ||
{%- if is_state('input_boolean.alarm_triggered', 'on') and sensor in trigger %} var(--entity-critical-color) | ||
{%- elif is_state(sensor, 'on') and not is_state('alert.hvac_window_door_open', 'idle') %} var(--entity-severe-color) | ||
{%- elif is_state('input_boolean.' ~ entity_name, 'off') %} var(--state-warning-color) | ||
{%- else %} var(--state-active-color) | ||
{%- endif -%} | ||
; | ||
} | ||
{%- endmacro -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{%- macro clist_locks(locks) -%} | ||
{%- set msg = namespace(value='') %} | ||
{%- set qty = namespace(value=0) %} | ||
{%- for item in locks %} | ||
{%- set qty.value = qty.value | int(0) + 1 %} | ||
{%- if not loop.first %}{% set msg.value = msg.value ~ ', ' %}{% endif %} | ||
{%- set msg.value = msg.value ~ states[item].object_id | replace('_door_lock', '') | replace('_', ' ') | title %} | ||
{%- endfor %} | ||
{%- set clist = ', and ' if msg.value.split(', ') | count > 2 else ' and ' %} | ||
{%- set plural = 's have' if qty.value | int(0) > 1 else ' has' %} | ||
{{- clist.join(msg.value.rsplit(', ', 1)) -}} | ||
{%- endmacro -%} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{%- macro list_events(events) -%} | ||
{%- for event in events %} | ||
{%- if (event.start is defined) %} | ||
{%- if (event.start | as_datetime).day == now().day %} | ||
{{ event.start | as_timestamp | timestamp_custom('Today at %-I:%M %p') }}: {% if event.summary is defined %}{{ event.summary }}{% endif %} | ||
{%- else %} | ||
{{ event.start | as_timestamp | timestamp_custom('%A at %-I:%M %p') }}: {% if event.summary is defined %}{{ event.summary }}{% endif %} | ||
{%- endif %} | ||
{%- else %}{% if event.summary is defined %}{{ event.summary }}{% endif %} | ||
{%- endif %} | ||
{%- endfor %}. | ||
{%- endmacro -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.