Skip to content

Commit

Permalink
Added new door sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
hokus15 committed Jan 12, 2024
1 parent 7405aa0 commit 67bda27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ presence_leave_home:
{%- if is_state("binary_sensor.porche_sensor_puerta", "on") %}{% set incidence = true %}Puerta de la cocina abierta. {% endif %}
{%- if is_state("binary_sensor.porche_sensor_persiana", "on") %}{% set incidence = true %}Persiana de la cocina abierta. {% endif %}
{%- if is_state("binary_sensor.coladuria_sensor_puerta", "on") %}{% set incidence = true %}Puerta de la coladuría abierta. {% endif %}
{%- if is_state("binary_sensor.banyo_suite_sensor_ventana", "on") %}{% set incidence = true %}Ventana del baño de la suite abierta. {% endif %}
{%- if is_state("switch.entrance_hall_lamp_switch", "on") %}{% set incidence = true %}Lámpara del recibidor encendida. {% endif %}
{%- if is_state("switch.escalera_switch", "on") %}{% set incidence = true %}Luz de la escalera encendida. {% endif %}
{%- if is_state("switch.comedor_switch", "on") %}{% set incidence = true %}Luz del comedor encendida. {% endif %}
{%- if is_state("switch.salon_switch", "on") %}{% set incidence = true %}Luz del salón encendida. {% endif %}
{%- if is_state("switch.suite_switch", "on") %}{% set incidence = true %}Luz de la suite encendida. {% endif %}
{%- if incidence == false %}¡Todo correcto!, podéis ir en paz. {% endif %}

0 comments on commit 67bda27

Please sign in to comment.