Yes, that is correct. It may be a case of “grasping at straws”, but I think you should use all-caps to the right in your transform file, i.e. like this:
OFF=CLOSED
ON=OPEN
You also need to change the last entry in the transform file, since “off” (or “OFF”) is not a valid state for a Contact item.
Have you checked to make sure that your alarm system (or whatever it is that sits at “the other end” of MQTT) is actually sending the messages “ON” and “OFF”?
Yeah I found the issue, the topic names had all changed. I just had my panel replaced, and the installer had got the zone names close, but not exact (changes in case, changes in some names), so it wasn’t working because the expected topic was wrong.
PEBKAC. ID10T
Just on contact items, they don’t display anything like a switch does do they? So to see their state do I have to update the label with [%s]?
Depends what your icon type is. I find that for doors / windows the contact items show open/closed fine. For Motion I’ve had to make sure all mine are switches.
But, yes using [%s] in your label or in Sitemap will show the current status.