I am playing around with the rest api and so far I could use it to get the status of an amplifier. I want to use now the data I received and display this in a card. I am pretty new and could not find the answer yet.
I tried but there is some error in the Syntax and I am not sure where this sits:
Invalid config for 'sensor' from integration 'rest' at configuration.yaml, line 704: invalid template (TemplateSyntaxError: expected token 'end of statement block', got '=') for dictionary value 'value_template', got '{% if value_json.content = 0 %}\n min fan\n{% elif value_json.content = 4 %}\n max fan\n{% else %}\n unknown\n{% endif %}\n', please check the docs at https://www.home-assistant.io/integrations/rest
How do I then add the sensor to the dashboard? Is there a certain card for it?
This makes your sensor entity id: sensor.fan_mode. See if you can find it in Developer Tools → States or Settings → Devices & Services → Entities List (up top of the page).
If it is there you should be able to add it to an Entities Card.
Yes that was the correct name. I find it and also can add it to the Dahsboard. Great thanks. However still does not recognize the values (It just feedbacks the unknown state)
In your post earlier you mentiones that the answer must be json. I looked up in the manual and json is not mentioned there. Is there a possibility to see how the answer is coded?