that was my 1st thought, but it makes the configuration invalid with the error:
Invalid config for [automation]: invalid template (TemplateSyntaxError: expected token ‘,’, got ‘xdf’) for dictionary value @ data[‘action’][0][‘data_template’][‘payload’]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 40). Please check the docs at Automation - Home Assistant
That’s because Jinja does not have chr function, it’s not Python.
I meant that you can get character with the code above by running Python interpreter and executing that chr(0xdf).
Just use the symbol nickrout provided where you need it.
since i couldn’t solve it, i’ve decided to use a workaround - sending a special (valid) character which won’t be used, and replacing it on the arduino with 0xdf char.
sorry - didn’t understand what needs to be done here - can you explain?. what i did was to send char (*) and scanning/replacing the string at the arduino side.