Enocean : impossible to link a rockerswitch channel with an item in main ui : There is no profile available for the selected item

Fix here:

I’m afraid I have to backpedal here: I never noticed that you can change the type in the dialogue while creating the item. If you select datetime then the timestamp profiles become selectable. So everything just as it should be. sorry for the confusion.
So the only thing that’s still not possible is to link an already existing item if it’s not the expected type. Am I right?

How would you propose it should work?

Perhaps show a checkbox “Show incompatible items” on the items list popup?

In my opinion this would require to show the profile selection in the first place. Then you would need to select the profile you want to use. After that opening up the „existing item“ list should be filtered for items matching the selected profile. I don’t know if it is super intuitive to select the profile at the bottom first but right now the item list is also filtered and it’s not super obvious which items are filtered and why. So in j the end it might help to understand better what items are available for selection. This could be supported by a note: „Note that only items that match the selected profile are shown here“

BTW: I would love this feature to be implemented :heart_eyes:

After a closer look, I think this is a good idea.

To make it more intuitive, we’ll need to move the Profile selection above the item selection. That actually makes more sense, because profile sits between the thing / channel and the item, intercepting the communication between the two.

2 Likes

I rather think something got broken when working on that, though I don’t know why this got broken. Anyway, I think I have fixed it now.

@remisharrock @Larsen @DrRSatzteil Please test this new JAR, it includes some additional fixes to @jimtng version:

Instructions can be found on the linked page.

I installed the jar, tested, I think I saw the new dialogue which lets me choose the type and select an existing item. But when I chose datetime it didn’t show any datetime items. But I couldn’t reproduce it because afterwards the dialogue only looked like this:

But I thought it’s installed correctly:

openhab> list -s | grep org.openhab.ui$
226 x Resolved x  80 x 4.3.0                 x org.openhab.ui
374 x Active   x  80 x 4.3.0.202412232124    x org.openhab.ui

This fix is only about these two things:

  1. When creating an Item from a Thing channel, the profile selection was not possible.
  2. When editing an existing Item - channel link, you could switch to „illegal“ profiles.

What you talk about hasn’t been addressed yet.

1 Like

then I was definitely hallucinating :thinking:
I can confirm that 1 and 2 work.
And as a third thing: When changing profiles the profiles don’t look greyed out anymore, that seems to be solved too.

1 Like

Yep I can confirm that it seems to works for me too! Thank you for addressing this so quickly :blush:

Edit: From the settings I cannot open things, items and so on anymore… probably unrelated or only related to the current session. I will try tomorrow after the system has rebooted for backup.

Edit 2: just logged out and back in and it’s back to normal

1 Like

That was fixed and merged in a separate PR which was probably included in the latest jar from @florian-h05

1 Like

It’s unrelated, but I also OFTEN encountered this issue too. It’s annoying. Maybe it’s related the maximum connections for the browser or something, but I have never looked into it. You would need to close the browser tab(s) and reopen.

I noticed that issue when the admin-connection got lost somehow. I had this a lot in the past but currently on 4.3 not anymore. For me logging in a new tab usually solved the problem.

I encounter this only rarely, but I am using http2 on my reverse proxy and therefore cannot run into the max parallel connections limitation.
If it occurs, it is because I lost admin connection, don’t know why that happens.

For the first issue, I have created a core issue: https://github.com/openhab/openhab-core/issues/4466

Thanks for all the confirmations of the fix.
I will merge it then and backport it also.

1 Like

Thank you, I marked this answer as a solution !
Best wishes for 2025