Can someone tell me how I need to define the cahnnel to cover the old MQTT1 part mqtt=">[synology:openhab/light/wc:state:*:${state}]
of the item definition ?
The objective is to publish the state of the switch item (a light) every time it changes in Openhab
The convention for any binding is to send/publish Item commands.
MQTT v2 does not offer publish state changes or updates.
Workarounds are used for general "event bus"publishing of state changes.
For a single Item, the easiest way is probably a rule that listens for state changes and uses an Action to publish.