from a command line sensor i get this response :
HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Accept-Ranges: bytes Connection: close ok<D_A_1_1>0.00</D_A_1_1>
That is the response from a Water Softener Machine Grunbeck SC18.
With a rest sensor there is no result. In the manual from grunbeck is write that xml is the response.
and the parser wouldn’t know where the command stopped and what parts were supposed to be included in the command and which parts are not.
I’m not entirely sure it would be a problem in a command like this but i know it’s a problem in the jinja parser in a template so it is always best to be consistent.
try to run the entire curl command (including the part i added) in the terminal and see what is returned.
As a test I just copied all of the content of your returned data from your first post above into a file I called “test”. Then in my command line terminal I ran the “grep” portion of the command from the command above and it returned the exact value I expected it to:
So I know that my portion of the command will work as expected.
Can you also post the config for the command-line sensor with the portion I added that is returning unknown just so we can be sure there are no syntax errors?