Escaping "=" in commandDescription

I am trying to create command options (metadata) for an IR transmitter. However the equal sign is commonly used in the IR codes for this device. Is there any way to escape the equal sign in the string? I can not find anything about it in the documentation.

e.g
myircode_22231312=TV ON
myircode=22++1122==TV OFF

The second one will not work and the option will be cut short as well as interpret part of the IR code as the label…

Anyone knows?

Usually \ is the standard character to escape. Depending on how the String is read and processed, sometimes there needs to be a double escape \\. But try the single escape first.

myircode=22++1122\=\=TV OFF

Without more details there isn’t much more help we can provide. Where is this String defined for instance?

The details are my problem too.

I’m trying to add it through the metadata “commandDescription“. And I agree, usually a double slash or putting something in quotes etc. escapes the character. For e.g json, XML or HTML it’s very well defined how to escape a character but I have no idea what sort of interpreter is behind this “value=label“ syntax or if it has any such possibilities. If not it’s quite a big limitation of this functionality.

Top 3 works great but the fourth IR code has a “=“ which then expects the label after it. Double backslash doesn’t seem to work. I’ve been trying multiple common ways and formats.

Click on the code tab and paste the YAML you find here.
Use code fences.

```
code goes here
```

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.