Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabled: false doesn't affect a parallel: sequence #116644

Open
CodeOptimist opened this issue May 2, 2024 · 1 comment
Open

enabled: false doesn't affect a parallel: sequence #116644

CodeOptimist opened this issue May 2, 2024 · 1 comment

Comments

@CodeOptimist
Copy link

The problem

The second sequence in the example, with enabled: false, always runs. It has no effect.
Non-important info: I used the UI to enable/disable, which seemed normal.

First issue report, hoping I don't waste anyone's time with a mistake on my part.

What version of Home Assistant Core has the issue?

core-2024.5.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

alias: Compost fans
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.lid_contact
    to: "on"
condition: []
action:
  - parallel:
      - sequence:
          - condition: state
            entity_id: switch.compost_intake_fan
            state: "on"
          - service: switch.turn_off
            target:
              entity_id: switch.compost_intake_fan
          - wait_for_trigger:
              - platform: state
                entity_id: binary_sensor.lid_contact
                to: "off"
          - service: switch.turn_on
            target:
              entity_id: switch.compost_intake_fan
      - sequence:
          - condition: state
            entity_id: switch.compost_exhaust_fan
            state: "off"
          - service: switch.turn_on
            target:
              entity_id: switch.compost_exhaust_fan
          - wait_for_trigger:
              - platform: state
                entity_id: binary_sensor.lid_contact
                to: "off"
          - service: switch.turn_off
            target:
              entity_id: switch.compost_exhaust_fan
        enabled: false
mode: single

Anything in the logs that might be useful for us?

Sorry, no.

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented May 3, 2024

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (automation) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of automation can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign automation Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


automation documentation
automation source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants