-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
29 lines (28 loc) · 1.07 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Configuración de sensores de movimiento que
son usados para detectar si hay movimiento en
las zonas de interés a través de cámaras de seguridad.
template:
- binary_sensor:
# Sensor 1: Cruce Línea Termal Puyehue
- name: "Cruce Línea Termal Puyehue"
unique_id: "cruce_linea_termal_puyehue"
device_class: motion
state: "{{ is_state('binary_sensor.cruce_linea_termal_puyehue', 'on') }}"
icon: >-
{% if is_state('binary_sensor.cruce_linea_termal_puyehue', 'on') %}
mdi:motion-sensor
{% else %}
mdi:motion-sensor-off
{% endif %}
# Sensor 2: Cruce Región Termal Puyehue
- name: "Cruce Región Termal Puyehue"
unique_id: "cruce_region_termal_puyehue"
device_class: motion
state: "{{ is_state('binary_sensor.cruce_region_termal_puyehue', 'on') }}"
icon: >-
{% if is_state('binary_sensor.cruce_region_termal_puyehue', 'on') %}
mdi:motion-sensor
{% else %}
mdi:motion-sensor-off
{% endif %}