Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions[bot] 885dc0a65c Update HA version badge to 2025.1.2 2025-01-17 19:45:54 +00:00
CCOSTAN f7351aca3c Updated some Lock automations and added the ThinLG HACS code. 2025-01-17 19:45:32 +00:00
17 changed files with 114 additions and 138 deletions

View File

@ -10,6 +10,7 @@
# Moved Authentication to UI Integrations # Moved Authentication to UI Integrations
# Added to the LOCK group # Added to the LOCK group
# Added a check lock routine to the Briefing.yaml - Will check locks whenever there is a speech event. # Added a check lock routine to the Briefing.yaml - Will check locks whenever there is a speech event.
# Door will autoLock in 20 minutes. this is set up in the August App.
###################################################################### ######################################################################
## Door Lock Status Announcements - Only during normal hours. ## Door Lock Status Announcements - Only during normal hours.
@ -31,20 +32,6 @@ automation:
data: data:
DoorLocked: "The {{ trigger.to_state.name }} is now {{ trigger.to_state.state }}." DoorLocked: "The {{ trigger.to_state.name }} is now {{ trigger.to_state.state }}."
- alias: 'Door UnLocked Announcement'
id: 5922becc-3249-40ea-bdb4-db97cc40c413
trigger:
- platform: state
entity_id:
- lock.front_door
to: 'unlocked'
for: '00:10:00'
action:
- service: script.speech_engine
data:
DoorUnLocked: "The {{ trigger.to_state.name }} has been {{ trigger.to_state.state }} for 10 minutes. I will lock it in 10 minutes if it is still unlocked."
- alias: 'August Battery Monitor' - alias: 'August Battery Monitor'
id: 82d6d09b-fba1-4320-8048-067043b490fc id: 82d6d09b-fba1-4320-8048-067043b490fc
mode: single mode: single
@ -59,3 +46,25 @@ automation:
title: 'Low Battery' title: 'Low Battery'
value1: 'The August Door lock is at {{ states("sensor.front_door_battery") }}% ' value1: 'The August Door lock is at {{ states("sensor.front_door_battery") }}% '
group: 'Battery_Alert' group: 'Battery_Alert'
- alias: 'FrontDoor Bell Camera on Front Door Lock'
id: Doorbell_camera_front_door
mode: single
trigger:
- platform: state
entity_id: lock.front_door
to: 'unlocked'
action:
- service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_id: 'show front doorbell camera'
media_content_type: custom
- delay: '00:20:00'
- service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_id: 'hide front doorbell camera'
media_content_type: custom

View File

@ -2,6 +2,7 @@
# @CCOSTAN # @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Support for Blink Cameras (https://amzn.to/3lOYTCv) # Support for Blink Cameras (https://amzn.to/3lOYTCv)
# Added ThinLg HACS integration for Fridge sensors - https://github.com/ollo69/ha-smartthinq-sensors
#------------------------------------------- #-------------------------------------------
############################################################################## ##############################################################################
@ -17,20 +18,56 @@ automation:
above: 60 above: 60
for: for:
minutes: 20 minutes: 20
- platform: numeric_state
entity_id: sensor.refrigerator_freezer_temp
above: 5
for:
minutes: 10
- platform: numeric_state
entity_id: sensor.refrigerator_fridge_temp
above: 50
for:
minutes: 10
- platform: state
entity_id: binary_sensor.refrigerator_door_open
to: 'on'
for:
minutes: 10
- platform: event - platform: event
event_type: event_fridge_still_hot_loop event_type: event_fridge_still_hot_loop
condition: condition:
condition: or
conditions:
- condition: numeric_state - condition: numeric_state
entity_id: sensor.blink_blink1_temperature entity_id: sensor.blink_blink1_temperature
above: 60 above: 60
- condition: numeric_state
entity_id: sensor.refrigerator_freezer_temp
above: 5
- condition: numeric_state
entity_id: sensor.refrigerator_fridge_temp
above: 50
- condition: state
entity_id: binary_sensor.refrigerator_door_open
state: 'on'
action: action:
- service: script.notify_engine - service: script.notify_engine
data: data:
title: 'Check Fridge' title: 'Check Fridge'
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes." value1: >
{% if trigger.platform == 'numeric_state' %}
The Blink camera temperature sensor has detected {{ states('sensor.blink_blink1_temperature') }} degrees for over 20 minutes.
{% elif trigger.platform == 'binary_sensor' and trigger.entity_id == 'sensor.refrigerator_freezer_temp' %}
The freezer temperature has been above -1 degrees for over 10 minutes.
{% elif trigger.platform == 'binary_sensor' and trigger.entity_id == 'sensor.refrigerator_fridge_temp' %}
The fridge temperature has been above 50 degrees for over 10 minutes.
{% elif trigger.platform == 'binary_sensor' and trigger.entity_id == 'binary_sensor.refrigerator_door_open' %}
The fridge door has been open for over 10 minutes.
{% else %}
The fridge is still hot after the previous alert. The freezer temperature is {{ states('sensor.refrigerator_freezer_temp') }} degrees and the fridge temperature is {{ states('sensor.refrigerator_fridge_temp') }} degrees. {% if is_state('binary_sensor.refrigerator_door_open', 'on') %}The fridge door is currently open.{% endif %}
{% endif %}
who: 'family' who: 'family'
group: 'information' group: 'information'
@ -38,7 +75,7 @@ automation:
- service: script.speech_engine - service: script.speech_engine
data: data:
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes." value1: "Please check the fridge. The Blink camera in the fridge temperature is {{ states('sensor.blink_blink1_temperature') }} degrees, the freezer temperature is {{ states('sensor.refrigerator_freezer_temp') }} degrees, and the fridge temperature is {{ states('sensor.refrigerator_fridge_temp') }} degrees for over 20 minutes. {% if is_state('binary_sensor.refrigerator_door_open', 'on') %}The fridge door is currently open.{% endif %}"
no_fridge: 1 no_fridge: 1
- delay: 00:30:00 - delay: 00:30:00

View File

@ -79,24 +79,3 @@ automation:
- service: script.garage_lights_off - service: script.garage_lights_off
- alias: 'FrontDoor Bell Camera on Front Door Lock'
id: Doorbell_camera_front_door
mode: single
trigger:
- platform: state
entity_id: lock.front_door_lock
to: 'unlocked'
action:
- service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_id: 'show front doorbell camera'
media_content_type: custom
- delay: '00:20:00'
- service: media_player.play_media
target:
entity_id: media_player.kitchen
data:
media_content_id: 'hide front doorbell camera'
media_content_type: custom

View File

@ -320,4 +320,4 @@ globals:
- id: swish_gbl - id: swish_gbl
type: int type: int
restore_value: no restore_value: no
initial_value: '0 initial_value: '0'

View File

@ -75,7 +75,7 @@
{%- endmacro -%} {%- endmacro -%}
{%- macro fridge() -%} {%- macro fridge() -%}
The internal temperature of the refrigerator is currently {{ states('sensor.blink_blink1_temperature') }} degrees. The internal temperature of the refrigerator is currently {{ states('sensor.blink_blink1_temperature') }} degrees. The freezer temperature is {{ states('sensor.refrigerator_freezer_temp') }} degrees and the fridge temperature is {{ states('sensor.refrigerator_fridge_temp') }} degrees. {% if is_state('binary_sensor.refrigerator_door_open', 'on') %}The fridge door is currently open.{% endif %}
{%- endmacro -%} {%- endmacro -%}
{%- macro light_check() -%} {%- macro light_check() -%}
@ -280,7 +280,7 @@
{{ lightning() }} {{ lightning() }}
{% endif %} {% endif %}
{% if (states('sensor.blink_blink1_temperature')|int(0)) > 55 and no_fridge != 1 %} {% if (states('sensor.blink_blink1_temperature')|int(0) > 55 or states('sensor.refrigerator_freezer_temp')|float > 5 or states('sensor.refrigerator_fridge_temp')|float > 50 or is_state('binary_sensor.refrigerator_door_open', 'on')) and no_fridge != 1 %}
{{ fridge() }} {{ fridge() }}
{% endif %} {% endif %}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import"./card-f11ffdcb.js"; import"./card-f9848764.js";

View File

@ -1,13 +1,13 @@
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.1.2"> <svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.1.2">
<title>2025.1.2</title> <title>2025.1.2</title>
<linearGradient id="CLrER" x2="0" y2="100%"> <linearGradient id="iWQVv" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/> <stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/> <stop offset="1" stop-opacity=".1"/>
</linearGradient> </linearGradient>
<mask id="vCYjo"><rect width="615" height="200" rx="30" fill="#FFF"/></mask> <mask id="tzdvp"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#vCYjo)"> <g mask="url(#tzdvp)">
<rect width="615" height="200" fill="#08C" x="0"/> <rect width="615" height="200" fill="#08C" x="0"/>
<rect width="615" height="200" fill="url(#CLrER)"/> <rect width="615" height="200" fill="url(#iWQVv)"/>
</g> </g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110"> <g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.1.2</text> <text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.1.2</text>

Before

Width:  |  Height:  |  Size: 811 B

After

Width:  |  Height:  |  Size: 811 B