OH3 - Run Exec Thing with MainUI

  version: 3.1.0
  buildString: "Build #2179"
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.9
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.43+88-CA
  osName: Linux
  osVersion: 5.9.14-meson64
  osArchitecture: aarch64
  availableProcessors: 4


I would like to run a exec-command-thing manually over the mainUI.
So I linked the “run”-cannel with a switch-item.
The problem now is: I cannot trigger the switch, because when I link it to the channel, it is only readable and not writeable.

When I create a sitemap with the switch-item, I can run the exec-command-thing without problems.

For my understanding it should work in the mainUI as well?
Thank you.

No Switch:

Add a new “default stand alone widget” and configure it to use a toggle card. If this is in your model, you’ll probably want to define a new “default list widget” to use a toggle item as well. These are in the “add metadata” section of the Item’s page.

Yes, it works. Thank you.
But I am still a little confused. I try to understand…

Why do I have to set this manually? Normally I don’t have to, when I link a simple (writeable) switch-item to other thing-channels (from other bindings).

Is this a property which comes from the settings in the channel?

Because MainUI does it’s best to figure out what the appropriate type of widget to display is and sometimes it gets it wrong. I do think that the binding also offers hints how to display the Item by default and I can imagine that the Exec binding displays this Item as read only by default.

I wonder if this is a case where the state of the Item should not be writable by update - the exec binding updates that - but the Item is command-able as a trigger.