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: - action: input_boolean.turn_off entity_id: input_boolean.trash_out