Files
fresh-home/automations/things/trash_can/take_trash_out.yaml
T
2024-04-14 14:08:56 -04:00

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