529 lines
12 KiB
YAML
529 lines
12 KiB
YAML
- id: 81244453f4c744efb2d22f5fefbf932c
|
|
alias: Notify Mike Webhook
|
|
description: ''
|
|
triggers:
|
|
- trigger: webhook
|
|
allowed_methods:
|
|
- POST
|
|
- PUT
|
|
local_only: false
|
|
webhook_id: secret 81244453f4c744efb2d22f5fefbf932c_webhook
|
|
conditions: []
|
|
actions:
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: '{{ trigger.data.message }}
|
|
|
|
'
|
|
title: '{{ trigger.data.title }}
|
|
|
|
'
|
|
mode: single
|
|
- id: 64f377e6-d7c1-4929-b05c-c767cee716c4
|
|
alias: Toggle Back Porch Lights
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- device_id: 40dd5dc4e4440fc1ab3fa7ff4f3dabce
|
|
domain: zha
|
|
trigger: device
|
|
type: remote_button_short_press
|
|
subtype: remote_button_short_press
|
|
condition: []
|
|
actions:
|
|
- action: light.toggle
|
|
data: {}
|
|
target:
|
|
entity_id: light.back_porch_switch_light
|
|
- id: 8f6b6ef3-2e01-482c-9478-d183f7cb4a8c
|
|
alias: Crawlspace Freeze Warning
|
|
description: Sends a notification when the crawlspace temperature is below 40° F
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.lumi_lumi_weather_temperature
|
|
below: 40.1
|
|
for:
|
|
hours: 1
|
|
minutes: 0
|
|
seconds: 0
|
|
condition: []
|
|
actions:
|
|
- action: notify.notify
|
|
data:
|
|
title: Crawlspace is at risk of freezing
|
|
message: The crawlspace has been below 40° F for at least one hour. Consider
|
|
turning on the heat.
|
|
mode: single
|
|
- id: b2db29d0-214e-4617-9134-380f43466095
|
|
alias: Hourly Weather Forecast
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- trigger: time_pattern
|
|
hours: /1
|
|
conditions: []
|
|
actions:
|
|
- action: weather.get_forecasts
|
|
metadata: {}
|
|
data:
|
|
type: hourly
|
|
response_variable: hourly_weather_forecast
|
|
- id: d31d862238554c9e8d1e753344b90d20
|
|
alias: Start Drip Irrigation Timer
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- switch.drip_faucet_valve
|
|
to: 'on'
|
|
from: 'off'
|
|
conditions: []
|
|
actions:
|
|
- action: timer.start
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: timer.drip_water_on_duration
|
|
- id: 06cffbf6-9992-448a-9b71-4438bc9debcf
|
|
alias: Pause Drip Irrigation Timer
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- switch.drip_faucet_valve
|
|
to: 'off'
|
|
from: 'on'
|
|
conditions: []
|
|
actions:
|
|
- action: timer.pause
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: timer.drip_water_on_duration
|
|
- id: b94763b0-bfdc-4ca0-95a1-baf6090ba148
|
|
alias: Turn Off Drip Irrigation after timer or when raining
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- trigger: event
|
|
event_type: timer.finished
|
|
event_data:
|
|
entity_id: timer.drip_water_on_duration
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.forecast_home_next_hour
|
|
attribute: forecast.precipitation
|
|
above: 1
|
|
conditions: []
|
|
actions:
|
|
- action: switch.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: switch.drip_faucet_valve
|
|
- id: a2cf06e7-3e75-4144-92d1-e1e5483045d7
|
|
alias: Find Tania's Phone
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- device_id: ad652b6bc2b9ae70e151c39822fb53c7
|
|
domain: zha
|
|
trigger: device
|
|
type: remote_button_short_press
|
|
subtype: remote_button_short_press
|
|
condition: []
|
|
actions:
|
|
- action: notify.notify_tania
|
|
data:
|
|
message: command_ringer_mode
|
|
data:
|
|
command: normal
|
|
- action: notify.notify_tania
|
|
data:
|
|
message: command_volume_level
|
|
data:
|
|
media_stream: alarm_stream
|
|
command: 100
|
|
- action: notify.notify_tania
|
|
data:
|
|
message: Home Assistant is finding your phone
|
|
data:
|
|
ttl: 0
|
|
priority: high
|
|
channel: alarm_stream
|
|
- id: f1127b36-af59-42d2-8296-b7be3d8eeb11
|
|
alias: Find Mike's Phone
|
|
description: ''
|
|
mode: single
|
|
triggers:
|
|
- device_id: ad652b6bc2b9ae70e151c39822fb53c7
|
|
domain: zha
|
|
trigger: device
|
|
type: remote_button_double_press
|
|
subtype: remote_button_double_press
|
|
condition: []
|
|
actions:
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: command_ringer_mode
|
|
data:
|
|
command: normal
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: command_volume_level
|
|
data:
|
|
media_stream: alarm_stream
|
|
command: 100
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: Home Assistant is finding your phone
|
|
data:
|
|
ttl: 0
|
|
priority: high
|
|
channel: alarm_stream
|
|
- id: 6638d5e86ed5407aa50121a623b2f588
|
|
alias: Renew Let's Encrypt Certificate
|
|
description: Renews the SSL certificate when the cert validity reaches 30 days
|
|
mode: single
|
|
triggers:
|
|
- trigger: numeric_state
|
|
entity_id:
|
|
- sensor.home_assistant_certificate_validity_in_days
|
|
below: 30
|
|
conditions: []
|
|
actions:
|
|
- action: hassio.addon_start
|
|
metadata: {}
|
|
data:
|
|
addon: core_letsencrypt
|
|
- wait_template: '{{ int(states(''sensor.home_assistant_certificate_validity_in_days''))
|
|
> 30 }}'
|
|
continue_on_timeout: false
|
|
timeout: '60'
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: Home Assistant SSL Certificate has Renewed. Restarting...
|
|
data:
|
|
ttl: 0
|
|
priority: high
|
|
channel: alarm_stream
|
|
- delay:
|
|
seconds: 30
|
|
- action: homeassistant.restart
|
|
metadata: {}
|
|
data: {}
|
|
- id: 0f2bd0b2890c4ecd9596283db331e2e1
|
|
alias: HVAC Filter Replacement Tag
|
|
description: Sets the date for HVAC Filter
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: 0f2bd0b2-890c-4ecd-9596-283db331e2e1
|
|
condition: []
|
|
actions:
|
|
- action: input_datetime.set_datetime
|
|
target:
|
|
entity_id: input_datetime.hvac_air_filter
|
|
data:
|
|
date: '{{ now().strftime(''%Y-%m-%d'') }}'
|
|
mode: single
|
|
- id: 984ada78ac4c4c728b560516e3e534ec
|
|
alias: Refrigerator Water Filter Replacement Tag
|
|
description: Sets the date for Refrigerator Water Filter
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: 984ada78-ac4c-4c72-8b56-0516e3e534ec
|
|
condition: []
|
|
actions:
|
|
- action: input_datetime.set_datetime
|
|
target:
|
|
entity_id: input_datetime.refrigerator_water_filter
|
|
data:
|
|
date: '{{ now().strftime(''%Y-%m-%d'') }}'
|
|
mode: single
|
|
- id: 04fde7e3a8964411b488e56118254222
|
|
alias: Main Bathroom Shower Filter Replacement Tag
|
|
description: Sets the date for Main Bathroom Shower Filter
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: 04fde7e3-a896-4411-b488-e56118254222
|
|
condition: []
|
|
actions:
|
|
- action: input_datetime.set_datetime
|
|
target:
|
|
entity_id: input_datetime.main_bathroom_shower_filter
|
|
data:
|
|
date: '{{ now().strftime(''%Y-%m-%d'') }}'
|
|
mode: single
|
|
- id: '1671740402182'
|
|
alias: Tag Recycling Can "Churro" is scanned
|
|
description: Sets boolean to True
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: fdd4274c-e8f5-46eb-9f37-c8a967f68ba5
|
|
condition: []
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.recycling_can_churro
|
|
mode: single
|
|
- id: 99961b2c-9545-43f3-ae29-7dc30b23cddf
|
|
alias: Tag Recycling Can "Brownie" is scanned
|
|
description: Sets boolean to True
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: 90726f9d-3eaf-4b61-978f-0f03210999c3
|
|
condition: []
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.recycling_can_brownie
|
|
mode: single
|
|
- id: '1671741672000'
|
|
alias: Tag Trash Can is scanned
|
|
description: Sets boolean to True
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: ef571650-a610-4931-8dbb-95b3b21da1c5
|
|
condition: []
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.trash_can
|
|
mode: single
|
|
- id: '1671741335261'
|
|
alias: Return Trash and Recycling to Off
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: '20:00:00'
|
|
condition:
|
|
- condition: time
|
|
after: 00:00
|
|
before: '23:00'
|
|
weekday:
|
|
- fri
|
|
actions:
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.recycling_can_churro
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.trash_can
|
|
mode: single
|
|
- id: '1671749036516'
|
|
alias: Trash notification
|
|
description: ''
|
|
trigger:
|
|
- trigger: time_pattern
|
|
hours: '*'
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: time
|
|
after: '18:00'
|
|
before: '21:00'
|
|
weekday:
|
|
- thu
|
|
- condition: time
|
|
after: 06:00
|
|
before: '10:00'
|
|
weekday:
|
|
- fri
|
|
- condition: or
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.garbage_refuse_collection
|
|
attribute: days
|
|
below: 1.1
|
|
- condition: state
|
|
entity_id: input_boolean.trash_can
|
|
state: 'off'
|
|
- condition: and
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.recycling_collection
|
|
attribute: days
|
|
below: 1.1
|
|
- condition: state
|
|
entity_id: input_boolean.recycling_can_brownie
|
|
state: 'off'
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: person.mike
|
|
state: home
|
|
- condition: state
|
|
entity_id: person.tania
|
|
state: home
|
|
actions:
|
|
- action: notify.notify
|
|
data:
|
|
message: Trash needs to go out.
|
|
title: Trash
|
|
- condition: numeric_state
|
|
entity_id: sensor.recycling_collection
|
|
attribute: days
|
|
below: 1.1
|
|
- action: notify.notify
|
|
data:
|
|
message: Recycling need to go out
|
|
title: Recycling
|
|
mode: single
|
|
- id: de3c52cccd8d4e8d8798f438a1d71ad1
|
|
alias: Vacuum filter tag is scanned
|
|
description: Sets boolean to True
|
|
triggers:
|
|
- trigger: tag
|
|
tag_id: 4a64b579-1205-4533-a439-e1a5403f2931
|
|
condition: []
|
|
actions:
|
|
- action: input_datetime.set_datetime
|
|
target:
|
|
entity_id: input_datetime.vacuum_filter
|
|
data:
|
|
date: '{{ now().strftime(''%Y-%m-%d'') }}'
|
|
mode: single
|
|
- id: '1688935879376'
|
|
alias: Arrival
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- person.tania
|
|
to: home
|
|
condition:
|
|
- condition: state
|
|
entity_id: person.mike
|
|
state: home
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
- condition: state
|
|
entity_id: input_boolean.alert_mike
|
|
state: 'on'
|
|
actions:
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: command_ringer_mode
|
|
data:
|
|
command: normal
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: command_volume_level
|
|
data:
|
|
media_stream: notification_stream
|
|
command: 100
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: Tania is home. Turning alerts off.
|
|
data:
|
|
ttl: 0
|
|
priority: high
|
|
channel: notification_stream
|
|
- action: input_boolean.turn_off
|
|
target:
|
|
entity_id: input_boolean.alert_mike
|
|
mode: single
|
|
- id: c4b0b435-1f14-41ac-9e42-c5744802041f
|
|
alias: Five-Minutes Out
|
|
description: Tania is 5 minutes away
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- person.tania
|
|
from: not_home
|
|
to: Five Minute Radius
|
|
condition:
|
|
- condition: state
|
|
entity_id: person.mike
|
|
state: home
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
- condition: state
|
|
entity_id: input_boolean.alert_mike
|
|
state: 'on'
|
|
actions:
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: Tania is 5 Minutes Out.
|
|
data:
|
|
ttl: 0
|
|
priority: normal
|
|
channel: notification_stream
|
|
mode: single
|
|
- id: 86517352-b628-4223-87b4-6a8e53e75ce9
|
|
alias: Tania is AWAY
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- person.tania
|
|
to: away
|
|
condition:
|
|
- condition: state
|
|
entity_id: person.mike
|
|
state: home
|
|
for:
|
|
hours: 0
|
|
minutes: 30
|
|
seconds: 0
|
|
actions:
|
|
- action: input_boolean.turn_on
|
|
target:
|
|
entity_id: input_boolean.alert_mike
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: Tania is now away. Alerts turned on.
|
|
mode: single
|
|
- id: da3ea5ad1be7408e987c1b7a2ecbdd14
|
|
alias: Tania is Near
|
|
description: ''
|
|
triggers:
|
|
trigger: numeric_state
|
|
entity_id:
|
|
- sensor.distance_between_mike_and_tania_in_feet
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
below: 500
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.alert_mike
|
|
state: 'on'
|
|
actions:
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: command_ringer_mode
|
|
data:
|
|
command: normal
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: command_volume_level
|
|
data:
|
|
media_stream: notification_stream
|
|
command: 100
|
|
- action: notify.notify_mike
|
|
data:
|
|
message: Tania is near.
|
|
data:
|
|
ttl: 0
|
|
priority: high
|
|
channel: notification_stream
|
|
mode: single
|