Replies: 4 comments 4 replies
-
Hi 👋! home-assistant/architecture#545 |
Beta Was this translation helpful? Give feedback.
-
UI ConsiderationsI don't think there is much we can do from an integration point of view. If a frontend switch is clicked, it will toggle. IMHO it would be bad UX otherwise - a user might try multiple times thinking of missed click/touch target etc. Same for adding extensive delays. The way other integrations handle such things (eg. API requests resulting in errors) is to raise an exception - resulting in a user visible toast message - and set the state back to the previous one. So the switch auto-disables as soon as the error is known. Since we could potentially know the locked-state beforehand, another way would be to set the entity "unavailable" when locked. This would result in not being able to see the current state or use any frontend UI element. |
Beta Was this translation helpful? Give feedback.
-
Some actuators may even accept new commands when locked. These are applied when the lock is released. In such a case it might be desirable to show the target state, not the current state. An example:
If the state was "ON" a user wouldn't be able to see the results of the manual interaction - the state when the alarm is released - which might lead to false assumptions. I guess this is a matter or preference. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Actually I think this would be correct, as the device is on. No need to show intentions. That's the base problem here. Best regards |
Beta Was this translation helpful? Give feedback.
-
Hello,
based on
https://knx-user-forum.de/forum/%C3%B6ffentlicher-bereich/knx-eib-forum/1992352-korrekte-status-anzeige-bei-gesperrtem-aktor/page2#post1992693
If a channel in KNX-Actor is locked, the Status in HA may not reflect the status of the Actor-Channel.
Example:
To fix this, the following would be needed:
A workaround could be to request the status after pressing the button. This would mean that the UI is wrong for a brief moment (ON in the example above) and correct after the status comes (OFF).
In both cases, I think it makes sense to make this behaviour configurable.
Considering that this issue is rare and the full fix seems quite laborous to implement, whilst the workaround seems fairly easy, I think the workaround is worth considering.
Whilst the issue may be rare, I think it is important to fix, as I see the impact of a wrong status quite high.
Greetings,
Hendrik
Beta Was this translation helpful? Give feedback.
All reactions