mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
37 lines
778 B
YAML
37 lines
778 B
YAML
alias: Take Trash out
|
|
id: automation_take_trash_out
|
|
trigger:
|
|
- platform: calendar
|
|
id: trash-day-start
|
|
event: start
|
|
entity_id: calendar.trash_schedule
|
|
offset: -18:00:00
|
|
|
|
- platform: calendar
|
|
id: trash-day-end
|
|
event: end
|
|
entity_id: calendar.trash_schedule
|
|
offset: 12:00:00
|
|
|
|
# condition:
|
|
# - condition: state
|
|
# entity_id: input_boolean.trash_out
|
|
# state: 'off'
|
|
# - condition: or
|
|
# conditions:
|
|
# - condition: state
|
|
# entity_id: sensor.general_waste
|
|
# state: 'tomorrow'
|
|
# - condition: state
|
|
# entity_id: sensor.general_waste
|
|
# state: 'today'
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: trash-day-end
|
|
sequence:
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.trash_out
|