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
Feature: Optimistic Mode / State assumption #491
Labels
Comments
10 tasks
Thanks, I didn't know that. So we could leave this PR as is (assumed_state only when state is not yet known implemented only in the HA integration code) and don't have to add config options 😃 |
sadly this isn't allowed in HA home-assistant/core#43536 (comment) |
Cover initialization state in HA should be fixed now. home-assistant/core#44926 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear all,
for the time being xKNX always uses OPTIMISTIC MODE, which means that the status of lights, switches and covers updates always automatically, it does not matter whether there is any state object or not.
However the behaviour of lovelace is different if an entity is in optimstic mode or not. If optimistic mode is on:
Therefore I would propose to implement Optimistic Mode / State assumption in xKNX as well. What do you think?
For switches and lights the change should be pretty easy. If there is no state object defined, optimistic mode will be used automatically. In addition the user shall be able to manually overriede optimistic mode. Is this a breaking change? Home assistant user would get their visualisation changed.
For covers I'm not quite sure how to implement the feature. The easiest would be to do it identically to switches and lights. However, for the time being, xKNX is updating the position of a cover always with the time parameters. To be persistent, switching to
optimistic: false
would mean disabling this feature as well, which makes no sense in my opinion. What do you think?And last but not least, I'm not sure about the wording. MQTT and Template are using
optimistic
, however the attribute is calledassumed_state
. What do you think?Looking forward to hearing from you.
The text was updated successfully, but these errors were encountered: