Whilst I can’t answer the ‘why did it work before, but it’s not working now question’, to fix this issue I would recommend:
- Setup zigbee2mqtt so that it publishes attributes separately as a plain string, rather than JSON. See this post for more info.. This means you won’t have to use funky
transformationPatternorformatBeforePublishparameters in your Thing Channel. - Add
on="ON", off="OFF"to the end of your Thing Channel configuration, to force openHAB to publish either ON or OFF.