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

[main-ui] Cannot use the follow/default profile on item/group if they are not of the same channel type #3080

Open
dalgwen opened this issue Feb 27, 2025 · 0 comments
Labels
bug Something isn't working main ui Main UI

Comments

@dalgwen
Copy link
Contributor

dalgwen commented Feb 27, 2025

The problem

EDIT : the issue is broader that initialy described here. I initially thought only about the link between a group and a channel with the follow profile. But it concerns any items, if they are not of the channel type, with the follow AND the default profile.
This behaviour is a regression, and it happened between openHAB 3 and now.
I don't know if it is a wanted change, but in this case it's not consistent with other ways of creating link.

--- original message ---
It seems that we cannot CREATE a link to a group item with the “follow profile” anymore.
I emphasize CREATE, because my existing configuration still works.
The follow profile is greyed out.

Same for edit (for example for an existing configuration, created before the bug) : the follow profile is not even listed.

It seems to be a GUI issue, because when I modify the request from the developer tool to force a POST with the follow profile, it works as intended.

Context

See this message in the community forum

Expected behavior

From a thing channel, I should be able to link to a group and choose the follow profile.

EDIT : I should be able to link to other items, including those of different type, with the default or follow profile.

Steps to reproduce

(This is just an example, not the only way to trigger the bug)

  1. Create a group, subtype switch, aggregation function all ON then ON else OFF
  2. Go to a thing, select a switch channel and click to create a link to an item
  3. Choose the group item
  4. Follow profile is greyed out

Your environment

openHAB (from official deb repository), for debian, 4.3, tried from firefox, chrome

Browser network traffic

No network traffic (validation blocks first)

Additional information

The validation is browser side, in two parts:

  • First, the follow profile is greyed out
  • If the follow profile is activated (by using developer tools), it is still impossible to save (error message, the profile is invalid)
  • Force post message with a "follow" profile is OK.
  • It is possible to create this kind of link with .items files.
  • The links created work as expected, provided of course that the developer of the binding has handled those cases.
@dalgwen dalgwen added bug Something isn't working main ui Main UI labels Feb 27, 2025
@dalgwen dalgwen marked this as a duplicate of openhab/openhab-core#4623 Feb 27, 2025
@dalgwen dalgwen changed the title [main-ui] Cannot use the follow profile on a group item anymore [main-ui] Cannot use the follow/default profile on item/group if they are not of the same channel type Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

No branches or pull requests

1 participant