Skip to content
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

[bug] Stateless entities can be toggled and shown as unavailable #422

Open
1 task done
kennymc-c opened this issue Dec 24, 2024 · 1 comment
Open
1 task done

[bug] Stateless entities can be toggled and shown as unavailable #422

kennymc-c opened this issue Dec 24, 2024 · 1 comment
Labels
bug Something isn't working web configurator Web configurator related issue

Comments

@kennymc-c
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

With the new web configurator entities that don’t support the on_off or toggle feature and have no state attribute assigned because they are stateless an unavaliable state is shown in the integrations entites list and there's even a toggle button shown in the entity editor which seems to toggle a virtual state of the entity which the integration does not even notice.
As a workaround I've addded a state:on attribute to the entity definition which I didn't had to do with the old configurator before.
But after running the setup for the first time the entities are shown as off instead. Using the toogle button seem to then use the correct on state.

Maybe the state attributes and toggle button should not be shown at all if the entity is stateless and doesn’t support the on_off feature. As far as I know media player entities doesn’t even support the unavailable attribute and only On/Off.

How to Reproduce

  1. Add a stateless media player entity as configured entity which has no attributes and doesn't support the on_off or toggle feature
  2. Edit the entity and click on toggle

Expected behavior

Stateless entities should not have a state shown in the web configurator. The toggle button should only be shown if the entity state can be toggled or turned on/off.

System version

2.2.1

What part of the system affected by the problem?

Web Configurator

Additional context

No response

@kennymc-c kennymc-c added the bug Something isn't working label Dec 24, 2024
@github-project-automation github-project-automation bot moved this to Reported in Bug reports Dec 24, 2024
@github-actions github-actions bot added the web configurator Web configurator related issue label Dec 24, 2024
@WillTriumph1
Copy link

This would be very helpful. If there would be a way to set devices as stateless and include this behavior it would also be significantly helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web configurator Web configurator related issue
Projects
Status: Reported
Development

No branches or pull requests

2 participants