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

Same for me, greyed, and when I do create the Item and then try to link to the channel then the trigger channels do not appear as you can see (same for String type):

@DrRSatzteil , @remisharrock

sorry, but just to make sure we’re doing the same thing, this is the workaround:

  1. press “add link to item”
  2. select “create a new item”
  3. press “link” (here you cannot select a profile)
  4. open the new created item again and scroll down
  5. choose your profile (it looks greyed but it works)
  6. press “save”

But you’re all right, it’s probably a regression as you already described in the 4.3 release discussion.
@jimtng : You were improving the profile functionality. Did you notice the problem that you cannot select a profile while creating an item for a channel in OH4.3? Maybe you have an idea about the problem?

Yes, right there, scroll down to the bottom of that screen, click Link. Then go back to edit that link to apply profile

… As @Larsen said above :slight_smile:

Might be related to this:

And the reason for this change, is explained here:

@florian-h05 we might need to rethink this. The easiest way is to hide the profile selection on item / link creation, but that doesn’t seem ideal. I haven’t been following this issue so I’m not sure what the considerations were. In any case, it does cause user confusion.

Not quite the same for me:

I have a DateTime item that I want to use to track when I last received a message from a wiz light bulb. The bulb itself does not offer such a channel so I want to link it to any other channel with the timestamp on update profile.

I got the item already created and navigate to the item click „Add Link“ choose the thing and a channel (let’s say the colour channel) and scroll down to the profiles section: I cannot choose a profile there.

When I start from the thing I don’t even get that far because the item is not shown in the selection at all due to is wrong type.

EDIT: Ah I just realised that I can link the item to the colour channel without a profile first. In a second step I can open the link and set the correct profile there!

impossible to create the item because when I click Link I get this message, and the Item is not created.
So any direction do not work: either from the Thing to create a new item or to link an already existing item is impossible AND from a newly created item impossible to link the channel.

so basically I’m stuck in step 3 with the popup “There is no profile available for the selected item” and the item is not created

I made a video to explain the situation on a completely fresh install of openhab, here are the steps to reproduce.

  1. Install a FRESH openhab with https://community-scripts.github.io/ProxmoxVE/scripts?id=openhab
  2. Install the Astro binding
  3. create a thing related to the sun
  4. it’s impossible to link the trigger channels of that thing (see the video)

I made a post for the Astro binding as well Astro binding on fresh install: impossible to link all the trigger channels with OH 4.3.0 "There is no profile available for the selected item"

Yes true, for trigger channels there really seems to be no workaround :man_shrugging:

Actually after experiencing this morning that the UI does not stop me to choose a DateTime item and link it to a Color channel without any complaints I asked myself why the other UIs are trying to be intelligent anyway: How about simply allowing every link with any profile or just giving a warning to the user „Caution: the selected channel might not be compatible with the selected item type“ and leave the rest up to the user? With a JS transform I can basically link any item type to any channel type, it’s just a matter of the programming logic in the transform anyway.

2 Likes

Answered in your new topic.

@remisharrock this is a UI bug which applies to any binding. It’s not binding-specific.

1 Like

you’re first way is possible too: First create the item from the channel (so that it’s linked). Then change the type of the item to datetime. Then choose your profile. (But that’s of course not really intuitive)

Yes that would work but I would still consider this a bug :man_shrugging:

Well, that is impossible to accomplish for me !

Do we need to create a GitHub issue ? If yes, on which repository?

The repo is openhab-webui. I will post a temporary jar that lets you create links shortly.

1 Like

Please test this jar:

The instructions are on the linked page above.

PR created

2 Likes

yes, that works :+1: :+1: :+1:
Two comments/questions regarding this:

  • Timestamp is not selectable (and greyed out) if the channel is not datetime. I don’t think many users will discover the workaround of changing the type. So could it be possible to always allow timestamp but add “please change item type to datetime manually” to the selection dialogue?
  • When you want to change a profile afterwards all of them are greyed out. But they work anyway. Probably a small format bug?

Really cool how quick you fixed the problem. :sparkling_heart:

1 Like

Thanks for testing :+1:

Could you please explain more about this?

I’m trying to guess here:
Are you referring to the “Timestamp on Change” and “Timestamp on Update” profiles, not being selectable when the linked item is not a datetime item?

Furthermore, this is regardless of the channel type, i.e. the channel does not need to be datetime.

I think I know what you mean here. Indeed it’s just a formatting issue, and by the looks of it, it has been like this since the beginning (4+ years). I’ll try to fix this in a separate PR as it’s a totally different issue and located in a different file too (link-edit instead of link-add).