Sensor/Entity with attributes that is updated via REST POST

Hi there,

once again I am confused by the documentation or I couldn´t find the right spot.

I need the posibillity to create a sensor or entity, that can hold 3 values, e.g. 1 state and 2 attributes. These values are POSTed via REST to HA.
When using 3 seperate helpers I get inconsistent data when reacting to a state change with an automation because there are 3 seperate POSTs.

Via the developer Tools States I can create such an entity, but it does not survive a HA restart.
image

I am a bit lost what route to take. Should I create a sensor via yaml? There seems no platform that fits my needs as the value is updated from an external source. Should I look into pyscript? Looks like overkill and I couldn´t find anything that fits my use case in the documentation. Should I create a text_input helper and extend that via yaml with 2 attributes? Would be my second choice, but I don´t know how to do that and couldn´t find an example.

My first choice would be to somehow make the sensor, that I created with the Developer Tools, survive a restart. Again, couldn´t find anything in the docs how to do that.

Maybe I am just looking at the wrong places… :frowning:

thanks for any assistance
Thomas