Update text sensor with http api

Hello …

Is there a way to use the http rest api to update a “text sensor” (i guess i will use a helper there).

I am already updating sensor (float) and binary_sensor (bool), and it works great.

I am looking for a similar capability for text (str).

Thanks for a recommendation.

Cheers

Probably /api/services/<domain>/<service> where the domain is input_text and the service is input_text.set_value.

Depending on what kind of text, you can have a sensor entity with a text state, no different than the float. In fact, sensor states are always strings in HA. The key issue to watch out for is the 255-character (I believe) limit on the length of a state string.

Thank you to all. I had miss understood the documentation which only gives example for sensor and binary_sensor. I guess this is because those two (unlike others) are DYNAMICALLY created (i.e. no need to manually create a helper for those using HA GUI)