blueprint:
  name: Cover - Immediate conditions
  description: 'Version: 1.0.1'
  domain: automation
  input:
    entities_condition:
      name: Immediate conditions
      description: Select all entities that match your immediate conditions
      selector:
        entity:
          multiple: true
    timer:
      name: Timer
      description: Timer used for remaining suspension time
      selector:
        entity:
          domain: timer
          multiple: false
    position:
      name: Desired roller shutter position
      selector:
        entity:
          domain: input_number
          multiple: false
    automation:
      name: Roller shutter positioning
      description: Automation containing roller shutter positioning rules
      selector:
        entity:
          domain: automation
          multiple: false
  source_url: https://github.com/FabienYt/home-assistant/blob/main/blueprints/automation/FabienYt/cover_immediate.yaml
mode: restart
max_exceeded: silent
trigger:
- platform: state
  entity_id: !input entities_condition
action:
- service: input_number.set_value
  target:
    entity_id: !input position
  data:
    value: -1
- service: timer.cancel
  target:
    entity_id: !input timer
- service: automation.trigger
  data:
    skip_condition: true
  target:
    entity_id: !input automation
