Updated some Lock automations and added the ThinLG HACS code.

This commit is contained in:
CCOSTAN
2025-01-17 19:45:32 +00:00
parent 1729fa4bc4
commit f7351aca3c
16 changed files with 110 additions and 134 deletions

View File

@@ -75,7 +75,7 @@
{%- endmacro -%}
{%- 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 -%}
{%- macro light_check() -%}
@@ -280,7 +280,7 @@
{{ lightning() }}
{% 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() }}
{% endif %}