Compare commits
10 Commits
temp_fixes
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
7a490f2b4d
|
|||
|
a3fe6e269f
|
|||
|
edb1728c02
|
|||
|
81f74cc30d
|
|||
|
391faf170a
|
|||
|
c278db1864
|
|||
|
9ce0012265
|
|||
|
dda8a88fff
|
|||
|
2649af5a7f
|
|||
|
dbfdc9e6ff
|
@@ -1 +1 @@
|
||||
2026.4.0
|
||||
2026.4.1
|
||||
@@ -6602,3 +6602,94 @@
|
||||
path: github.com/weatheralerts_persistent_notification_original.yaml
|
||||
input:
|
||||
sensor: sensor.weatheralerts_defiance_ohz004_ohc039
|
||||
- id: '1775709997448'
|
||||
alias: Basement Heat Disallow
|
||||
description: Turn off the heater when the Heat Allowed toggle is switched off
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_boolean.basement_studio_heat_allowed
|
||||
from:
|
||||
- 'on'
|
||||
to:
|
||||
- 'off'
|
||||
conditions: []
|
||||
actions:
|
||||
- action: climate.turn_off
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: climate.basement_studio_vtherm
|
||||
data: {}
|
||||
mode: restart
|
||||
- id: '1775731411839'
|
||||
alias: Emma Bedroom Mode Switch
|
||||
description: For switching modes when the temperature goes from one extreme at night
|
||||
to the other during the day
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.emma_bedroom_mode_switch
|
||||
id: switch-time
|
||||
alias: Switch Time
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emma_bedroom_mode_switch
|
||||
state:
|
||||
- 'on'
|
||||
actions:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.emma_bedroom_mode_switch
|
||||
state:
|
||||
- To Aircon
|
||||
alias: To Aircon
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_boolean.emma_bedroom_aircon_installed
|
||||
data: {}
|
||||
alias: Enable aircon, disable heater
|
||||
- action: input_number.set_value
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_number.emma_bedroom_bedtime_temp
|
||||
data:
|
||||
value: 68
|
||||
alias: Set bedtime temp
|
||||
- action: input_select.select_option
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_select.scheduled_climate_mode_emma_bedroom
|
||||
data:
|
||||
option: AC
|
||||
alias: Set scheduled mode to AC
|
||||
- action: switch.turn_on
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: switch.emma_bedroom_climate_watchdog
|
||||
data: {}
|
||||
alias: Turn on climate watchdog
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
- action: button.press
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: button.emma_bedroom_bedtime_mode
|
||||
data: {}
|
||||
alias: Activate bedtime mode to apply new settings
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
- action: input_boolean.turn_off
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: input_boolean.white_noise_emma_bedroom
|
||||
data: {}
|
||||
alias: Turn off white noise
|
||||
mode: restart
|
||||
|
||||
@@ -162,6 +162,22 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
'language': 'da',
|
||||
'plural_form': 'english',
|
||||
'phrases': {
|
||||
'year': ['år', 'år', 'år'],
|
||||
'month': ['mnd', 'måned', 'måneder'],
|
||||
'week': ['uge', 'uge', 'uger'],
|
||||
'day': ['dag', 'dag', 'dage'],
|
||||
'hour': ['t.', 'time', 'timer'],
|
||||
'minute': ['min.', 'minut', 'minutter'],
|
||||
'second': ['sek.', 'sekund', 'sekunder'],
|
||||
'millisecond': ['ms.', 'millisekund', 'millisekunder'],
|
||||
'combine': 'og',
|
||||
'error': 'Ugyldig dato',
|
||||
}
|
||||
},
|
||||
{
|
||||
'language': 'dk',
|
||||
'plural_form': 'english',
|
||||
'phrases': {
|
||||
@@ -170,7 +186,7 @@
|
||||
'week': ['uge', 'uge', 'uger'],
|
||||
'day': ['dag', 'dag', 'dage'],
|
||||
'hour': ['t.', 'time', 'timer'],
|
||||
'minute': ['min.', 'minut', 'minuter'],
|
||||
'minute': ['min.', 'minut', 'minutter'],
|
||||
'second': ['sek.', 'sekund', 'sekunder'],
|
||||
'millisecond': ['ms.', 'millisekund', 'millisekunder'],
|
||||
'combine': 'og',
|
||||
@@ -236,7 +252,7 @@
|
||||
'hour': ['ч', 'час', 'часа', 'часов'],
|
||||
'minute': ['м', 'минута', 'минуты', 'минут'],
|
||||
'second': ['с', 'секунда', 'секунды', 'секунд'],
|
||||
'millisecond': ['мс', 'миллисекунда', 'миллисекунды', 'миллисекунд'],
|
||||
'millisecond': ['мс', 'милисекунда', 'милисекунды', 'милисекунд'],
|
||||
'combine': 'и',
|
||||
'error': 'Неверная дата',
|
||||
}
|
||||
@@ -337,22 +353,6 @@
|
||||
'error': 'Érvénytelen dátum',
|
||||
}
|
||||
},
|
||||
{
|
||||
'language': 'tr',
|
||||
'plural_form': 'english',
|
||||
'phrases': {
|
||||
'year': ['yıl', 'yıl', 'yıl'],
|
||||
'month': ['ay', 'ay', 'ay'],
|
||||
'week': ['hf', 'hafta', 'hafta'],
|
||||
'day': ['gün', 'gün', 'gün'],
|
||||
'hour': ['sa', 'saat', 'saat'],
|
||||
'minute': ['dk', 'dakika', 'dakika'],
|
||||
'second': ['sn', 'saniye', 'saniye'],
|
||||
'millisecond': ['ms', 'milisaniye', 'milisaniye'],
|
||||
'combine': 've',
|
||||
'error': 'Geçersiz tarih',
|
||||
}
|
||||
},
|
||||
] -%}
|
||||
|
||||
{# macro to convert the abbreviated input for the not_use and always_show lists to the full time part names #}
|
||||
@@ -374,8 +374,33 @@
|
||||
macro to split a timedelta in years, months, weeks, days, hours, minutes, seconds and milliseconds
|
||||
used by the relative time plus macro, set up as a seperate macro so it can be reused
|
||||
#}
|
||||
{%- macro time_split(date, parts=8, compare_date=now(), not_use=[], always_show=['all'], time=true, round_mode='floor') -%}
|
||||
{%- macro time_split(date, parts=8, compare_date=now(), not_use=[], always_show=['all'], time=true, round_mode='floor', duration=false, duration_unit='s') -%}
|
||||
{#- set defaults for input if not entered #}
|
||||
{%- if date in states | map(attribute='entity_id') -%}
|
||||
{%- if date | has_value and is_state_attr(date, 'device_class', 'duration') -%}
|
||||
{%- set duration = true -%}
|
||||
{%- set duration_unit = state_attr(date, 'unit_of_measurement') -%}
|
||||
{%- set date = states(date) -%}
|
||||
{%- elif date is match('input_datetime') and not state_attr(date, 'has_date') -%}
|
||||
{%- set date = today_at(states(date)) -%}
|
||||
{%- else -%}
|
||||
{%- set date = states(date) -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- if duration and date | is_number -%}
|
||||
{%- set conversion_mapper =
|
||||
{
|
||||
'd': 3600 * 24,
|
||||
'h': 3600,
|
||||
'min': 60,
|
||||
's': 1,
|
||||
'ms': 1/1000,
|
||||
'μs': 1/1000000
|
||||
}
|
||||
-%}
|
||||
{%- set sec = date | float * conversion_mapper[duration_unit] | default(1) -%}
|
||||
{%- set date = now() + timedelta(seconds=sec) -%}
|
||||
{%- endif -%}
|
||||
{%- set date = date if date is datetime else date | as_datetime('invalid') -%}
|
||||
{%- set compare_date = compare_date if compare_date is datetime else compare_date | as_datetime('invalid') -%}
|
||||
{%- set time = time | bool(true) -%}
|
||||
@@ -521,7 +546,7 @@
|
||||
{%- else -%} {{- dict(error='No time parts left to output') -}}
|
||||
{%- endif -%} {# 3 #}
|
||||
{%- endif -%} {# 2 #}
|
||||
{%- else -%} {{- dict(error='Invalid date input')-}}
|
||||
{%- else -%} {{- dict(error='Invalid date input') -}}
|
||||
{%- endif -%} {# 1 #}
|
||||
{%- endmacro -%}
|
||||
|
||||
@@ -557,7 +582,7 @@
|
||||
{%- endmacro -%}
|
||||
|
||||
{# macro to output a timedelta in a readable format #}
|
||||
{%- macro relative_time_plus(date, parts=1, abbr=false, language='en', compare_date=now(), not_use=['millisecond'], always_show=[], time=true, round_mode='floor') -%}
|
||||
{%- macro relative_time_plus(date, parts=1, abbr=false, language='en', compare_date=now(), not_use=['millisecond'], always_show=[], time=true, round_mode='floor', duration=false, duration_unit='s') -%}
|
||||
{#- select correct phrases bases on language input #}
|
||||
{%- set phrases = _time_period_phrases -%}
|
||||
{%- set languages = phrases | map(attribute='language') | list -%}
|
||||
@@ -566,7 +591,7 @@
|
||||
{%- set plural_form = phrases | selectattr('language', 'eq', language) | map(attribute='plural_form') | list | first -%}
|
||||
{%- set abbr = abbr | bool(false) -%}
|
||||
{# split timedelta #}
|
||||
{%- set time_parts = time_split(date, parts, compare_date, not_use, always_show, time, round_mode) | from_json -%}
|
||||
{%- set time_parts = time_split(date, parts, compare_date, not_use, always_show, time, round_mode, duration, duration_unit) | from_json -%}
|
||||
{# check for error #}
|
||||
{%- if 'error' in time_parts -%}
|
||||
{{- time_parts['error'] -}}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
{% if is_state(team,'PRE') %}
|
||||
{% set date = state_attr(team,'date') | as_timestamp | timestamp_custom('%m-%d') %}
|
||||
{% if date == now().strftime('%m-%d') %}
|
||||
The {{ state_attr(team,'friendly_name') }} will be playing today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} at {{ state_attr(team,'venue') }}.
|
||||
The {{ entity_name(team) }} will be playing today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} at {{ state_attr(team,'venue') }}.
|
||||
{{ sports_str(team,'start') }} is at {{ state_attr(team,'date') | as_timestamp | timestamp_custom('%I:%M %p') }}.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
@@ -82,26 +82,26 @@
|
||||
{% set yday = (as_timestamp(now()) - (24*3600)) | timestamp_custom('%m-%d') %}
|
||||
{% if date == now().strftime('%m-%d') %}
|
||||
{% if state_attr(team,'clock') in ['postponed','Postponed'] %}
|
||||
The {{ state_attr(team,'friendly_name') }} had their game postponed today, and it will be played at a later date.
|
||||
The {{ entity_name(team) }} had their game postponed today, and it will be played at a later date.
|
||||
{% elif (state_attr(team,'team_score') | int) == state_attr(team,'opponent_score') | int %}
|
||||
The {{ state_attr(team,'friendly_name') }} tied in their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
The {{ entity_name(team) }} tied in their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
{% elif state_attr(team,'team_winner') == true %}
|
||||
The {{ state_attr(team,'friendly_name') }} won their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
The {{ entity_name(team) }} won their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
{% elif state_attr(team,'opponent_winner') == true %}
|
||||
The {{ state_attr(team,'friendly_name') }} lost their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }}.
|
||||
The {{ entity_name(team) }} lost their game today against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }}.
|
||||
{% endif %}
|
||||
{% if state_attr(team,'clock') not in ['postponed','Postponed'] and state_attr(team,'team_record') != None %}
|
||||
This brings their record to {{ state_attr(team,'team_record') | replace("-"," and ") }} on the season.
|
||||
{% endif %}
|
||||
{% elif yday == date %}
|
||||
{% if state_attr(team,'clock') in ['postponed','Postponed'] %}
|
||||
The {{ state_attr(team,'friendly_name') }} had their game postponed yesterday, and it will be played at a later date.
|
||||
The {{ entity_name(team) }} had their game postponed yesterday, and it will be played at a later date.
|
||||
{% elif (state_attr(team,'team_score') | int) == state_attr(team,'opponent_score') | int %}
|
||||
The {{ state_attr(team,'friendly_name') }} tied in their game yesterday against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
The {{ entity_name(team) }} tied in their game yesterday against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
{% elif state_attr(team,'team_winner') == true %}
|
||||
The {{ state_attr(team,'friendly_name') }} won their game yesterday against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
The {{ entity_name(team) }} won their game yesterday against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }}.
|
||||
{% elif state_attr(team,'opponent_winner') == true %}
|
||||
The {{ state_attr(team,'friendly_name') }} lost their game yesterday against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }}.
|
||||
The {{ entity_name(team) }} lost their game yesterday against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} by a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }}.
|
||||
{% endif %}
|
||||
{% if state_attr(team,'clock') not in ['postponed','Postponed'] %}
|
||||
This brings their record to {{ state_attr(team,'team_record') | replace("-"," and ") }} on the season.
|
||||
@@ -109,11 +109,11 @@
|
||||
{% endif %}
|
||||
{% elif is_state(team,'IN') %}
|
||||
{% if (state_attr(team,'team_score') | int) == (state_attr(team,'opponent_score') | int) %}
|
||||
The {{ state_attr(team,'friendly_name') }} are currently tied in their game against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} with a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }} {{ sports_clock(team) }}.
|
||||
The {{ entity_name(team) }} are currently tied in their game against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} with a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }} {{ sports_clock(team) }}.
|
||||
{% elif (state_attr(team,'team_score') | int) > (state_attr(team,'opponent_score') | int) %}
|
||||
The {{ state_attr(team,'friendly_name') }} are currently winning their game against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} with a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }} {{ sports_clock(team) }}.
|
||||
The {{ entity_name(team) }} are currently winning their game against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} with a score of {{ state_attr(team,'team_score') }} to {{ state_attr(team,'opponent_score') }} {{ sports_clock(team) }}.
|
||||
{% else %}
|
||||
The {{ state_attr(team,'friendly_name') }} are currently losing their game against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} with a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }} {{ sports_clock(team) }}.
|
||||
The {{ entity_name(team) }} are currently losing their game against {% if state_attr(team,'league') != 'NCAAF'%}the{% endif %} {{ opponent_name }} with a score of {{ state_attr(team,'opponent_score') }} to {{ state_attr(team,'team_score') }} {{ sports_clock(team) }}.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -243,6 +243,10 @@ input_boolean:
|
||||
name: Emma Bedroom Heater Installed
|
||||
icon: mdi:heating-coil
|
||||
|
||||
emma_bedroom_mode_switch:
|
||||
name: Emma Bedroom Mode Switch
|
||||
icon: mdi:swap-horizontal
|
||||
|
||||
input_select:
|
||||
scheduled_climate_mode_master_bedroom_aircon:
|
||||
name: Scheduled Climate Mode - Master Bedroom Aircon
|
||||
@@ -273,6 +277,13 @@ input_select:
|
||||
- White Noise
|
||||
- N/A
|
||||
icon: mdi:home-thermometer
|
||||
emma_bedroom_mode_switch:
|
||||
name: Emma Bedroom Mode Switch
|
||||
options:
|
||||
- To Aircon
|
||||
- To Heater
|
||||
initial: To Aircon
|
||||
icon: mdi:swap-horizontal
|
||||
|
||||
input_number:
|
||||
master_bedroom_daytime_temp:
|
||||
@@ -401,6 +412,13 @@ input_number:
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:thermometer
|
||||
emma_bedroom_auto_mode_threshold:
|
||||
name: Emma Bedroom Auto Mode Threshold
|
||||
min: 40
|
||||
max: 80
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:thermometer
|
||||
kallen_fan_threshold:
|
||||
name: Kallen Fan Threshold
|
||||
min: 40
|
||||
@@ -597,6 +615,27 @@ input_number:
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:thermometer-chevron-down
|
||||
window_weather_minimum:
|
||||
name: Window Weather Minimum
|
||||
min: 40
|
||||
max: 80
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:window-closed
|
||||
window_weather_maximum:
|
||||
name: Window Weather Maximum
|
||||
min: 40
|
||||
max: 80
|
||||
step: 1
|
||||
unit_of_measurement: °F
|
||||
icon: mdi:window-closed
|
||||
|
||||
input_datetime:
|
||||
emma_bedroom_mode_switch:
|
||||
name: Emma Bedroom Mode Switch
|
||||
has_date: false
|
||||
has_time: true
|
||||
icon: mdi:swap-horizontal
|
||||
|
||||
climate:
|
||||
- platform: generic_thermostat
|
||||
|
||||
@@ -742,6 +742,25 @@ template:
|
||||
state: "{{ state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible') }}"
|
||||
device_class: safety
|
||||
icon: "{{ 'mdi:weather-tornado' if this.state == 'on' else 'mdi:close' }}"
|
||||
- name: Window Weather
|
||||
unique_id: 9b119394-cb05-44bb-9c6e-e8d5c882a470
|
||||
state: >
|
||||
{% set minimum_temp = states('input_number.window_weather_minimum') | int %}
|
||||
{% set maximum_temp = states('input_number.window_weather_maximum') | int %}
|
||||
{% set ns = namespace(raining=false) %}
|
||||
{% for entity, dry_state in [
|
||||
('binary_sensor.home_tempest_cloud_binary_sensors_is_raining', 'off'),
|
||||
('sensor.home_tempest_cloud_sensors_precipitation_intensity', 'no_rain'),
|
||||
('sensor.home_tempest_precipitation_type', 'none')
|
||||
] %}
|
||||
{% if states(entity) not in ['unavailable', 'unknown'] %}
|
||||
{% if not is_state(entity, dry_state) %}
|
||||
{% set ns.raining = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% set temp = state_attr('weather.iron_nerd_weather_station','temperature') %}
|
||||
{{ (not ns.raining) and (minimum_temp <= temp <= maximum_temp) }}
|
||||
- sensor:
|
||||
# - name: Total Rain Sensors
|
||||
# unique_id: b7c2e709-8f5c-4263-aa1d-fa8280afcddb
|
||||
|
||||
@@ -31,15 +31,15 @@ input_datetime:
|
||||
input_number:
|
||||
rabbit_feeding_interval:
|
||||
name: Rabbit Feeding Interval
|
||||
min: 0
|
||||
min: 1
|
||||
max: 24
|
||||
step: 1
|
||||
unit_of_measurement: hours
|
||||
icon: mdi:rabbit
|
||||
rabbit_hutch_cleaning_interval:
|
||||
name: Rabbit Hutch Cleaning Interval
|
||||
min: 0
|
||||
max: 3
|
||||
min: 1
|
||||
max: 14
|
||||
step: 1
|
||||
unit_of_measurement: days
|
||||
icon: mdi:rabbit
|
||||
|
||||
@@ -376,7 +376,7 @@ intent_script:
|
||||
speech:
|
||||
text: >
|
||||
{% set location = states(person) %}
|
||||
{% set name = state_attr(person,'friendly_name') %}
|
||||
{% set name = entity_name(person) %}
|
||||
{% if location in ['away','not_home'] %}
|
||||
{{ name }} is currently away from home
|
||||
{% elif location in ['unavailable','unknown'] %}
|
||||
|
||||
@@ -51,79 +51,87 @@ input_datetime:
|
||||
has_date: false
|
||||
has_time: true
|
||||
|
||||
alarm_control_panel:
|
||||
- platform: template
|
||||
panels:
|
||||
nerdhome_alarm_panel:
|
||||
name: Nerd Home Alarm Panel
|
||||
unique_id: d7eb8335-4998-49bf-957e-231aeed35179
|
||||
value_template: "{{ states('alarm_control_panel.stratton_ave_alarm') }}"
|
||||
code_arm_required: false
|
||||
arm_away:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.security_faults
|
||||
state: 'off'
|
||||
then:
|
||||
- service: alarm_control_panel.alarm_arm_away
|
||||
target:
|
||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||
data:
|
||||
code: !secret ring_alarm_code
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
else:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.lockdown_issue
|
||||
arm_home:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.security_faults
|
||||
state: 'off'
|
||||
then:
|
||||
- service: alarm_control_panel.alarm_arm_home
|
||||
target:
|
||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||
data:
|
||||
code: !secret ring_alarm_code
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ silent != 1 and is_state('input_boolean.vacation_mode','off') }}"
|
||||
then:
|
||||
- service: script.status_annc
|
||||
data:
|
||||
who: living_room
|
||||
call_security_armed: 1
|
||||
else:
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.lockdown_issue
|
||||
disarm:
|
||||
- service: alarm_control_panel.alarm_disarm
|
||||
target:
|
||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||
template:
|
||||
- alarm_control_panel:
|
||||
- name: Nerd Home Alarm Panel
|
||||
unique_id: d7eb8335-4998-49bf-957e-231aeed35179
|
||||
code_arm_required: false
|
||||
arm_away:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.security_faults
|
||||
state: 'off'
|
||||
match: all
|
||||
then:
|
||||
- target:
|
||||
entity_id:
|
||||
- alarm_control_panel.stratton_ave_alarm
|
||||
data:
|
||||
code: !secret ring_alarm_code
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.lockdown_issue
|
||||
action: alarm_control_panel.alarm_arm_away
|
||||
- target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
action: input_boolean.turn_off
|
||||
else:
|
||||
- target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
action: input_boolean.turn_on
|
||||
arm_home:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.security_faults
|
||||
state: 'off'
|
||||
match: all
|
||||
then:
|
||||
- target:
|
||||
entity_id:
|
||||
- alarm_control_panel.stratton_ave_alarm
|
||||
data:
|
||||
code: !secret ring_alarm_code
|
||||
action: alarm_control_panel.alarm_arm_home
|
||||
- target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
action: input_boolean.turn_off
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ silent != 1 and is_state('input_boolean.vacation_mode','off') }}"
|
||||
then:
|
||||
- service: script.status_annc
|
||||
data:
|
||||
- data:
|
||||
who: living_room
|
||||
call_security_not_armed: 1
|
||||
|
||||
template:
|
||||
call_security_armed: 1
|
||||
action: script.status_annc
|
||||
else:
|
||||
- target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
action: input_boolean.turn_on
|
||||
disarm:
|
||||
- target:
|
||||
entity_id:
|
||||
- alarm_control_panel.stratton_ave_alarm
|
||||
data:
|
||||
code: !secret ring_alarm_code
|
||||
action: alarm_control_panel.alarm_disarm
|
||||
- target:
|
||||
entity_id:
|
||||
- input_boolean.lockdown_issue
|
||||
action: input_boolean.turn_off
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ silent != 1 and is_state('input_boolean.vacation_mode','off') }}"
|
||||
then:
|
||||
- data:
|
||||
who: living_room
|
||||
call_security_not_armed: 1
|
||||
action: script.status_annc
|
||||
code_format: number
|
||||
default_entity_id: alarm_control_panel.nerdhome_alarm_panel
|
||||
state: "{{ states('alarm_control_panel.stratton_ave_alarm') }}"
|
||||
- binary_sensor:
|
||||
- name: Windows
|
||||
unique_id: 9ff34cd4-c450-45d2-934a-b4a9fd8b93b2
|
||||
@@ -271,7 +279,7 @@ template:
|
||||
{% endfor %}
|
||||
{{ fn.friendly }}
|
||||
icon: >-
|
||||
{% if states('sensor.window_faults') | int > 0 %}
|
||||
{% if this.state | int > 0 %}
|
||||
mdi:window-open
|
||||
{% else %}
|
||||
mdi:window-closed
|
||||
@@ -335,7 +343,7 @@ template:
|
||||
{% endfor %}
|
||||
{{ fn.friendly }}
|
||||
icon: >-
|
||||
{% if states('sensor.door_faults') | int > 0 %}
|
||||
{% if this.state | int > 0 %}
|
||||
mdi:door-open
|
||||
{% else %}
|
||||
mdi:door-closed
|
||||
@@ -365,7 +373,7 @@ template:
|
||||
| list %}
|
||||
{{ window_names }}
|
||||
icon: >-
|
||||
{% if states('sensor.windows_open') | int == 0 %}
|
||||
{% if this.state | int == 0 %}
|
||||
mdi:window-closed
|
||||
{% else %}
|
||||
mdi:window-open
|
||||
@@ -392,7 +400,7 @@ template:
|
||||
| list %}
|
||||
{{ window_names }}
|
||||
icon: >-
|
||||
{% if states('sensor.front_windows_open') | int == 0 %}
|
||||
{% if this.state | int == 0 %}
|
||||
mdi:window-closed
|
||||
{% else %}
|
||||
mdi:window-open
|
||||
@@ -418,7 +426,7 @@ template:
|
||||
| list | count %}
|
||||
{{ windows_open }}
|
||||
icon: >
|
||||
{% if states('sensor.living_room_windows_open') | int == 0 %}
|
||||
{% if this.state | int == 0 %}
|
||||
mdi:window-closed
|
||||
{% else %}
|
||||
mdi:window-open
|
||||
@@ -442,7 +450,7 @@ template:
|
||||
| list %}
|
||||
{{ door_names }}
|
||||
icon: >-
|
||||
{% if states('sensor.doors_open') | int == 0 %}
|
||||
{% if this.state | int == 0 %}
|
||||
mdi:door-closed
|
||||
{% else %}
|
||||
mdi:door-open
|
||||
@@ -476,7 +484,7 @@ template:
|
||||
| list %}
|
||||
{{ interior }}
|
||||
icon: >-
|
||||
{% if states('sensor.interior_doors') | int == 0 %}
|
||||
{% if this.state | int == 0 %}
|
||||
mdi:door-closed
|
||||
{% else %}
|
||||
mdi:door-open
|
||||
@@ -507,7 +515,7 @@ template:
|
||||
{% set doors_open = states('sensor.doors_open') | int %}
|
||||
{{ doors_open + windows_open }}
|
||||
icon: >-
|
||||
{% if states('sensor.air_leaks') | int == 0 %}
|
||||
{% if this.state | int == 0 %}
|
||||
mdi:leak-off
|
||||
{% else %}
|
||||
mdi:leak
|
||||
|
||||
@@ -181,7 +181,7 @@ intent_script:
|
||||
{% set inhibit = "binary_sensor." + team + "_inhibit" %}
|
||||
{% set sensor = "sensor." + team %}
|
||||
{% if is_state(inhibit,'on') %}
|
||||
I do not have any information about the {{ state_attr(team,'friendly_name') }} at this time.
|
||||
I do not have any information about the {{ entity_name(sensor) }} at this time.
|
||||
{% elif states(sensor) in ["NOT_FOUND"] %}
|
||||
They do not appear to have a game scheduled for today.
|
||||
{% else %}
|
||||
|
||||
@@ -58,6 +58,8 @@ ## HACS Components
|
||||
- [WeatherFlow Forecast](https://github.com/briis/weatherflow_forecast)
|
||||
- [NWS SPC Outlook](https://github.com/sedward5/nws_spc_outlook)
|
||||
- [Music Assistant Queue Actions](https://github.com/droans/mass_queue)
|
||||
- [Bubble Card Tools](https://github.com/Clooos/Bubble-Card-Tools)
|
||||
- [Home Assistant Global Health Score](https://github.com/D-N91/home-assistant-global-health-score)
|
||||
|
||||
</details>
|
||||
|
||||
@@ -91,7 +93,7 @@ ## HACS Lovelace Cards
|
||||
- [Weather Card](https://github.com/bramkragten/weather-card)
|
||||
- [Template Entity Row](https://github.com/thomasloven/lovelace-template-entity-row)
|
||||
- [Waze Travel Time](https://github.com/r-renato/ha-card-waze-travel-time)
|
||||
- [Fold Entity Row](https://github.com/thomasloven/lovelace-fold-entity-row)
|
||||
- [Lovelace Expander Card](https://github.com/MelleD/lovelace-expander-card)
|
||||
- [Room Card](https://github.com/marcokreeft87/room-card)
|
||||
- [Simple Thermostat Card](https://github.com/nervetattoo/simple-thermostat)
|
||||
- [Clock Weather Card](https://github.com/pkissling/clock-weather-card)
|
||||
|
||||
Reference in New Issue
Block a user