if the template itself is erroring, then safety needs to be built in
value_template: "{{ (100 - state_attr('cover.realcover_r', 'position') | int(100)) > 95 }}"
            if the template itself is erroring, then safety needs to be built in
value_template: "{{ (100 - state_attr('cover.realcover_r', 'position') | int(100)) > 95 }}"