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
Automation editor clobbers multiple state conditions #6664
Comments
Wow I think we were writing these at the same time: #6665 |
I was hit by this issue recently. As I'm only looking for a state swap I replaced: - condition: state
entity_id: light.bathroom
state:
- 'on'
- 'off'
for: 2 by - condition: template
value_template: '{{ (now()-states.light.bathroom.last_changed).total_seconds() >= 120 }}' to prevent any breakage when saving automation. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This is still an issue. |
Was just reminded of this issue as I re-saved an automation and the trigger states got globbed into a string instead of a list again. Continues to occur in core 2021.2.2. |
Hi, the same happens for "to: " triggers . the UI converts a trigger
to
and then off course the automation will never trigger. |
Still broken in 2021.6.6 |
Hello, I'm impacted by this as well in 2021.8.6. |
Still broken in 2021.10.6 It is getting a real issue, as i need to start breaking down into OR-conditions... it's messy |
Checklist
The problem
Release 0.112 added multiple state support for conditions in Automations.
This is great, so I have many automations now that trigger if I'm in one of several modes. eg:
However, if I load this automation in the UI, the UI reads it in and displays it as
and if I save any change to any part of this automation in the UI, it clobbers the condtion and becomes:
Expected behavior
Can open and edit automation in UI with multiple states and have it save in the correct format ie:
instead of
Steps to reproduce
Environment
State of relevant entities
n/a
Problem-relevant configuration
see steps to reproduce
Javascript errors shown in your browser console/inspector
n/a
Additional information
The text was updated successfully, but these errors were encountered: