OH3 has the option to define your Things via YAML through the UI Code tab. But you can also use Things files like in OH2, or you can use the UI itself.
You’ll have to tell us what you means, what your configuration is and why you say it doesn’t work. For a start, do you have the JSONPATH Transformation Service installed?
Assuming we’re still on-topic and this is about availability?
Related -
So far as I can see the Thing ‘availability’ is about standardized LWT messages, no transformations are offered.
Comment; while the config examples page got updated for availabityTopic, the subject is still completely missing from the generic docs. It does deserve a mention - would someone knowledgeable take this on, please?
File validation is only about basic syntax, it does not check if the parameter even exists, let alone is set to something meaningful.
Bananas=‘custard’
will flag no error.
(One reason people bang on about using GUI instead)
Probably worth referring back to that.
So you can put the whole JSON string in the matches (being careful about quote marks)?
Are you looking in different places? The Bridge thing may define an LWT for other’s information when openHAB goes offline.
This is unrelated to Thing availability topics listening to external devices.
For giggles I will ask again - why does this Binding hide this doc? I ask when I know the answer: the binding author does not want/believe in file based configuration so will not allow the file based documentation in the binding documentation (a request denied prior for that reason)…a conceit that confounds users over and over again.
Oh wow, if only I’d seen this when starting out!! Doesn’t have anything about LWT though. Are you suggesting a PR into that page, rather than the normal openHAB docs?
OMG!!! I have been using OpenHAB since 2019 (or 2018? I think), and I have been using MQTT since the beginning and ONLY JUST NOW have I discovered this. And only after working on mqtt binding source code to do some PRs, I saw some references to availabilityTopic which piqued my interest.