I know that the input_text
helper can be used to send texts up to 255 characters via the REST API.
http://homeassistant.local:8123/api/states/input_text.my_message
I am looking for a solution to send a longer text (or even better a JSON element).
I know that the input_text
helper can be used to send texts up to 255 characters via the REST API.
http://homeassistant.local:8123/api/states/input_text.my_message
I am looking for a solution to send a longer text (or even better a JSON element).
Use an attribute. They can be longer than 255 characters.
Thx. The REST docs don’t tell how to access attributes, though.
How can I add a custom attribute?
I ended up with an input_button
. The state is used as a trigger. The custom attribute message
is used to ship the message.
This is how the REST API looks alike.