Files
sarah/config/automations.yaml
2024-05-24 23:27:21 +03:00

100 lines
2.2 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- id: '1699305396452'
alias: Terrarium · Climate alert
description: ''
trigger:
- platform: template
value_template: '{{ states(''sensor.terrarium_weather_temperature'')|float > 29
or states(''sensor.terrarium_weather_temperature'')|float < 22 }}
'
for:
hours: 0
minutes: 5
seconds: 0
id: temperature
- platform: template
value_template: '{{ states(''sensor.terrarium_weather_humidity'')|float > 87 or
states(''sensor.terrarium_weather_humidity'')|float < 60 }}
'
for:
hours: 0
minutes: 5
seconds: 0
id: humidity
condition: []
action:
- service: notify.mobile_app_mayas_iphone
data:
title: Terrarium · {{ trigger.id }} alert
message: '{{ trigger.id }} has been out of bounds for 5 mins!'
data:
url: /lovelace/terrarium
mode: single
- id: '1699306268852'
alias: Printer · Toner warning
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.printer_black_toner_remaining
below: 30
condition: []
action:
- service: notify.all_phones
data:
title: 'Printer · Low toner '
message: The printer's toner is below 30%.
mode: single
- id: '1699306535213'
alias: Printer · Drum warning
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.printer_drum_remaining_life
below: 30
condition: []
action:
- service: notify.all_phones
data:
title: Printer · Needs new drum
message: The printer's drum lifespan is below 30%.
mode: single
- id: '1699446647329'
alias: Bathroom · Turn off fan
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.bathroom_motion_occupancy
to: 'off'
for:
hours: 0
minutes: 15
seconds: 0
condition: []
action:
- service: fan.turn_off
data: {}
target:
entity_id: fan.bathroom
mode: single
- id: '1699735427094'
alias: Front door · turn on lights
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.front_door_contact
to: 'on'
condition: []
action:
- service: light.turn_on
data: {}
target:
entity_id:
- light.hallway_main
- light.hallway_entrance
mode: single