183 lines
4.1 KiB
YAML
183 lines
4.1 KiB
YAML
- alias: DryingMachine
|
|
description: ''
|
|
triggers:
|
|
- type: power
|
|
device_id: e8402b89cc894a3be0a84c2a905fc101
|
|
entity_id: 13febcca1216ffc189673489017dbd7f
|
|
domain: sensor
|
|
trigger: device
|
|
above: 100
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 10
|
|
id: Start
|
|
- type: power
|
|
device_id: e8402b89cc894a3be0a84c2a905fc101
|
|
entity_id: 13febcca1216ffc189673489017dbd7f
|
|
domain: sensor
|
|
trigger: device
|
|
below: 10
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
id: Stop
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: Start
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.dryingmachine
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- Stop
|
|
- condition: state
|
|
entity_id: input_boolean.dryingmachine
|
|
state: 'on'
|
|
sequence:
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.dryingmachine
|
|
mode: single
|
|
max_exceeded: silent
|
|
- alias: WashingMachine
|
|
description: ''
|
|
triggers:
|
|
- type: power
|
|
device_id: 6d71414c602802c31ecb40ed135cab0b
|
|
entity_id: sensor.washing_machine_plug_power
|
|
domain: sensor
|
|
trigger: device
|
|
above: 6
|
|
for:
|
|
hours: 0
|
|
minutes: 0
|
|
seconds: 30
|
|
id: Start
|
|
- type: power
|
|
device_id: 6d71414c602802c31ecb40ed135cab0b
|
|
entity_id: sensor.washing_machine_plug_power
|
|
domain: sensor
|
|
trigger: device
|
|
below: 5
|
|
for:
|
|
hours: 0
|
|
minutes: 3
|
|
seconds: 0
|
|
id: Stop
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: Start
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.washingmachine
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- Stop
|
|
- condition: state
|
|
entity_id: input_boolean.washingmachine
|
|
state: 'on'
|
|
sequence:
|
|
- action: input_boolean.turn_off
|
|
metadata: {}
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.washingmachine
|
|
mode: single
|
|
max_exceeded: silent
|
|
- alias: weather_card_weekly_hourly
|
|
description: ''
|
|
triggers:
|
|
- entity_id:
|
|
- input_boolean.weather_card_weekly
|
|
to: 'on'
|
|
id: weekly
|
|
trigger: state
|
|
- entity_id:
|
|
- input_boolean.weather_card_hourly
|
|
to: 'on'
|
|
id: hourly
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- weekly
|
|
sequence:
|
|
- data: {}
|
|
target:
|
|
entity_id:
|
|
- input_boolean.weather_card_hourly
|
|
action: input_boolean.turn_off
|
|
- conditions:
|
|
- condition: trigger
|
|
id:
|
|
- hourly
|
|
sequence:
|
|
- data: {}
|
|
target:
|
|
entity_id:
|
|
- input_boolean.weather_card_weekly
|
|
action: input_boolean.turn_off
|
|
mode: single
|
|
- alias: PrinterLowToner
|
|
description: Toner under 30% in Brother printer
|
|
triggers:
|
|
- entity_id: sensor.brother_dcp_l2622dw_bk
|
|
below: 30
|
|
trigger: numeric_state
|
|
actions:
|
|
- data:
|
|
message: '{{ state_attr(''sensor.brother_dcp_l2622dw'', ''info'') }} Toner is
|
|
at {{ trigger.to_state.state }} %'
|
|
title: Printer Toner is low
|
|
action: notify.mobile_app_sm_f956b
|
|
mode: single
|
|
- alias: UpdateImageHelpers
|
|
description: ''
|
|
triggers:
|
|
- trigger: time_pattern
|
|
hours: /6
|
|
actions:
|
|
- action: pyscript.update_image_helpers
|
|
metadata: {}
|
|
data: {}
|
|
- action: downloader.download_file
|
|
metadata: {}
|
|
data:
|
|
overwrite: true
|
|
filename: jameswebb.jpg
|
|
url: '{{ states(''input_text.downloadimageurl'') }}'
|
|
- choose:
|
|
- conditions:
|
|
- condition: template
|
|
value_template: '{{ states(''input_text.articleurl'') != ''missing'' }}'
|
|
sequence:
|
|
- action: downloader.download_file
|
|
metadata: {}
|
|
data:
|
|
overwrite: true
|
|
subdir: articles
|
|
filename: article_nasa.html
|
|
url: '{{ states(''input_text.articleurl'') }}'
|
|
mode: single
|