Linking a switch to an MQTT publish

Thanks again.

My MQTT topic above (loungeaccommand) is an outgoing channel.

The syntax in the manual is only described for Rules. Do I use the same format in my items file? Or do I have to use a rule (for example, if switch state changes to on, trigger the MQTT send?)

That would make sense (I’ve got a test email send switch set up along those lines).

I’ll test it.

I got the impression this was done in the items file, as per my post, maybe because I only found examples of the v1 MQTT binding.