Automations being saved with below value higher than above value causing trigger setup to fail #9937
Closed
3 tasks done
Labels
Bug
Current Bug in UI - Extra Attention
Checklist
Describe the issue you are experiencing
When editing an automation with a device trigger based on numeric state, the automation can be edited in a way that results in a "below" value above an "above" value. This will then successfully save but fail to configure the trigger resulting in the automation not running:
The most common case of this is when only one of the properties is wanted (i.e. trigger when value is above 99). The only workaround at the moment seems to be editing the YAML manually as any change to the input field adds the property.
Describe the behavior you expected
Steps to reproduce the issue
There is also a related issue when editing an automation in that the input for an automation with no "below" value will default the UI to 0. This appears to only be cosmetic though and the property is not added to the YAML until the input field is edited.
What version of Home Assistant Core has the issue?
2021.9.0
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Firefox 91.0.2
Which operating system are you using to run this browser?
Windows 10
State of relevant entities
No response
Problem-relevant frontend configuration
Javascript errors shown in your browser console/inspector
No response
Additional information
Log message:
The text was updated successfully, but these errors were encountered: