Skip to content

Commit

Permalink
Improve entity selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Dec 15, 2024
1 parent a58f54b commit a193d4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/covers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,19 @@ script:
required: true
selector:
entity:
domain: cover
filter:
domain: cover
window_entity:
name: Door/window entity
description: This should be closed (off) to make the cover close.
required: true
selector:
entity:
domain: binary_sensor
filter:
- domain: binary_sensor
device_class: door
- domain: binary_sensor
device_class: window
wait_minutes:
name: Wait period
description: In case the window entity is open (true) at the moment of trigger, the cover will still be closed when the window is closed within this wait period.
Expand Down
4 changes: 4 additions & 0 deletions scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ everything_off:
description: entities to exclude
selector:
entity:
filter:
- domain: fan
- domain: light
- domain: media_player
multiple: true
variables:
exclude_ids: >
Expand Down

0 comments on commit a193d4e

Please sign in to comment.