Skip to content

Commit

Permalink
add room check before selective clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywillans committed Jun 30, 2021
1 parent 2286fe5 commit a18a5ef
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,17 +404,17 @@ input_text:
group:
vacuum_rooms:
entities:
- input_boolean.vacuum_clean_kitchen
- input_boolean.vacuum_clean_entry
- input_boolean.vacuum_clean_hall
- input_boolean.vacuum_clean_living_room
- input_boolean.vacuum_clean_bathroom
- input_boolean.vacuum_clean_bedroom
- input_boolean.vacuum_clean_wardrobe
- input_boolean.vacuum_clean_master_ensuite
- input_boolean.vacuum_clean_master_bedroom
- input_boolean.vacuum_clean_table
- input_boolean.vacuum_clean_zone_fridge
- input_boolean.vacuum_clean_kitchen
- input_boolean.vacuum_clean_entry
- input_boolean.vacuum_clean_hall
- input_boolean.vacuum_clean_living_room
- input_boolean.vacuum_clean_bathroom
- input_boolean.vacuum_clean_bedroom
- input_boolean.vacuum_clean_wardrobe
- input_boolean.vacuum_clean_master_ensuite
- input_boolean.vacuum_clean_master_bedroom
- input_boolean.vacuum_clean_table
- input_boolean.vacuum_clean_zone_fridge

###################################
# Automation
Expand All @@ -425,7 +425,13 @@ automation:
- alias: Vacuum Clean Rooms
trigger:
- platform: event
event_type: initiate_vacuum_clean
event_type: initiate_vacuum_clean
condition:
condition: not
conditions:
- condition: state
entity_id: input_text.vacuum_rooms
state: ''
action:
- service: rest_command.vacuum_clean
data_template:
Expand Down

0 comments on commit a18a5ef

Please sign in to comment.