the problem with what you suggested is that the resulted state is the coordinates wrapped with brackets () for some reason, which isn’t good.
also - what do you make of this from the manual:
replace {{ states.cover.source.state == 'open' }} with {{ is_state('switch.source', 'on') }}
i don’t see any connection between the two - is this a mistake?