Big Timer how to change payload from 1 to 0 and 0 to 1

Maybe node-red-contrib-schedex is the right node for your purpose?