Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: '1677329873565'
- alias: Vacuum
- description: ''
- trigger:
- - platform: time
- at: '20:37:00'
- condition:
- - condition: template
- value_template: '{% set rooms = [''binary_sensor.kitchen_cleaning'', ''binary_sensor.living_room_cleaning'',
- ''binary_sensor.bedroom_cleaning'', ''binary_sensor.playroom_cleaning'', ''binary_sensor.work_room_cleaning'',
- ''binary_sensor.corridor_cleaning''] %}
- {% set room_ids = expand(rooms) | selectattr(''state'', ''eq'', ''on'') | map(attribute=''attributes.room_id'')
- | list %}
- {% set room_names = expand(rooms) | selectattr(''state'', ''eq'', ''on'') |
- map(attribute=''attributes.name'') | list | count %}
- {{ room_names >= 1 }}'
- action:
Add Comment
Please, Sign In to add comment