93 lines
2.2 KiB
YAML
93 lines
2.2 KiB
YAML
- id: '1548745063240'
|
|
alias: Persianas
|
|
trigger:
|
|
# - event: sunrise
|
|
# offset: 01:00:00
|
|
# platform: sun
|
|
- event: sunset
|
|
offset: 00:15:00
|
|
platform: sun
|
|
condition: []
|
|
action:
|
|
- data:
|
|
entity_id:
|
|
- cover.persina_habitacion_principal
|
|
- cover.persina_habitacion_noha
|
|
- cover.persina_habitacion_mia
|
|
- cover.persina_habitacion_estudio
|
|
- cover.persina_salon_fase_dos
|
|
- cover.persina_salon_piscina
|
|
service: cover.close_cover
|
|
initial_state: 'on'
|
|
- id: '1550093153747'
|
|
alias: TEST - Notificaciones
|
|
trigger:
|
|
- entity_id: binary_sensor.movimiento_habitacion_estudio
|
|
from: 'off'
|
|
platform: state
|
|
to: 'on'
|
|
condition: []
|
|
action:
|
|
- data:
|
|
message: saliendo de casa
|
|
service: notify.telegram_diego
|
|
- id: '1550094029238'
|
|
alias: Notificación a Isabel saliendo de casa al trabajo
|
|
initial_state: 'on'
|
|
trigger:
|
|
- entity_id: binary_sensor.puerta_entrada
|
|
from: 'off'
|
|
platform: state
|
|
to: 'on'
|
|
condition:
|
|
- after: 06:00
|
|
condition: time
|
|
- before: 06:25
|
|
condition: time
|
|
- condition: state
|
|
entity_id: binary_sensor.workday_sensor
|
|
state: 'on'
|
|
action:
|
|
- data:
|
|
message: Diego esta saliendo de casa
|
|
service: notify.telegram_isabel
|
|
- id: '1551289584925'
|
|
alias: Luz del Tendedero Encender
|
|
trigger:
|
|
- entity_id: binary_sensor.puerta_tendedero
|
|
from: 'off'
|
|
platform: state
|
|
to: 'on'
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: sun
|
|
after: sunset
|
|
- condition: sun
|
|
before: sunrise
|
|
action:
|
|
- service: homeassistant.turn_on
|
|
data:
|
|
entity_id:
|
|
- light.luz_tendedero
|
|
data_template:
|
|
brightness_pct: "{% if 7 < now().strftime('%H')|int and now().strftime('%H')|int\
|
|
\ < 23 -%}\n 40\n{%- else -%}\n 80\n{%- endif %}\n"
|
|
initial_state: 'on'
|
|
- id: '1551289639270'
|
|
alias: Luz del Tendedero Apagar
|
|
initial_state: 'on'
|
|
trigger:
|
|
- entity_id: binary_sensor.puerta_tendedero
|
|
from: 'on'
|
|
platform: state
|
|
to: 'off'
|
|
condition:
|
|
- condition: state
|
|
entity_id: light.luz_tendedero
|
|
state: 'on'
|
|
action:
|
|
- data:
|
|
entity_id: light.luz_tendedero
|
|
service: light.turn_off
|