Create a mainswitch.state message

def mainswitch_state(sequence_number, state):
        """Create a mainswitch.state message"""
        return MessageWriter().string("mainswitch.state").uint64(sequence_number).bool(state).get()