After rebooting energy_pv750 and energy_akku are unavailable! how can i store the values for this entities?

- name: "energy_wr750"
  unit_of_measurement: "Wh"
  state: >
   {%set energywr75 = states('sensor.e45e750')|float%}
   {{energywr75|round(0)}}

- name: "energy_pv750"
  unit_of_measurement: "Wh"
  state: >
    {%set ewr750 = states('sensor.energy_wr750')|float %}
    {%set eakku = states('sensor.energy_akku')|float %}
    {%set epv750 = states('sensor.energy_pv750')|float %}
    {% if is_state('binary_sensor.e45akkubetrieb_2', 'off') %} 
       {{(ewr750-eakku)|round(0)}}
    {% else %}
       {{epv750|round(0)}}
    {% endif %} 

- name: "energy_akku"
  unit_of_measurement: "Wh"
  state: >
    {%set ewr750= states('sensor.energy_wr750')|float %}
    {%set epv750 = states('sensor.energy_pv750')|float %}
    {%set eakku = states('sensor.energy_akku')|float %}
    {% if is_state('binary_sensor.e45akkubetrieb_2', 'on') %}
       {{(ewr750-epv750)|round(0)}}
    {% else %}
       {{eakku|round(0)}}
    {% endif %}