Set Value to "0" if entity is not Available

Thanks for the input :slight_smile:

But besides of that the code looks good?

is there a way to script in python? Because the yaml syntax is a littlebit strange :smiley: