[SOLVED] Broadlink Mqtt binding config

The “problem” is that the developer is using the : as a delimiter to send play:{deviceid} for the mqtt payload and this conflicts with the structure of the mqtt binding config

Try to escape the extra colon with \\ (or \):

Switch tv "turn on tv" {mqtt=">[mosquitto:broadlink/tv/peerless/turnon:command:ON:play\\:0d43b4e42518],>[mosquitto:broadlink/tv/peerless:command:OFF:play\\:0d43b4e42518]"}

If it works, notify the developer of the bridge to update the readme to many parameters in openhab · Issue #6 · fbacker/broadlink-mqtt-bridge · GitHub

Sources: How to convert MQTT into command? - #6 by rlkoshak & [SOLVED] Item from mqtt topic with colons and JSONPATH - #7 by namraccr & How to escape colon (:) in Item REGEX transformation - #7 by morrowwm

1 Like