mirror of
https://github.com/GeorgeSG/sarah.git
synced 2025-12-28 20:30:29 +00:00
100 lines
2.2 KiB
YAML
100 lines
2.2 KiB
YAML
- 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
|