Closed pascallj closed 2 years ago
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Nope the automation editor still screws these kinds of automations up so if saved using the editor afterwards, the automations don't work anymore.
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
We will probably remove attribute support from the UI editor
Why if I may ask? Is there a better alternative?
This was one of the most useful changes since a long time. Almost every automation I have uses attributes in one way or another. Implementing this in the UI editor made it a lot more user friendly.
Because it is an advanced option, and making a good working UI for it is hard.
The alternative would be to show it as an YAML field.
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The bug is still there and attribute support is still present. If attribute support is going to be removed, maybe it's better to label this and related issues as 'wontfix' and be done with it.
This should still be solved
How is this already solved? I have the latest hass and the issue is still present..
version | core-2021.7.4 |
---|---|
installation_type | Home Assistant Container |
dev | false |
hassio | false |
docker | true |
virtualenv | false |
python_version | 3.9.5 |
os_name | Linux |
os_version | 5.11.0-25-generic |
arch | x86_64 |
timezone | America/Los_Angeles |
It's not. This issue still open.
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Hello bot, you're not you when you're hungry, here have some activity :chocolate_bar:
Fixed by home-assistant/frontend#10811
The 'number case' for above and below seems to be really solved, as in it now even works when the number is enclosed in single quotes. I don't think that is solved by #10811 though, as far as I can see.
However the from and to 'state case' is bypassed. It only solves the fact that the automation editor screws up the automation every time you want to edit it because that block is 'not supported'. I really appreciate this is bypassed now.
However it is still counter intuitive that if you want to make an automation trigger on the 'rising' attribute of the Sun entity, that if you just enter true or false in the editor, it doesn't work. Of course there is the Sun trigger type for this specific case, but for any other boolean attribute or an exact number in a from and to trigger, you still have to use YAML.
@pascallj There's some discussion around your concern in https://github.com/home-assistant/frontend/issues/7708
Checklist
The problem
Now that we can use the numeric state and state triggers/conditions on attributes as well (home-assistant/core#41261), the frontend shouldn't automatically convert the
from
,to
,above
,below
andstate
fields to strings as attributes don't necessarily have to be strings.This could be classified as either a bug or a feature request, but as the current implementation isn't intuitive, I chose bug.
Expected behavior
If and only if an attribute is selected:
above
andbelow
should never be converted to strings as they are always numeric valuestrue
andfalse
should not be converted to stringsSteps to reproduce
Add a numeric state trigger on
sun.sun
attributeelevation
to be below 1 degree. It should be entered in YAML as:Environment
State of relevant entities
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information