UndefinedError: 'value' is undefined?

This will also produce an error in the Template Editor:

{{ x + 1 }}

Why? Because the variable named x is undefined.

In your template, the variable named value is undefined. It will be defined only when the template is used in an operational Template Sensor. In your case, value will contain the data received by sensor.abfall_restmull via the Waste Collection Schedule integration.

The warning message you received is due to this: