Ability to use sensor state as attribute value

Hi,

I’d like to use the state of a specifc sensor as the attribute value of another sensor.
e.g.

 sensor.last_reset:    2021-01-01T14.00
 sensor.total:
    last_reset:    {{ states('sensor.last_reset') }}

Through the customize.yaml I’m not able to specify a value template to refer to the sensor that has the proper state value I need.
My sensors are already existing, hence a template sensor is not an option…

Any help would be appreciated.

What kind of sensor is sensor.total?
If it’s a template one, please show the definition;

As I highlighted in my original post:

These are sensors from Tasmota. Hence I cannot template sensor.total…

Unless last_reset would be a constant, in which case you can use the “customize” way via GUI or YAML, you will have to create a new template sensor based upon your tasmota one to achieve that.

Piggybacking off of koying’s reply…

In order to do what you have described (combine information from multiple existing sensors) you will need to create a template sensor, this is not possible through customize.yaml.

template:
  - sensor:
      - name: "Tasmota Combined"
        state: "{{ states('sensor.total'}}"
        attributes:
          last_reset: "{{ states('sensor.last_reset') }}"