Thanks, I got it working now. The issue was I pasted the code in the graphical editor but then it gets that additional - added you only see if you check the full automation code.
This and the example code has an additional colon and after copy paste the indentation gets messed up.
Edit: But now I’m stuck again. This is my current code:
As I understand it, in the example the value of the variable isn’t being processed through the template engine so it is returned as the string value that was used; but since yours is being rendered by the template engine, it is returned as a floating point number.
When you use + for concatenation, it’s your responsibility to make sure everything is a string.
If you don’t, the template engine will try to mathematically add a string and a float, which isn’t possible.
That’s what happened, so the conversation response failed into it’s default “Done/Fertig” message. You can fix the issue by using either of the following: